Commit dcc1e1fa by Jakub Jelinek Committed by Jakub Jelinek

re PR rtl-optimization/42429 (Miscompilation of 2fish on s390)

	PR rtl-optimization/42429
	* reload.c (find_reloads_subreg_address): When adjusting mode of
	MEM, update also MEM_SIZE if it is set.

From-SVN: r155374
parent 938a483f
2009-12-21 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/42429
* reload.c (find_reloads_subreg_address): When adjusting mode of
MEM, update also MEM_SIZE if it is set.
2009-12-21 H.J. Lu <hongjiu.lu@intel.com> 2009-12-21 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/42345 PR bootstrap/42345
...@@ -6149,6 +6149,9 @@ find_reloads_subreg_address (rtx x, int force_replace, int opnum, ...@@ -6149,6 +6149,9 @@ find_reloads_subreg_address (rtx x, int force_replace, int opnum,
PUT_MODE (tem, GET_MODE (x)); PUT_MODE (tem, GET_MODE (x));
if (MEM_OFFSET (tem)) if (MEM_OFFSET (tem))
set_mem_offset (tem, plus_constant (MEM_OFFSET (tem), offset)); set_mem_offset (tem, plus_constant (MEM_OFFSET (tem), offset));
if (MEM_SIZE (tem)
&& INTVAL (MEM_SIZE (tem)) != (HOST_WIDE_INT) outer_size)
set_mem_size (tem, GEN_INT (outer_size));
/* If this was a paradoxical subreg that we replaced, the /* If this was a paradoxical subreg that we replaced, the
resulting memory must be sufficiently aligned to allow resulting memory must be sufficiently aligned to allow
......
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