On Tue, Feb 28, 2012 at 09:34:37PM +0100, Jakub Jelinek wrote:
> On Mon, Feb 27, 2012 at 04:38:01PM +0100, Richard Guenther wrote:
> > This fixes PR52402 in a similar way as PR50444.  IPA SRA needs to be
> > careful about alignment when constructing accesses.
> > 
> > Bootstrap and regtest pending on x86_64, any comments?
> 
> The test fails on i386-linux, adding "-w -Wno-psabi" to options
> disables the
> /usr/src/gcc/gcc/testsuite/gcc.dg/torture/pr52402.c: In function ‘foo.isra.0’:
> /usr/src/gcc/gcc/testsuite/gcc.dg/torture/pr52402.c:7:1: note: The ABI for 
> passing parameters with 16-byte alignment has changed in GCC 4.6
> /usr/src/gcc/gcc/testsuite/gcc.dg/torture/pr52402.c:7:1: warning: SSE vector 
> argument without SSE enabled changes the ABI [enabled by default]
> warnings it otherwise prints.

Here is a fix, bootstrapped/regtested on x86_64-linux and i686-linux,
ok for trunk?

2012-02-28  Jakub Jelinek  <ja...@redhat.com>

        * gcc.dg/torture/pr52402.c: Add -w -Wno-psabi to dg-options.

--- gcc/testsuite/gcc.dg/torture/pr52402.c.jj   2012-02-28 17:28:58.245648184 
+0100
+++ gcc/testsuite/gcc.dg/torture/pr52402.c      2012-02-28 21:47:06.787445156 
+0100
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-options "-w -Wno-psabi" } */
 
 typedef int v4si __attribute__((vector_size(16)));
 struct T { v4si i[2]; int j; } __attribute__((packed));


        Jakub

Reply via email to