diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-03 13:28:33 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-03 13:28:33 +0000 |
commit | bca5a169dbd7511850392fce078fac9a2ce8b785 (patch) | |
tree | 0d918b616faeef5dd3dd6d2c0124b405c528a109 /gcc/c-semantics.c | |
parent | 50a0654444825108f445422abbcd801610910db4 (diff) | |
download | gcc-bca5a169dbd7511850392fce078fac9a2ce8b785.tar.gz |
* c-decl.c (pending_invalid_xref_file): Remove.
(pending_invalid_xref_line): Remove.
(pending_invalid_xref_location): New.
(lookup_label): Use location_t and input_location directly.
(lookup_tag): Likewise.
(pending_xref_error): Likewise.
(c_expand_body_1): Likewise.
* c-common.c (x_expand_start_cond): Likewise.
* c-semantics.c (genrtl_for_stmt): Likewise.
(find_reachable_label): Likewise.
* expr.c (expand_expr): Likewise.
* integrate.c (output_inline_function): Likewise.
* tree-inline.c (find_alloca_call): Likewise.
(find_builtin_longjmp_call): Likewise.
* gcc.c (input_filename): Make static.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66425 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 522d56322b3..59620ca3d0f 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -543,8 +543,7 @@ genrtl_for_stmt (t) tree t; { tree cond = FOR_COND (t); - const char *saved_filename; - int saved_lineno; + location_t saved_loc; if (NEW_FOR_SCOPE_P (t)) genrtl_do_pushlevel (); @@ -562,8 +561,7 @@ genrtl_for_stmt (t) /* Save the filename and line number so that we expand the FOR_EXPR we can reset them back to the saved values. */ - saved_filename = input_filename; - saved_lineno = input_line; + saved_loc = input_location; /* Expand the condition. */ if (cond && !integer_nonzerop (cond)) @@ -578,8 +576,7 @@ genrtl_for_stmt (t) expand_stmt (FOR_BODY (t)); /* Expand the increment expression. */ - input_filename = saved_filename; - input_line = saved_lineno; + input_location = saved_loc; emit_line_note (input_filename, input_line); if (FOR_EXPR (t)) { @@ -952,11 +949,9 @@ static tree find_reachable_label (exp) tree exp; { - int line = input_line; - const char *file = input_filename; + location_t saved_loc = input_location; tree ret = walk_tree (&exp, find_reachable_label_1, NULL, NULL); - input_filename = file; - input_line = line; + input_location = saved_loc; return ret; } |