aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.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/expr.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/expr.c')
-rw-r--r--gcc/expr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index cbd4811..bc316b3 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -6932,16 +6932,14 @@ expand_expr (exp, target, tmode, modifier)
case EXPR_WITH_FILE_LOCATION:
{
rtx to_return;
- const char *saved_input_filename = input_filename;
- int saved_lineno = input_line;
+ location_t saved_loc = input_location;
input_filename = EXPR_WFL_FILENAME (exp);
input_line = EXPR_WFL_LINENO (exp);
if (EXPR_WFL_EMIT_LINE_NOTE (exp))
emit_line_note (input_filename, input_line);
/* Possibly avoid switching back and forth here. */
to_return = expand_expr (EXPR_WFL_NODE (exp), target, tmode, modifier);
- input_filename = saved_input_filename;
- input_line = saved_lineno;
+ input_location = saved_loc;
return to_return;
}