Commit 3a50da34 by Dehao Chen Committed by Dehao Chen

ipa-prop.c (ipa_modify_call_arguments): Set loc correctly.

2010-11-27  Dehao Chen  <dehao@google.com>

	* ipa-prop.c (ipa_modify_call_arguments): Set loc correctly.
	* emit-rtl.c (last_location): Remove unused variable.

From-SVN: r193857
parent a7538b9c
2010-11-27 Dehao Chen <dehao@google.com>
* ipa-prop.c (ipa_modify_call_arguments): Set loc correctly.
* emit-rtl.c (last_location): Remove unused variable.
2012-11-27 Uros Bizjak <ubizjak@gmail.com> 2012-11-27 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md * config/i386/i386.md
...@@ -5954,7 +5954,7 @@ location_t epilogue_location; ...@@ -5954,7 +5954,7 @@ location_t epilogue_location;
/* Hold current location information and last location information, so the /* Hold current location information and last location information, so the
datastructures are built lazily only when some instructions in given datastructures are built lazily only when some instructions in given
place are needed. */ place are needed. */
static location_t curr_location, last_location; static location_t curr_location;
/* Allocate insn location datastructure. */ /* Allocate insn location datastructure. */
void void
...@@ -5962,7 +5962,6 @@ insn_locations_init (void) ...@@ -5962,7 +5962,6 @@ insn_locations_init (void)
{ {
prologue_location = epilogue_location = 0; prologue_location = epilogue_location = 0;
curr_location = UNKNOWN_LOCATION; curr_location = UNKNOWN_LOCATION;
last_location = UNKNOWN_LOCATION;
} }
/* At the end of emit stage, clear current location. */ /* At the end of emit stage, clear current location. */
......
...@@ -2910,7 +2910,8 @@ ipa_modify_call_arguments (struct cgraph_edge *cs, gimple stmt, ...@@ -2910,7 +2910,8 @@ ipa_modify_call_arguments (struct cgraph_edge *cs, gimple stmt,
gcc_checking_assert (adj->offset % BITS_PER_UNIT == 0); gcc_checking_assert (adj->offset % BITS_PER_UNIT == 0);
base = gimple_call_arg (stmt, adj->base_index); base = gimple_call_arg (stmt, adj->base_index);
loc = EXPR_LOCATION (base); loc = DECL_P (base) ? DECL_SOURCE_LOCATION (base)
: EXPR_LOCATION (base);
if (TREE_CODE (base) != ADDR_EXPR if (TREE_CODE (base) != ADDR_EXPR
&& POINTER_TYPE_P (TREE_TYPE (base))) && POINTER_TYPE_P (TREE_TYPE (base)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment