Message ID | 4DDBEDE7.3000009@codesourcery.com |
---|---|
State | New |
Headers | show |
On May 24, 2011, at 10:41 AM, Janis Johnson wrote: > Test g++.dg/abi/packed1.C triggers a warning for several targets. > OK for trunk and 4.6? Ok. If there is a portable -Wno-inefficient flag, that'd be a slightly better way to do this.
On 05/24/2011 01:40 PM, Mike Stump wrote: > On May 24, 2011, at 10:41 AM, Janis Johnson wrote: >> Test g++.dg/abi/packed1.C triggers a warning for several targets. > >> OK for trunk and 4.6? > > Ok. If there is a portable -Wno-inefficient flag, that'd be a slightly better way to do this. -Wno-attributes suppresses the warning, I can use that. Janis
Index: g++.dg/abi/packed1.C =================================================================== --- g++.dg/abi/packed1.C (revision 174094) +++ g++.dg/abi/packed1.C (working copy) @@ -1,10 +1,12 @@ // PR c++/41788 // { dg-options "-Wpacked" } // { dg-do run } +// Ignore a warning that is irrelevant to the purpose of this test. +// { dg-prune-output "inefficient.*vptr" } extern "C" void abort (); -struct INNER { // { dg-warning "inefficient.*vptr" "" { target alpha*-*-* ia64-*-* hppa*-*-* mips-sgi-irix* sparc*-*-* spu-*-* sh*-*-* } } +struct INNER { virtual int foo() const { return 1; } } __attribute__ ((packed));