Patchwork [testsuite] gcc.target/arm/unsigned-extend-1.c: omit -march option

login
register
mail settings
Submitter Janis Johnson
Date Sept. 26, 2012, 11:58 p.m.
Message ID <506396A5.4030607@mentor.com>
Download mbox | patch
Permalink /patch/187244/
State New
Headers show

Comments

Janis Johnson - Sept. 26, 2012, 11:58 p.m.
Test gcc.target/arm/unsigned-extend-1.c specifies option -march=armv6,
which causes compile failures when that option conflicts with other
test flags, such as for multilibs.  It can also be overridden by other
test flags.  The test is scanning that instruction "uxtb" is not
issued.  Leaving off the option won't hurt when the effective target
doesn't support the instruction, and will allow the test to be tried
with other newer processors as well.

OK for trunk?

Janis
2012-09-26  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/unsigned-extend-1.c: Omit -march option.
Mike Stump - Sept. 27, 2012, 3:40 p.m.
On Sep 26, 2012, at 4:58 PM, Janis Johnson <janis_johnson@mentor.com> wrote:

> Test gcc.target/arm/unsigned-extend-1.c specifies option -march=armv6,
> which causes compile failures when that option conflicts with other
> test flags, such as for multilibs.  It can also be overridden by other
> test flags.  The test is scanning that instruction "uxtb" is not
> issued.  Leaving off the option won't hurt when the effective target
> doesn't support the instruction, and will allow the test to be tried
> with other newer processors as well.
> 
> OK for trunk?

Ok.

Patch

Index: gcc.target/arm/unsigned-extend-1.c
===================================================================
--- gcc.target/arm/unsigned-extend-1.c	(revision 191765)
+++ gcc.target/arm/unsigned-extend-1.c	(working copy)
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O2 -march=armv6" } */
+/* { dg-options "-O2" } */
 
 unsigned char foo (unsigned char c)
 {