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
+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
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
--- /dev/null
+/* 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 ();
+}