public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite] ignore irrelevant warning in two ARM tests
@ 2011-05-24 18:52 Janis Johnson
  2011-05-24 21:08 ` Joseph S. Myers
  0 siblings, 1 reply; 8+ messages in thread
From: Janis Johnson @ 2011-05-24 18:52 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 218 bytes --]

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?

[-- Attachment #2: gcc-20110524-3 --]
[-- Type: text/plain, Size: 951 bytes --]

2011-05-24  Janis Johnson  <janisjo@codesourcery.com>

	* g++.dg/template/stdarg1.C: Ignore warning.
	* g++.dg/warn/Wunused-parm-3.C: Likewise.

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>
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [testsuite] ignore irrelevant warning in two ARM tests
  2011-05-24 18:52 [testsuite] ignore irrelevant warning in two ARM tests Janis Johnson
@ 2011-05-24 21:08 ` Joseph S. Myers
  2011-05-24 21:41   ` Janis Johnson
  0 siblings, 1 reply; 8+ messages in thread
From: Joseph S. Myers @ 2011-05-24 21:08 UTC (permalink / raw)
  To: Janis Johnson; +Cc: gcc-patches

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 } }

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [testsuite] ignore irrelevant warning in two ARM tests
  2011-05-24 21:08 ` Joseph S. Myers
@ 2011-05-24 21:41   ` Janis Johnson
  2011-05-24 21:53     ` Janis Johnson
  2011-05-25  0:40     ` Joseph S. Myers
  0 siblings, 2 replies; 8+ messages in thread
From: Janis Johnson @ 2011-05-24 21:41 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 528 bytes --]

On 05/24/2011 12:40 PM, Joseph S. Myers wrote:
> 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 } }
> 

Is this one OK for trunk and 4.6?  The failure occurs for arm-none-eabi
and for arm-none-linux-gnueabi.


[-- Attachment #2: gcc-20110524-3b --]
[-- Type: text/plain, Size: 971 bytes --]

2011-05-24  Janis Johnson  <janisjo@codesourcery.com>

	* g++.dg/template/stdarg1.C: Suppress a warning.
	* g++.dg/warn/Wunused-parm-3.C: Likewise.

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 }
+// Suppress a warning that is irrelevant to the purpose of this test.
+// { dg-options "-Wno-abi" { target arm*-*-*eabi } }
 
 #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" }
+// Suppress a warning that is irrelevant to the purpose of this test.
+// { dg-options "-Wno-abi" { target arm*-*-*eabi } }
 
 #include <stdarg.h>
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [testsuite] ignore irrelevant warning in two ARM tests
  2011-05-24 21:41   ` Janis Johnson
@ 2011-05-24 21:53     ` Janis Johnson
  2011-05-25  0:40     ` Joseph S. Myers
  1 sibling, 0 replies; 8+ messages in thread
From: Janis Johnson @ 2011-05-24 21:53 UTC (permalink / raw)
  To: gcc-patches

On 05/24/2011 01:36 PM, Janis Johnson wrote:
> On 05/24/2011 12:40 PM, Joseph S. Myers wrote:
>> 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 } }
>>
> 
> Is this one OK for trunk and 4.6?  The failure occurs for arm-none-eabi
> and for arm-none-linux-gnueabi.

Sorry, I hadn't noticed that arm_eabi is an effective-target keyword;
I'll use that instead.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [testsuite] ignore irrelevant warning in two ARM tests
  2011-05-24 21:41   ` Janis Johnson
  2011-05-24 21:53     ` Janis Johnson
@ 2011-05-25  0:40     ` Joseph S. Myers
  2011-05-25  0:49       ` Janis Johnson
  1 sibling, 1 reply; 8+ messages in thread
From: Joseph S. Myers @ 2011-05-25  0:40 UTC (permalink / raw)
  To: Janis Johnson; +Cc: gcc-patches

On Tue, 24 May 2011, Janis Johnson wrote:

