File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ static void print_expr(tree t, int indent)
22
22
23
23
code = TREE_CODE (t );
24
24
25
+ // Declarations..
25
26
if (code == RESULT_DECL ||
26
27
code == PARM_DECL ||
27
28
code == LABEL_DECL ||
28
- code == VAR_DECL ) {
29
+ code == VAR_DECL ||
30
+ code == FUNCTION_DECL ) {
29
31
30
32
// this tree node points at a DECL_NAME node
31
33
tree id = DECL_NAME (t );
@@ -74,7 +76,8 @@ static void print_expr(tree t, int indent)
74
76
code != LABEL_EXPR &&
75
77
code != GOTO_EXPR &&
76
78
code != NOP_EXPR &&
77
- code != DECL_EXPR )
79
+ code != DECL_EXPR &&
80
+ code != ADDR_EXPR )
78
81
print_expr (TREE_OPERAND (t , 1 ), indent + 2 );
79
82
}
80
83
Original file line number Diff line number Diff line change 1
1
2
+ int f (unsigned char c ) {
3
+ int x ;
4
+ x = c + c ;
5
+ }
6
+
2
7
int sqr (int x ) {
3
- return x * x ;
8
+ return x * x ;
4
9
}
You can’t perform that action at this time.
0 commit comments