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,testsuite] Fix g++.dg/other/unused1.C on MIPS.


Currently g++.dg/other/unused1.C is FAILing on MIPS because the form of the .ascii assembler directive is slightly different than that expected by the test (and evidently different than that generated for x86 also).

The fix is to allow for '.ascii\t"name\000"' as well as the other forms currently accepted by the test.

Tested on mipsel-linux cross compiler as well as i686-pc-linux-gnu native.

OK to commit?

2006-10-13 David Daney <ddaney@avtrex.com>

* g++.dg/other/unused1.C : Match on '.ascii\t"name\000"' also.

Index: g++.dg/other/unused1.C
===================================================================
--- g++.dg/other/unused1.C	(revision 117058)
+++ g++.dg/other/unused1.C	(working copy)
@@ -44,5 +44,5 @@
 /* { dg-final { scan-assembler "foo" } } */
 /* { dg-final { scan-assembler "boo" } } */
 /* { dg-final { scan-assembler "cue" } } */
-/* { dg-final { scan-assembler "(string|asci)z?\t\"class2\"" } } */
-/* { dg-final { scan-assembler "(string|asci)z?\t\"printer\"" } } */
+/* { dg-final { scan-assembler "(string|ascii?)z?\t\"class2(\"|\\\\000)" } } */
+/* { dg-final { scan-assembler "(string|ascii?)z?\t\"printer(\"|\\\\000)" } } */

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