From: Thomas Preud'homme Date: Thu, 1 Mar 2018 18:22:56 +0000 (+0000) Subject: [ARM] Fix copysign_softfloat_1.c option directives X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c9ce243e9f594fd22a9081ba72f50e0d1cdd508;p=gcc.git [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);