Patchwork fix testsuite/48506

login
register
mail settings
Submitter Mike Stump
Date April 9, 2011, midnight
Message ID <4AD5EDE8-FA87-4DB7-86CE-A3387389ED8D@comcast.net>
Download mbox | patch
Permalink /patch/90443/
State New
Headers show

Comments

Mike Stump - April 9, 2011, midnight
I've checked in this to avoid problems with ports that default to -fno-common.  I've also checked it into 4.6.x.
PR testsuite/48506
	* gcc.dg/tree-ssa/ssa-ccp-17.c: Robustify against ports that
	default to fno-common.

Patch

Index: gcc.dg/tree-ssa/ssa-ccp-17.c
===================================================================
--- gcc.dg/tree-ssa/ssa-ccp-17.c	(revision 172125)
+++ gcc.dg/tree-ssa/ssa-ccp-17.c	(working copy)
@@ -18,7 +18,7 @@ 
   return ((struct Foo *)p)->i;
 }
 
-const struct Foo g;
+extern const struct Foo g;
 
 int foobar(void)
 {