* [PATCH, GCC/testsuite/ARM] Fix copysign_softfloat_1.c option directives
@ 2018-03-01 18:24 Thomas Preudhomme
0 siblings, 0 replies; only message in thread
From: Thomas Preudhomme @ 2018-03-01 18:24 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 690 bytes --]
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.
ChangeLog entry is as follows:
*** gcc/testsuite/ChangeLog ***
2018-03-01 Thomas Preud'homme <thomas.preudhomme@arm.com
* gcc.target/arm/copysign_softfloat_1.c: Remove dg-add-options and add
-mthumb to the command-line.
Committed as obvious.
Best regards,
Thomas
[-- Attachment #2: fix_copysign_softfloat_1_option_directives.patch --]
[-- Type: text/x-patch, Size: 604 bytes --]
diff --git a/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c b/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c
index fdbeeadc01e1c9b9a7810a8ff8b23c58f6c429a5..a14922f1c12aeb4a22ee38fde188691d5a89de81 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-03-01 18:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-01 18:24 [PATCH, GCC/testsuite/ARM] Fix copysign_softfloat_1.c option directives Thomas Preudhomme
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).