diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-semantics.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 96e67f1..944989e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-04-27 Ian Lance Taylor <ian@airs.com> + + * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P. + 2005-04-27 Kazu Hirata <kazu@cs.umass.edu> * tree-ssa-dce.c: Fix a comment typo. diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index fe81249..f7757c6 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -108,7 +108,7 @@ add_stmt (tree t) { enum tree_code code = TREE_CODE (t); - if ((EXPR_P (t) || STATEMENT_CODE_P (code)) && code != LABEL_EXPR) + if (EXPR_P (t) && code != LABEL_EXPR) { if (!EXPR_HAS_LOCATION (t)) SET_EXPR_LOCATION (t, input_location); |