public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH testsuite, ARM] skip Wno-frame-address tests
@ 2015-08-20 13:49 Christian Bruel
  2015-08-20 13:53 ` Kyrill Tkachov
  2015-08-20 16:39 ` Jeff Law
  0 siblings, 2 replies; 5+ messages in thread
From: Christian Bruel @ 2015-08-20 13:49 UTC (permalink / raw)
  To: msebor, kyrylo.tkachov, ramana.radhakrishnan, gcc-patches

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

Hello,

2 tests from rev 226480 introduced a new failure for ARM testing -Werror 
because a warning is always emitted regardless -Wframe-address is given 
or not.

 From expand_builtin_frame_address:

  /* Some ports cannot access arbitrary stack frames.  */
       if (tem == NULL)
	{
	  warning (0, "unsupported argument to %qD", fndecl);
	  return const0_rtx;
	}

This patch just skips the test on ARM that can't access arbitrary stack 
frame anyway and will always warn.

OK for trunk ? thanks,

Christian





	

[-- Attachment #2: no-frame-address.patch --]
[-- Type: text/x-patch, Size: 1082 bytes --]

015-08-20  Christian Bruel  <christian.bruel@st.com>

	* gcc.dg/Wno-frame-address.c: Skip for ARM.
	* g++.dg/Wno-frame-address.C: Ditto.

Index: gcc/testsuite/gcc.dg/Wno-frame-address.c
===================================================================
--- gcc/testsuite/gcc.dg/Wno-frame-address.c	(revision 227030)
+++ gcc/testsuite/gcc.dg/Wno-frame-address.c	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "Cannot access arbitrary stack frames. " { arm*-*-* } { "*" } { "" } } */
 /* { dg-options "-Werror" } */
 
 /* Verify that -Wframe-address is not enabled by default by enabling
Index: gcc/testsuite/g++.dg/Wno-frame-address.C
===================================================================
--- gcc/testsuite/g++.dg/Wno-frame-address.C	(revision 227030)
+++ gcc/testsuite/g++.dg/Wno-frame-address.C	(working copy)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+/* { dg-skip-if "Cannot access arbitrary stack frames. " { arm*-*-* } { "*" } { "" } } */
 // { dg-options "-Werror" }
 
 // Verify that -Wframe-address is not enabled by default by enabling

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

* Re: [PATCH testsuite, ARM] skip Wno-frame-address tests
  2015-08-20 13:49 [PATCH testsuite, ARM] skip Wno-frame-address tests Christian Bruel
@ 2015-08-20 13:53 ` Kyrill Tkachov
  2015-08-20 14:05   ` Rainer Orth
  2015-08-20 14:57   ` Christian Bruel
  2015-08-20 16:39 ` Jeff Law
  1 sibling, 2 replies; 5+ messages in thread
From: Kyrill Tkachov @ 2015-08-20 13:53 UTC (permalink / raw)
  To: Christian Bruel, msebor, ramana.radhakrishnan, gcc-patches

Hi Christian,

On 20/08/15 14:45, Christian Bruel wrote:
> Hello,
>
> 2 tests from rev 226480 introduced a new failure for ARM testing -Werror
> because a warning is always emitted regardless -Wframe-address is given
> or not.
>
>   From expand_builtin_frame_address:
>
>    /* Some ports cannot access arbitrary stack frames.  */
>         if (tem == NULL)
> 	{
> 	  warning (0, "unsupported argument to %qD", fndecl);
> 	  return const0_rtx;
> 	}
>
> This patch just skips the test on ARM that can't access arbitrary stack
> frame anyway and will always warn.
>
> OK for trunk ? thanks,
>
> Christian
>
>
>
>
>
> 	
>
> no-frame-address.patch
>
>
> 015-08-20  Christian Bruel<christian.bruel@st.com>
>
> 	* gcc.dg/Wno-frame-address.c: Skip for ARM.
> 	* g++.dg/Wno-frame-address.C: Ditto.
>
> Index: gcc/testsuite/gcc.dg/Wno-frame-address.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/Wno-frame-address.c	(revision 227030)
> +++ gcc/testsuite/gcc.dg/Wno-frame-address.c	(working copy)
> @@ -1,4 +1,5 @@
>   /* { dg-do compile } */
> +/* { dg-skip-if "Cannot access arbitrary stack frames. " { arm*-*-* } { "*" } { "" } } */
>   /* { dg-options "-Werror" } */
>   
>   /* Verify that -Wframe-address is not enabled by default by enabling
> Index: gcc/testsuite/g++.dg/Wno-frame-address.C
> ===================================================================
> --- gcc/testsuite/g++.dg/Wno-frame-address.C	(revision 227030)
> +++ gcc/testsuite/g++.dg/Wno-frame-address.C	(working copy)
> @@ -1,4 +1,5 @@
>   // { dg-do compile }
> +/* { dg-skip-if "Cannot access arbitrary stack frames. " { arm*-*-* } { "*" } { "" } } */
>   // { dg-options "-Werror" }

