OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* parse.y (for_statement): Wrap expression in a WFL if it is a
[pf3gnuchains/gcc-fork.git]
/
gcc
/
java
/
parse.y
diff --git
a/gcc/java/parse.y
b/gcc/java/parse.y
index
5429d41
..
95a3593
100644
(file)
--- a/
gcc/java/parse.y
+++ b/
gcc/java/parse.y
@@
-1631,7
+1631,11
@@
do_statement:
for_statement:
for_begin SC_TK expression SC_TK for_update CP_TK statement
for_statement:
for_begin SC_TK expression SC_TK for_update CP_TK statement
- { $$ = finish_for_loop (EXPR_WFL_LINECOL ($3), $3, $5, $7); }
+ {
+ if (TREE_CODE_CLASS (TREE_CODE ($3)) == 'c')
+ $3 = build_wfl_node ($3);
+ $$ = finish_for_loop (EXPR_WFL_LINECOL ($3), $3, $5, $7);
+ }
| for_begin SC_TK SC_TK for_update CP_TK statement
{
$$ = finish_for_loop (0, NULL_TREE, $4, $6);
| for_begin SC_TK SC_TK for_update CP_TK statement
{
$$ = finish_for_loop (0, NULL_TREE, $4, $6);