Commit fe58e02b by H.J. Lu Committed by H.J. Lu

Check SUBREG in prepare_call_arguments.

2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR debug/48160
	* var-tracking.c (prepare_call_arguments): Check SUBREG.

From-SVN: r171108
parent 6fc4dbc7
2011-03-17 H.J. Lu <hongjiu.lu@intel.com> 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
PR debug/48160
* var-tracking.c (prepare_call_arguments): Check SUBREG.
2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
PR target/48171 PR target/48171
* config/i386/i386.opt: Add Save to -mavx and -mfma. * config/i386/i386.opt: Add Save to -mavx and -mfma.
......
...@@ -5770,7 +5770,11 @@ prepare_call_arguments (basic_block bb, rtx insn) ...@@ -5770,7 +5770,11 @@ prepare_call_arguments (basic_block bb, rtx insn)
/* Try harder, when passing address of a constant /* Try harder, when passing address of a constant
pool integer it can be easily read back. */ pool integer it can be easily read back. */
val = CSELIB_VAL_PTR (XEXP (item, 1)); item = XEXP (item, 1);
if (GET_CODE (item) == SUBREG)
item = SUBREG_REG (item);
gcc_assert (GET_CODE (item) == VALUE);
val = CSELIB_VAL_PTR (item);
for (l = val->locs; l; l = l->next) for (l = val->locs; l; l = l->next)
if (GET_CODE (l->loc) == SYMBOL_REF if (GET_CODE (l->loc) == SYMBOL_REF
&& TREE_CONSTANT_POOL_ADDRESS_P (l->loc) && TREE_CONSTANT_POOL_ADDRESS_P (l->loc)
......
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