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]

Remove arm-*-* from target of test _Pragma1.C and _Pragma6.c?


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39781

These two tests require that platform supports pragma pack(push).
However "HANDLE_PRAGMA_PACK_PUSH_POP" is not defined under gcc/config/arm.
Then GCC gives warnings that break the tests.
   "warning: #pragma pack(push[, id], ) is not supported on this target"

       PR testsuite/39781
       * g++.dg/cpp/_Pragma1.C (dg-do compile): Remove arm from test target.
       * gcc.dg/cpp/_Pragma6.c (dg-do compile): Likewise.

Can we remove arm-*-* from the target of these two tests?

The attachment is a patch to do the change.

Thanks,
Jing
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 146143)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2009-04-15 Jing Yu  <jingyu@google.com>
+
+	PR testsuite/39781
+	* g++.dg/cpp/_Pragma1.C (dg-do compile): Remove arm from test target.
+	* gcc.dg/cpp/_Pragma6.c (dg-do compile): Likewise.
+
 2009-04-15  Le-Chun Wu  <lcwu@google.com>
 
 	PR c++/39551
Index: gcc.dg/cpp/_Pragma6.c
===================================================================
--- gcc.dg/cpp/_Pragma6.c	(revision 146143)
+++ gcc.dg/cpp/_Pragma6.c	(working copy)
@@ -2,7 +2,7 @@
 /* This is supposed to succeed only if
    the target defines HANDLE_PRAGMA_PACK_PUSH_POP
    and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION.  */
-/* { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* } } } } */
+/* { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* arm-*-* } } } } */
 
 #define push bar
 #define foo _Pragma ("pack(push)")
Index: g++.dg/cpp/_Pragma1.C
===================================================================
--- g++.dg/cpp/_Pragma1.C	(revision 146143)
+++ g++.dg/cpp/_Pragma1.C	(working copy)
@@ -2,7 +2,7 @@
 // This is supposed to succeed only if
 // the target defines HANDLE_PRAGMA_PACK_PUSH_POP 
 // and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION.
-// { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* } } } }
+// { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* arm-*-* } } } }
 
 #define push bar
 #define foo _Pragma ("pack(push)")

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