Patchwork [Testsuite] Fix test with -Wno-abi for arm-eabi

login
register
mail settings
Submitter Ramana Radhakrishnan
Date Oct. 13, 2010, 3:09 p.m.
Message ID <1286982567.9604.5.camel@e102325-lin.cambridge.arm.com>
Download mbox | patch
Permalink /patch/67689/
State New
Headers show

Comments

Ramana Radhakrishnan - Oct. 13, 2010, 3:09 p.m.
Hi,

The test g++.dg/torture/stackalign/eh-varg-2.C fails on arm-eabi because
of warnings about va_list mangling changes between 4.4 and trunk. 

A number of other tests (c.f. g++.dg/cpp0x/temp-va-arg-bug.C) have been
fixed up for arm-eabi to have the extra -Wno-abi flag. 

Tested with arm-eabi that the tests don't fail for compilation errors. 

Ok to commit on trunk ?

cheers
Ramana


2010-10-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

       * g++.dg/torture/stackalign/eh-vararg-2.C: Fix dg-options for
arm-eabi targets.
Mark Mitchell - Oct. 13, 2010, 8:04 p.m.
On 10/13/2010 8:09 AM, Ramana Radhakrishnan wrote:

> 2010-10-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
> 
>        * g++.dg/torture/stackalign/eh-vararg-2.C: Fix dg-options for
> arm-eabi targets.

OK.

Patch

diff --git a/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-2.C b/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-2.C
index 719c839..9aa25b8 100644
--- a/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-2.C
+++ b/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-2.C
@@ -1,3 +1,4 @@ 
+/* { dg-options "-Wno-abi" {target arm_eabi} } */
 /* { dg-do run } */
 
 #include <stdarg.h>