diff mbox

Add -Wno-abi in c++ struct-layout-1 tests

Message ID 20140925070142.GK17454@tucnak.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Sept. 25, 2014, 7:01 a.m. UTC
Hi!

I've noticed that lots of g++ struct-layout-1.exp tests now fail
on ppc*.  The problem is the psABI warning:
the layout of aggregates containing vectors with N-byte alignment
For various targets we are using -Wno-abi (and, in C
struct-layout-1.exp also by default) for this, so the patch just
changes the default for C++ testing too.

Regtested on x86_64-linux and powerpc*-linux, ok for trunk/4.9/4.8?

2014-09-25  Jakub Jelinek  <jakub@redhat.com>

	* g++.dg/compat/struct-layout-1_generate.c: Add -Wno-abi
	to default options.


	Jakub

Comments

Jeff Law Sept. 25, 2014, 11:55 a.m. UTC | #1
On 09/25/14 01:01, Jakub Jelinek wrote:
> Hi!
>
> I've noticed that lots of g++ struct-layout-1.exp tests now fail
> on ppc*.  The problem is the psABI warning:
> the layout of aggregates containing vectors with N-byte alignment
> For various targets we are using -Wno-abi (and, in C
> struct-layout-1.exp also by default) for this, so the patch just
> changes the default for C++ testing too.
>
> Regtested on x86_64-linux and powerpc*-linux, ok for trunk/4.9/4.8?
>
> 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
>
> 	* g++.dg/compat/struct-layout-1_generate.c: Add -Wno-abi
> 	to default options.
OK.
jeff
diff mbox

Patch

--- gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c.jj	2012-03-14 09:39:38.000000000 +0100
+++ gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c	2014-09-24 07:59:10.086096164 +0200
@@ -1,5 +1,5 @@ 
 /* Structure layout test generator.
-   Copyright (C) 2004, 2005, 2007, 2008, 2009, 2011, 2012
+   Copyright (C) 2004-2014
    Free Software Foundation, Inc.
    Contributed by Jakub Jelinek <jakub@redhat.com>.
 
@@ -44,7 +44,7 @@  along with GCC; see the file COPYING3.
 #endif
 
 const char *dg_options[] = {
-"/* { dg-options \"%s-I%s\" } */\n",
+"/* { dg-options \"%s-I%s -Wno-abi\" } */\n",
 "/* { dg-options \"%s-I%s -mno-mmx -Wno-abi\" { target i?86-*-* x86_64-*-* } } */\n",
 "/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* powerpc*-*-darwin* *-*-mingw32* *-*-cygwin* } } */\n",
 "/* { dg-options \"%s-I%s -mno-mmx -fno-common -Wno-abi\" { target i?86-*-darwin* x86_64-*-darwin* i?86-*-mingw32* x86_64-*-mingw32* i?86-*-cygwin* } } */\n",