Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LabComm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sven Gestegård Robertz
LabComm
Commits
3f91b127
Commit
3f91b127
authored
10 years ago
by
Anders Blomdell
Browse files
Options
Downloads
Patches
Plain Diff
Removed some dead-code elimination, sice it stumbled on
unused typedefs.
parent
b5cc5246
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiler/2014/C_CodeGen.jrag
+9
-5
9 additions, 5 deletions
compiler/2014/C_CodeGen.jrag
lib/c/2014/test/generated_encoding.lc
+1
-0
1 addition, 0 deletions
lib/c/2014/test/generated_encoding.lc
with
10 additions
and
5 deletions
compiler/2014/C_CodeGen.jrag
+
9
−
5
View file @
3f91b127
...
...
@@ -1284,7 +1284,7 @@ aspect C_Signature {
eq TypeDecl.C_DeclTypeString() = "LABCOMM_TYPEDEF";
public void Decl.C_emitSignature(C_env env) {
if( (isReferenced() || isSampleDecl())){
if( (
true ||
isReferenced() || isSampleDecl())){
Signature signature = getSignature();
signature.C_emitSignature(env, !isSampleDecl());
C_emitFlatSignature(env);
...
...
@@ -1480,10 +1480,14 @@ aspect C_Constructor {
env.println("}");
}
public void Decl.C_emitConstructor(C_env env) {
// }
//XXX
// public void SampleDecl.C_emitConstructor(C_env env) {
public void TypeDecl.C_emitConstructor(C_env env) {
if (isReferenced()) {
env.println("labcomm"+env.verStr+"_set_local_index(&signature_" +
env.prefix + getName() + ");");
}
}
public void SampleDecl.C_emitConstructor(C_env env) {
env.println("labcomm"+env.verStr+"_set_local_index(&signature_" +
env.prefix + getName() + ");");
}
...
...
This diff is collapsed.
Click to expand it.
lib/c/2014/test/generated_encoding.lc
+
1
−
0
View file @
3f91b127
typedef void unused_t;
typedef void v_t;
sample v_t V;
sample byte B;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment