Commit 2f36e14b by Jakub Jelinek Committed by Jakub Jelinek

re PR target/48213 (ICE in simplify_subreg called from s390_delegitimize_address)

	PR target/48213
	* config/s390/s390.c (s390_delegitimize_address): Don't call
	lowpart_subreg if orig_x has BLKmode.

	* gcc.dg/pr48213.c: New test.

From-SVN: r171211
parent 5050afdf
2011-03-21 Jakub Jelinek <jakub@redhat.com>
PR target/48213
* config/s390/s390.c (s390_delegitimize_address): Don't call
lowpart_subreg if orig_x has BLKmode.
2011-03-21 Kai Tietz <ktietz@redhat.com>
PR target/12171
......
......@@ -5062,6 +5062,8 @@ s390_delegitimize_address (rtx orig_x)
if (GET_MODE (orig_x) != Pmode)
{
if (GET_MODE (orig_x) == BLKmode)
return orig_x;
y = lowpart_subreg (GET_MODE (orig_x), y, Pmode);
if (y == NULL_RTX)
return orig_x;
......
2011-03-21 Jakub Jelinek <jakub@redhat.com>
PR target/48213
* gcc.dg/pr48213.c: New test.
2011-03-21 Kai Tietz <ktietz@redhat.com>
PR target/12171
......
/* PR target/48213 */
/* { dg-do compile } */
/* { dg-options "-g -O2" } */
/* { dg-options "-g -O2 -fpic" { target fpic } } */
struct S { int (*s) (void); };
int bar (void);
void
foo (struct S *x)
{
if (x->s != bar)
bar ();
}
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