Patchwork [testsuite] ARM: require arm_thumb1_ok, drop -march

login
register
mail settings
Submitter Janis Johnson
Date June 21, 2011, 9:05 p.m.
Message ID <4E01078C.6000002@codesourcery.com>
Download mbox | patch
Permalink /patch/101370/
State New
Headers show

Comments

Janis Johnson - June 21, 2011, 9:05 p.m.
This test requires thumb1, so skip it for targets that don't support
that instead of specifying an arch value that might be overridden by
multilib flags.

OK for trunk, and later for 4.6?
2011-06-21  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/thumb-bitfld1.c: Don't specify -march, require thumb1.
Richard Earnshaw - June 22, 2011, 8:24 a.m.
On 21/06/11 22:05, Janis Johnson wrote:
> This test requires thumb1, so skip it for targets that don't support
> that instead of specifying an arch value that might be overridden by
> multilib flags.
> 
> OK for trunk, and later for 4.6?
> 
> 
> gcc-20110621-4
> 
> 
> 2011-06-21  Janis Johnson  <janisjo@codesourcery.com>
> 
> 	* gcc.target/arm/thumb-bitfld1.c: Don't specify -march, require thumb1.
> 

OK.

R.

Patch

Index: gcc.target/arm/thumb-bitfld1.c
===================================================================
--- gcc.target/arm/thumb-bitfld1.c	(revision 175269)
+++ gcc.target/arm/thumb-bitfld1.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O1 -mthumb -march=armv5t" }  */
+/* { dg-require-effective-target arm_thumb1_ok } */
+/* { dg-options "-O1 -mthumb" }  */
 
 struct foo
 {