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]: PR38165


Currently the darwin specific g++.dg/pubtypes.C test case
shows false failures for...

/* { dg-final { scan-assembler "long+\[ \t\]+0x24+\[ \t\]+\[#;]+\[ \t\]+Length of Public Type Names Info" } } */

The following patch corrects the dg commands according
to radar 4535968 and eliminates these failures at -m32
and -m64. Tested on powerpc-apple-darwin9 without
regressions. Okay for gcc trunk?
                           Jack


2009-02-18  Jack Howarth <howarth@bromo.med.uc.edu>

        PR testsuite/38165
        * g++.dg/pubtypes.C: Adopt Radar 4535968 fix to testcase.

Index: gcc/testsuite/g++.dg/pubtypes.C
===================================================================
--- gcc/testsuite/g++.dg/pubtypes.C	(revision 144262)
+++ gcc/testsuite/g++.dg/pubtypes.C	(working copy)
@@ -1,10 +1,13 @@
+/* Radar 4535968 */
 /* { dg-do compile { target *-*-darwin* } } */
 /* { dg-options "-O0 -gdwarf-2 -dA -fno-eliminate-unused-debug-types" } */
 /* { dg-final { scan-assembler "__debug_pubtypes" } } */
-/* { dg-final { scan-assembler "long+\[ \t\]+0x24+\[ \t\]+\[#;]+\[ \t\]+Length of Public Type Names Info" } } */
-/* { dg-final { scan-assembler "\"empty\\\\0\"+\[ \t\]+\[#;]+\[ \t\]+external name" } } */
-/* { dg-final { scan-assembler "\"A\\\\0\"+\[ \t\]+\[#;]+\[ \t\]+external name" } } */
-/* { dg-final { scan-assembler "\"B\\\\0\"+\[ \t\]+\[#;]+\[ \t\]+external name" } } */
+/* APPLE LOCAL begin ARM assembler uses @ for comments */
+/* { dg-final { scan-assembler "long+\[ \t\]+\(0x\)?\[0-9a-f]+\[ \t\n\]+\[#;@]+\[ \t\]+Length of Public Type Names Info" } } */
+/* { dg-final { scan-assembler "\"empty\\\\0\"+\[ \t\]+\[#;@]+\[ \t\]+external name" } } */
+/* { dg-final { scan-assembler "\"A\\\\0\"+\[ \t\]+\[#;@]+\[ \t\]+external name" } } */
+/* { dg-final { scan-assembler "\"B\\\\0\"+\[ \t\]+\[#;@]+\[ \t\]+external name" } } */
+/* APPLE LOCAL end ARM assembler uses @ for comments */
 
 
 struct A


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