diff options
author | Dehao Chen <dehao@google.com> | 2012-11-04 17:18:19 +0000 |
---|---|---|
committer | Dehao Chen <dehao@gcc.gnu.org> | 2012-11-04 17:18:19 +0000 |
commit | 48e3b832bd1f56a8a3b10df5aada6eec28ca14c1 (patch) | |
tree | 6da700ae65aee64365ef13f6d7420695e5cbaf5c /gcc/expr.c | |
parent | 049bb74ea2e50df059faf50b8dce663e10c6121c (diff) | |
download | gcc-48e3b832bd1f56a8a3b10df5aada6eec28ca14c1.zip gcc-48e3b832bd1f56a8a3b10df5aada6eec28ca14c1.tar.gz gcc-48e3b832bd1f56a8a3b10df5aada6eec28ca14c1.tar.bz2 |
expr.c (expand_expr_real_1): Change to not using input_location.
2012-11-01 Dehao Chen <dehao@google.com>
* expr.c (expand_expr_real_1): Change to not using input_location.
From-SVN: r193137
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -9221,13 +9221,11 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, if (g) { rtx r; - location_t saved_loc = input_location; + location_t saved_loc = curr_insn_location (); - input_location = gimple_location (g); - set_curr_insn_location (input_location); + set_curr_insn_location (gimple_location (g)); r = expand_expr_real (gimple_assign_rhs_to_tree (g), target, tmode, modifier, NULL); - input_location = saved_loc; set_curr_insn_location (saved_loc); if (REG_P (r) && !REG_EXPR (r)) set_reg_attrs_for_decl_rtl (SSA_NAME_VAR (exp), r); |