From bf9e13723dc9e9d691633464a8841511806cb23a Mon Sep 17 00:00:00 2001 From: thopre01 Date: Thu, 1 Mar 2018 18:22:56 +0000 Subject: [PATCH] [ARM] Fix copysign_softfloat_1.c option directives gcc.target/arm/copysign_softfloat_1.c's use of arm_arch_v6t2 in dg-add-option changes the architecture to -march=armv6t2. Since the test only requires Thumb-2 capable architecture, we just need to add -mthumb on the command line since arm_thumb2_ok guarantees by definition that doing that is enough to select Thumb-2. This fixes warning on the command line when having -mcpu=cortex-m3 in RUNTESTFLAGS for instance. 2018-03-01 Thomas Preud'homme PR c++/84596 diff --git a/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c b/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c index fdbeeadc01e..a14922f1c12 100644 --- a/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c +++ b/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target arm_thumb2_ok } */ -/* { dg-add-options arm_arch_v6t2 } */ -/* { dg-additional-options "-O2 --save-temps" } */ +/* { dg-additional-options "-mthumb -O2 --save-temps" } */ extern void abort (void); -- 2.11.4.GIT