This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: PR38165
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mrs at apple dot com, janis187 at us dot ibm dot com
- Date: Wed, 18 Feb 2009 09:51:47 -0500
- Subject: [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