Use the C++-style comment here.
Otherwise looks ok to me, though if more tests like this crop we'd want a
dg-requires-effective-target check that filters out the targets that don't
implement this feature.

Kyrill

>   
>   // Verify that -Wframe-address is not enabled by default by enabling

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

* Re: [PATCH testsuite, ARM] skip Wno-frame-address tests
  2015-08-20 13:53 ` Kyrill Tkachov
@ 2015-08-20 14:05   ` Rainer Orth
  2015-08-20 14:57   ` Christian Bruel
  1 sibling, 0 replies; 5+ messages in thread
From: Rainer Orth @ 2015-08-20 14:05 UTC (permalink / raw)
  To: Kyrill Tkachov; +Cc: Christian Bruel, msebor, ramana.radhakrishnan, gcc-patches

Kyrill Tkachov <kyrylo.tkachov@arm.com> writes:

>> 015-08-20  Christian Bruel<christian.bruel@st.com>
>>
>> 	* gcc.dg/Wno-frame-address.c: Skip for ARM.
>> 	* g++.dg/Wno-frame-address.C: Ditto.
>>
>> Index: gcc/testsuite/gcc.dg/Wno-frame-address.c
>> ===================================================================
>> --- gcc/testsuite/gcc.dg/Wno-frame-address.c	(revision 227030)
>> +++ gcc/testsuite/gcc.dg/Wno-frame-address.c	(working copy)
>> @@ -1,4 +1,5 @@
>>   /* { dg-do compile } */
>> +/* { dg-skip-if "Cannot access arbitrary stack frames. " { arm*-*-* } { "*" } { "" } } */
>>   /* { dg-options "-Werror" } */
>>     /* Verify that -Wframe-address is not enabled by default by enabling
>> Index: gcc/testsuite/g++.dg/Wno-frame-address.C
>> ===================================================================
>> --- gcc/testsuite/g++.dg/Wno-frame-address.C	(revision 227030)
>> +++ gcc/testsuite/g++.dg/Wno-frame-address.C	(working copy)
>> @@ -1,4 +1,5 @@
>>   // { dg-do compile }
>> +/* { dg-skip-if "Cannot access arbitrary stack frames. " { arm*-*-* } { "*" } { "" } } */
>>   // { dg-options "-Werror" }
>
> Use the C++-style comment here.
> Otherwise looks ok to me, though if more tests like this crop we'd want a
> dg-requires-effective-target check that filters out the targets that don't
> implement this feature.

Besides: omit the blank after the `frames. ' in the dg-skip-if comment
and the unnecessary default arguments ({ "*" } { "" }) in both cases.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

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

* Re: [PATCH testsuite, ARM] skip Wno-frame-address tests
  2015-08-20 13:53 ` Kyrill Tkachov
  2015-08-20 14:05   ` Rainer Orth
