Commit eef7b18c by Vladimir Makarov Committed by Vladimir Makarov

re PR target/64061 (ICE: in gen_rtx_SUBREG, at emit-rtl.c:894 with -O2 -g -fno-dce -fno-tree-dce)

2014-11-28  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/64061
	* lra.c (lra_substitute_pseudo): Ignore constant with int mode for
	subreg.

2014-11-28  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/64061
	* gcc.target/i386/pr64061.c: New.

From-SVN: r218171
parent ee95f928
2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
PR target/64061
* lra.c (lra_substitute_pseudo): Ignore constant with int mode for
subreg.
2014-11-28 Segher Boessenkool <segher@kernel.crashing.org>
PR target/64093
......@@ -1806,7 +1806,8 @@ lra_substitute_pseudo (rtx *loc, int old_regno, rtx new_reg)
machine_mode mode = GET_MODE (*loc);
machine_mode inner_mode = GET_MODE (new_reg);
if (mode != inner_mode)
if (mode != inner_mode
&& ! (CONST_INT_P (new_reg) && SCALAR_INT_MODE_P (mode)))
{
if (GET_MODE_SIZE (mode) >= GET_MODE_SIZE (inner_mode)
|| ! SCALAR_INT_MODE_P (inner_mode))
......
2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
PR target/64061
* gcc.target/i386/pr64061.c: New.
2014-11-28 Marek Polacek <polacek@redhat.com>
* c-c++-common/ubsan/shift-8.c: New test.
......@@ -5,7 +10,7 @@
2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/64087
* gcc.dg/pr64087.c: New.
* gcc.dg/pr64087.c: New.
2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
......
/* { dg-do compile } */
/* { dg-options "-O2 -g -fno-dce -fno-tree-dce" } */
extern void *buf;
extern void bar (void);
int
foo (int i)
{
int j = 0;
if (__builtin_setjmp (buf) == 0)
{
while (1)
{
j = 1;
bar ();
}
}
return j ? i : 0;
}
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