This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, GCC/ARM testsuite] Fix pr42574.c selector syntax error


This patch fixes a syntax error in the dg-do selector of pr42574.c: it is 
missing the target keyword, with the following boolean expression enclosed in 
curly braces. Test fails to be run without this patch and successfully pass 
with it. Patch is in attachment.

ChangeLog entry is as follows:


*** gcc/testsuite/ChangeLog ***

2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>

        * gcc.target/arm/pr42574.c: Add missing target keyword for the dg-do
        selector and enclose boolean expression in curly braces.


Is this ok for trunk?

Best regards,

Thomas
diff --git a/gcc/testsuite/gcc.target/arm/pr42574.c b/gcc/testsuite/gcc.target/arm/pr42574.c
index e3476f37788a2b3144454aef04a9b45c0b4ac398..d3d6b5d32e5826abf1017b823a9e271383daf09d 100644
--- a/gcc/testsuite/gcc.target/arm/pr42574.c
+++ b/gcc/testsuite/gcc.target/arm/pr42574.c
@@ -1,4 +1,4 @@
-/* { dg-do compile { arm_thumb1_ok && { ! arm_thumb1_movt_ok } } } */
+/* { dg-do compile { target { arm_thumb1_ok && { ! arm_thumb1_movt_ok } } } } */
 /* { dg-options "-mthumb -Os -fpic" }  */
 /* { dg-require-effective-target fpic } */
 /* Make sure the address of glob.c is calculated only once and using

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]