> On 05/24/2011 12:40 PM, Joseph S. Myers wrote:
> > 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 } }
> > 
> 
> Is this one OK for trunk and 4.6?  The failure occurs for arm-none-eabi
> and for arm-none-linux-gnueabi.

You should repeat all the original options from the main dg-options line, 
with -Wno-abi added, in the ARM EABI dg-options line, since only one 
dg-options line will be in effect.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [testsuite] ignore irrelevant warning in two ARM tests
  2011-05-25  0:40     ` Joseph S. Myers
@ 2011-05-25  0:49       ` Janis Johnson
  2011-05-25  8:39         ` Mike Stump
  0 siblings, 1 reply; 8+ messages in thread
From: Janis Johnson @ 2011-05-25  0:49 UTC (permalink / raw)
  To: gcc-patches

On 05/24/2011 03:33 PM, Joseph S. Myers wrote:
> On Tue, 24 May 2011, Janis Johnson wrote:
> 
>> On 05/24/2011 12:40 PM, Joseph S. Myers wrote:
>>> 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 } }
>>>
>>
>> Is this one OK for trunk and 4.6?  The failure occurs for arm-none-eabi
>> and for arm-none-linux-gnueabi.
> 
> You should repeat all the original options from the main dg-options line, 
> with -Wno-abi added, in the ARM EABI dg-options line, since only one 
> dg-options line will be in effect.

Oops, yet again.  I'll do that.

Janis

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [testsuite] ignore irrelevant warning in two ARM tests
  2011-05-25  0:49       ` Janis Johnson
@ 2011-05-25  8:39         ` Mike Stump
  2011-05-25 16:18           ` Janis Johnson
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Stump @ 2011-05-25  8:39 UTC (permalink / raw)
  To: Janis Johnson; +Cc: gcc-patches

On May 24, 2011, at 3:42 PM, Janis Johnson wrote:
>>> Is this one OK for trunk and 4.6?  The failure occurs for arm-none-eabi
>>> and for arm-none-linux-gnueabi.
>> 
>> You should repeat all the original options from the main dg-options line, 
>> with -Wno-abi added, in the ARM EABI dg-options line, since only one 
>> dg-options line will be in effect.
> 
> Oops, yet again.  I'll do that.

Ok with that change.  Also, if there are many of these exceptions, it might be better to add the flags to shut it up to the base set of flags, and then to add it explicitly to any testcase that really does want to test the warning.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [testsuite] ignore irrelevant warning in two ARM tests
  2011-05-25  8:39         ` Mike Stump
@ 2011-05-25 16:18           ` Janis Johnson
  0 siblings, 0 replies; 8+ messages in thread
From: Janis Johnson @ 2011-05-25 16:18 UTC (permalink / raw)
  To: gcc-patches

On 05/24/2011 05:49 PM, Mike Stump wrote:
> On May 24, 2011, at 3:42 PM, Janis Johnson wrote:
>>>> Is this one OK for trunk and 4.6?  The failure occurs for arm-none-eabi
>>>> and for arm-none-linux-gnueabi.
>>>
>>> You should repeat all the original options from the main dg-options line, 
>>> with -Wno-abi added, in the ARM EABI dg-options line, since only one 
>>> dg-options line will be in effect.
>>
>> Oops, yet again.  I'll do that.
> 
> Ok with that change.  Also, if there are many of these exceptions, it might be better to add the flags to shut it up to the base set of flags, and then to add it explicitly to any testcase that really does want to test the warning.

These are the only tests I've found that get this message.

Janis

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-05-25 15:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 18:52 [testsuite] ignore irrelevant warning in two ARM tests Janis Johnson
2011-05-24 21:08 ` Joseph S. Myers
2011-05-24 21:41   ` Janis Johnson
2011-05-24 21:53     ` Janis Johnson
2011-05-25  0:40     ` Joseph S. Myers
2011-05-25  0:49       ` Janis Johnson
2011-05-25  8:39         ` Mike Stump
2011-05-25 16:18           ` Janis Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).