Hi all,

This scan-assembler test was failing for me when testing with an explicit 
/-march=armv7-a variant because
it clashed with the -mcpu=cortex-m7 and overrode it.

This patch skips the test if the user forces an incompatible -march or -mcpu 
option.
The test now appears as UNSUPPORTED in these conditions and PASSes normally.

Applied as obvious with r225892.

Thanks,
Kyrill

2015-07-16  Kyrylo Tkachov  <kyrylo.tkac...@arm.com>

    * gcc.target/arm/no-volatile-in-it.c: Skip if -mcpu is overriden.
commit 1c90fa1c2853644fb67999e726761c6add649c39
Author: Kyrylo Tkachov <kyrylo.tkac...@arm.com>
Date:   Wed Jul 8 11:40:33 2015 +0100

    [ARM][testsuite] Do not override -mcpu in no-volatile-in-it.c

diff --git a/gcc/testsuite/gcc.target/arm/no-volatile-in-it.c b/gcc/testsuite/gcc.target/arm/no-volatile-in-it.c
index 206afdb..6f3664d 100644
--- a/gcc/testsuite/gcc.target/arm/no-volatile-in-it.c
+++ b/gcc/testsuite/gcc.target/arm/no-volatile-in-it.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target arm_thumb2_ok } */
+/* { dg-skip-if "do not override -mcpu" { *-*-* } { "-march=*" "-mcpu=*" } { "-mcpu=cortex-m7" } } */
 /* { dg-options "-Os -mthumb -mcpu=cortex-m7" } */
 
 int

Reply via email to