Patchwork [testsuite] ignore irrelevant warning in two ARM tests

login
register
mail settings
Submitter Janis Johnson
Date May 24, 2011, 5:42 p.m.
Message ID <4DDBEE23.60808@codesourcery.com>
Download mbox | patch
Permalink /patch/97190/
State New
Headers show

Comments

Janis Johnson - May 24, 2011, 5:42 p.m.
On ARM, two g++ tests trigger a warning about changed mangling.  The
warning is not relevant to the purpose of the test, so this patch
causes it to be ignored.

Tested on arm-none-linux-gnueabi.  OK for trunk and 4.6?
2011-05-24  Janis Johnson  <janisjo@codesourcery.com>

	* g++.dg/template/stdarg1.C: Ignore warning.
	* g++.dg/warn/Wunused-parm-3.C: Likewise.
Joseph S. Myers - May 24, 2011, 7:40 p.m.
On Tue, 24 May 2011, Janis Johnson wrote:

> On ARM, two g++ tests trigger a warning about changed mangling.  The
> warning is not relevant to the purpose of the test, so this patch
> causes it to be ignored.

Various existing tests use -Wno-abi or -Wno-psabi on particular targets 
for such cases.  E.g.

// { dg-options "-Wno-abi" { target arm_eabi } }

Patch

Index: g++.dg/template/stdarg1.C
===================================================================
--- g++.dg/template/stdarg1.C	(revision 174094)
+++ g++.dg/template/stdarg1.C	(working copy)
@@ -1,5 +1,7 @@ 
 // PR c++/47022
 // { dg-do compile }
+// Ignore a warning that is irrelevant to the purpose of this test.
+// { dg-prune-output "mangling.*has changed" }
 
 #include <cstdarg>
 
Index: g++.dg/warn/Wunused-parm-3.C
===================================================================
--- g++.dg/warn/Wunused-parm-3.C	(revision 174094)
+++ g++.dg/warn/Wunused-parm-3.C	(working copy)
@@ -1,5 +1,7 @@ 
 // { dg-do compile }
 // { dg-options "-Wunused -W" }
+// Ignore a warning that is irrelevant to the purpose of this test.
+// { dg-prune-output "mangling.*has changed" }
 
 #include <stdarg.h>