diff mbox

Fix gcc.target/i386/pr37843-4.c for targets using leading underscores

Message ID Pine.LNX.4.64.1110262118140.25943@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers Oct. 26, 2011, 9:18 p.m. UTC
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  <joseph@codesourcery.com>

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

Comments

Mike Stump Oct. 26, 2011, 9:27 p.m. UTC | #1
On Oct 26, 2011, at 2:18 PM, Joseph S. Myers wrote:
> 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.

> OK to commit?

Ok.
diff mbox

Patch

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);