diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-13 06:41:07 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-13 06:41:07 +0000 |
commit | 4ee9c6840ad3fc92a9034343278a1e476ad6872a (patch) | |
tree | a2568888a519c077427b133de9ece5879a8484a5 /gcc/c-parse.in | |
parent | ebb338380ab170c91e64d38038e6b5ce930d69a1 (diff) | |
download | gcc-4ee9c6840ad3fc92a9034343278a1e476ad6872a.tar.gz |
Merge tree-ssa-20020619-branch into mainline.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81764 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r-- | gcc/c-parse.in | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 91a42d91814..07854c48d6b 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -661,6 +661,7 @@ primary: last_expr_type = void_type_node; $$ = build1 (STMT_EXPR, last_expr_type, $1); TREE_SIDE_EFFECTS ($$) = 1; + annotate_with_locus ($$, input_location); } | compstmt_primary_start error ')' { @@ -2130,7 +2131,7 @@ simple_if: if_prefix: /* We must build the IF_STMT node before parsing its - condition so that STMT_LINENO refers to the line + condition so that EXPR_LOCUS refers to the line containing the "if", and not the line containing the close-parenthesis. @@ -2194,12 +2195,8 @@ lineno_stmt: save_location stmt { if ($2) { - STMT_LINENO ($2) = $1.line; - /* ??? We currently have no way of recording - the filename for a statement. This probably - matters little in practice at the moment, - but I suspect that problems will occur when - doing inlining at the tree level. */ + SET_EXPR_LOCUS ($2, NULL); + annotate_with_locus ($2, $1); } } ; @@ -2208,7 +2205,8 @@ lineno_label: save_location label { if ($2) { - STMT_LINENO ($2) = $1.line; + SET_EXPR_LOCUS ($2, NULL); + annotate_with_locus ($2, $1); } } ; @@ -2237,7 +2235,7 @@ select_or_iter_stmt: | simple_if ELSE error { c_expand_end_cond (); } /* We must build the WHILE_STMT node before parsing its - condition so that STMT_LINENO refers to the line + condition so that EXPR_LOCUS refers to the line containing the "while", and not the line containing the close-parenthesis. |