Commit d82a02fa by Andreas Krebbel Committed by Andreas Krebbel

simplify-rtx.c (avoid_constant_pool_reference): Avoid calling simplify_subreg…

simplify-rtx.c (avoid_constant_pool_reference): Avoid calling simplify_subreg with BLKmode outer mode.

2006-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>

	* simplify-rtx.c (avoid_constant_pool_reference): Avoid calling 
	simplify_subreg with BLKmode outer mode.

2006-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc.dg/20061109-1.c: New testcase.

From-SVN: r118622
parent 282530ce
2006-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
* simplify-rtx.c (avoid_constant_pool_reference): Avoid calling
simplify_subreg with BLKmode outer mode.
2006-11-08 Brooks Moses <brooks.moses@codesourcery.com> 2006-11-08 Brooks Moses <brooks.moses@codesourcery.com>
* doc/invoke.texi: Minor formatting fixes in option lists. * doc/invoke.texi: Minor formatting fixes in option lists.
......
...@@ -158,6 +158,9 @@ avoid_constant_pool_reference (rtx x) ...@@ -158,6 +158,9 @@ avoid_constant_pool_reference (rtx x)
return x; return x;
} }
if (GET_MODE (x) == BLKmode)
return x;
addr = XEXP (x, 0); addr = XEXP (x, 0);
/* Call target hook to avoid the effects of -fpic etc.... */ /* Call target hook to avoid the effects of -fpic etc.... */
......
2006-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
* gcc.dg/20061109-1.c: New testcase.
2006-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2006-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/builtins-20.c: Use fabs, not __builtin_fabs. * gcc.dg/builtins-20.c: Use fabs, not __builtin_fabs.
/* { dg-do compile } */
/* { dg-options "-O1" } */
/* This assignment might be implemented with a mem copy from the
literal pool with two BLKmode operands. This produced an ICE on S/390
since simplify_subreg was called for such a BLKmode operand. */
struct a
{
unsigned int b:24;
};
void
foo (struct a *t)
{
t->b = 32;
}
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