This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR52402


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  <jakub@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]