diff options
author | dehao <dehao@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-04 17:18:19 +0000 |
---|---|---|
committer | dehao <dehao@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-04 17:18:19 +0000 |
commit | 5b01786639cf92fa8fe2c4715238ead778e8da96 (patch) | |
tree | 6da700ae65aee64365ef13f6d7420695e5cbaf5c | |
parent | d54315e32fb603d8cf08f8d0c43462dda5b568cb (diff) | |
download | ppe42-gcc-5b01786639cf92fa8fe2c4715238ead778e8da96.tar.gz ppe42-gcc-5b01786639cf92fa8fe2c4715238ead778e8da96.zip |
2012-11-01 Dehao Chen <dehao@google.com>
* expr.c (expand_expr_real_1): Change to not using input_location.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193137 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/expr.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6367ac578de..6725b563c4d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-11-04 Dehao Chen <dehao@google.com> + + * expr.c (expand_expr_real_1): Change to not using input_location. + 2012-11-03 Jan Hubicka <jh@suse.cz> * invoke.texi (profile-use): update documentation. diff --git a/gcc/expr.c b/gcc/expr.c index 0ad3b578f17..57e71fbaca3 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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); |