@ 2015-08-20 14:57   ` Christian Bruel
  1 sibling, 0 replies; 5+ messages in thread
From: Christian Bruel @ 2015-08-20 14:57 UTC (permalink / raw)
  To: Kyrill Tkachov, msebor, ramana.radhakrishnan, gcc-patches



On 08/20/2015 03:48 PM, Kyrill Tkachov wrote:
> Hi Christian,
>
> On 20/08/15 14:45, Christian Bruel wrote:
>> Hello,
>>
>> 2 tests from rev 226480 introduced a new failure for ARM testing -Werror
>> because a warning is always emitted regardless -Wframe-address is given
>> or not.
>>
>>    From expand_builtin_frame_address:
>>
>>     /* Some ports cannot access arbitrary stack frames.  */
>>          if (tem == NULL)
>> 	{
>> 	  warning (0, "unsupported argument to %qD", fndecl);
>> 	  return const0_rtx;
>> 	}
>>
>> This patch just skips the test on ARM that can't access arbitrary stack
>> frame anyway and will always warn.
>>
>> OK for trunk ? thanks,
>>
>> Christian
>>
>>
>>
>>
>>
>> 	
>>
>> no-frame-address.patch
>>
>>
>> 015-08-20  Christian Bruel<christian.bruel@st.com>
>>
>> 	* gcc.dg/Wno-frame-address.c: Skip for ARM.
>> 	* g++.dg/Wno-frame-address.C: Ditto.
>>
>> Index: gcc/testsuite/gcc.dg/Wno-frame-address.c
>> ===================================================================
>> --- gcc/testsuite/gcc.dg/Wno-frame-address.c	(revision 227030)
>> +++ gcc/testsuite/gcc.dg/Wno-frame-address.c	(working copy)
>> @@ -1,4 +1,5 @@
>>    /* { dg-do compile } */
>> +/* { dg-skip-if "Cannot access arbitrary stack frames. " { arm*-*-* } { "*" } { "" } } */
>>    /* { dg-options "-Werror" } */
>>
>>    /* Verify that -Wframe-address is not enabled by default by enabling
>> Index: gcc/testsuite/g++.dg/Wno-frame-address.C
>> ===================================================================
>> --- gcc/testsuite/g++.dg/Wno-frame-address.C	(revision 227030)
>> +++ gcc/testsuite/g++.dg/Wno-frame-address.C	(working copy)
>> @@ -1,4 +1,5 @@
>>    // { dg-do compile }
>> +/* { dg-skip-if "Cannot access arbitrary stack frames. " { arm*-*-* } { "*" } { "" } } */
>>    // { dg-options "-Werror" }
>
> Use the C++-style comment here.

oops yes. cut and pasted.

> Otherwise looks ok to me, though if more tests like this crop we'd want a
> dg-requires-effective-target check that filters out the targets that don't
> implement this feature.

agree, if more targets come up with the same failure a predicate helper 
will be useful.

thanks

Christian


>
> Kyrill
>
>>
>>    // Verify that -Wframe-address is not enabled by default by enabling
>

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

* Re: [PATCH testsuite, ARM] skip Wno-frame-address tests
  2015-08-20 13:49 [PATCH testsuite, ARM] skip Wno-frame-address tests Christian Bruel
  2015-08-20 13:53 ` Kyrill Tkachov
@ 2015-08-20 16:39 ` Jeff Law
  1 sibling, 0 replies; 5+ messages in thread
From: Jeff Law @ 2015-08-20 16:39 UTC (permalink / raw)
  To: Christian Bruel, msebor, kyrylo.tkachov, ramana.radhakrishnan,
	gcc-patches

On 08/20/2015 07:45 AM, Christian Bruel wrote:
> Hello,
>
> 2 tests from rev 226480 introduced a new failure for ARM testing -Werror
> because a warning is always emitted regardless -Wframe-address is given
> or not.
>
>  From expand_builtin_frame_address:
>
>   /* Some ports cannot access arbitrary stack frames.  */
>        if (tem == NULL)
>      {
>        warning (0, "unsupported argument to %qD", fndecl);
>        return const0_rtx;
>      }
>
> This patch just skips the test on ARM that can't access arbitrary stack
> frame anyway and will always warn.
>
> OK for trunk ? thanks,
>
> Christian
>
>
>
>
>
>
>
> no-frame-address.patch
>
>
> 015-08-20  Christian Bruel<christian.bruel@st.com>
>
> 	* gcc.dg/Wno-frame-address.c: Skip for ARM.
> 	* g++.dg/Wno-frame-address.C: Ditto.
OK.
jeff

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

end of thread, other threads:[~2015-08-20 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-20 13:49 [PATCH testsuite, ARM] skip Wno-frame-address tests Christian Bruel
2015-08-20 13:53 ` Kyrill Tkachov
2015-08-20 14:05   ` Rainer Orth
2015-08-20 14:57   ` Christian Bruel
2015-08-20 16:39 ` Jeff Law

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).