aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-05-03 13:28:33 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-05-03 13:28:33 +0000
commit070588f06e3c7677a21d2e0bdce7253229daa83b (patch)
tree0d918b616faeef5dd3dd6d2c0124b405c528a109 /gcc/c-semantics.c
parent5dc5d13c708ac848d6e30e22546ca2062732bd57 (diff)
downloadgcc-070588f06e3c7677a21d2e0bdce7253229daa83b.zip
gcc-070588f06e3c7677a21d2e0bdce7253229daa83b.tar.gz
gcc-070588f06e3c7677a21d2e0bdce7253229daa83b.tar.bz2
c-decl.c (pending_invalid_xref_file): Remove.
* 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. From-SVN: r66425
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index 522d563..59620ca 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;
}