public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite patch] fix ARM tests with options that conflict with thumb1
@ 2014-08-11 21:58 Janis Johnson
  2014-08-11 23:49 ` Mike Stump
  0 siblings, 1 reply; 3+ messages in thread
From: Janis Johnson @ 2014-08-11 21:58 UTC (permalink / raw)
  To: gcc-patches

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

Two tests in gcc.target/arm add options that conflict with thumb1
multilib flags; skip them.  Tested with arm-none-linux-gnu for mainline
and 4.9 for a variety of multilib flags.

OK for mainline and 4.9 branch?

Janis

[-- Attachment #2: gcc-20140811-1 --]
[-- Type: text/plain, Size: 1135 bytes --]

2014-08-11  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/pr48784.c: Skip for thumb1 multilib.
	* gcc.target/arm/pr59985.c: Likewise.

Index: gcc/testsuite/gcc.target/arm/pr58784.c
===================================================================
--- gcc/testsuite/gcc.target/arm/pr58784.c	(revision 437379)
+++ gcc/testsuite/gcc.target/arm/pr58784.c	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "incompatible options" { arm_thumb1 } { "*" } { "" } } */
 /* { dg-options "-march=armv7-a -mfloat-abi=hard -mfpu=neon -marm -O2" } */
 
 typedef struct __attribute__ ((__packed__))
Index: gcc/testsuite/gcc.target/arm/pr59985.C
===================================================================
--- gcc/testsuite/gcc.target/arm/pr59985.C	(revision 437379)
+++ gcc/testsuite/gcc.target/arm/pr59985.C	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "incompatible options" { arm_thumb1 } { "*" } { "" } } */
 /* { dg-options "-g -fcompare-debug -O2 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard" } */
 
 extern void *f1 (unsigned long, unsigned long);

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

* Re: [testsuite patch] fix ARM tests with options that conflict with thumb1
  2014-08-11 21:58 [testsuite patch] fix ARM tests with options that conflict with thumb1 Janis Johnson
@ 2014-08-11 23:49 ` Mike Stump
  2014-08-11 23:54   ` Fwd: " Mike Stump
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Stump @ 2014-08-11 23:49 UTC (permalink / raw)
  To: janisjo; +Cc: gcc-patches

On Aug 11, 2014, at 2:58 PM, Janis Johnson <janis_johnson@mentor.com> wrote:
> Two tests in gcc.target/arm add options that conflict with thumb1
> multilib flags; skip them.  Tested with arm-none-linux-gnu for mainline
> and 4.9 for a variety of multilib flags.
> 
> OK for mainline and 4.9 branch?

So, my take is you can self-review things like this if you would like.  Doesn’t look controversial and likely you understand the issues better than most.

Ok.

Nit, if you discover a way to figure out incompatible options, it would be nicer to use it.  The usual gcc rules are, last option wins, which generally precludes noticing conflicting options.  I only mention this here, in case people want to contemplate conflicting options.

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

* Fwd: [testsuite patch] fix ARM tests with options that conflict with thumb1
  2014-08-11 23:49 ` Mike Stump
@ 2014-08-11 23:54   ` Mike Stump
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Stump @ 2014-08-11 23:54 UTC (permalink / raw)
  To: Janis Johnson; +Cc: gcc-patches List

[ dup, sorry ]

On Aug 11, 2014, at 2:58 PM, Janis Johnson <janis_johnson@mentor.com> wrote:
> Two tests in gcc.target/arm add options that conflict with thumb1
> multilib flags; skip them.  Tested with arm-none-linux-gnu for mainline
> and 4.9 for a variety of multilib flags.
> 
> OK for mainline and 4.9 branch?

So, my take is you can self-review things like this if you would like.  Doesn’t look controversial and likely you understand the issues better than most.

Ok.

Nit, if you discover a way to figure out incompatible options, it would be nicer to use it.  The usual gcc rules are, last option wins, which generally precludes noticing conflicting options.  I only mention this here, in case people want to contemplate conflicting options.

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

end of thread, other threads:[~2014-08-11 23:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-11 21:58 [testsuite patch] fix ARM tests with options that conflict with thumb1 Janis Johnson
2014-08-11 23:49 ` Mike Stump
2014-08-11 23:54   ` Fwd: " Mike Stump

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