gcc.target/i386/pr37843-4.c tests for the form calls to a function
"foo" take in the output.  On Windows targets this function has a
leading underscore and so the test fails.  This patch allows for that
underscore in the test.  Tested with cross to i686-mingw32.  OK to
commit?

2011-10-26  Joseph Myers  <jos...@codesourcery.com>

        * gcc.target/i386/pr37843-4.c: Allow for leading underscores on
        symbol names.

Index: gcc.target/i386/pr37843-4.c
===================================================================
--- gcc.target/i386/pr37843-4.c (revision 180200)
+++ gcc.target/i386/pr37843-4.c (working copy)
@@ -3,8 +3,8 @@
 /* { dg-options "-O2 -msse2 -mpreferred-stack-boundary=4 -mstackrealign" } */
 /* { dg-require-effective-target sse2 } */
 /* { dg-final { scan-assembler-not "andl\[\\t \]*\\$-16,\[\\t \]*%\[re\]?sp" } 
} */
-/* { dg-final { scan-assembler-not "call\[\\t \]*foo" } } */
-/* { dg-final { scan-assembler "jmp\[\\t \]*foo" } } */
+/* { dg-final { scan-assembler-not "call\[\\t \]*_?foo" } } */
+/* { dg-final { scan-assembler "jmp\[\\t \]*_?foo" } } */
 
 extern int foo (void);
 

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to