From patchwork Sat Apr 9 00:00:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: fix testsuite/48506 Date: Fri, 08 Apr 2011 14:00:53 -0000 From: Mike Stump X-Patchwork-Id: 90443 Message-Id: <4AD5EDE8-FA87-4DB7-86CE-A3387389ED8D@comcast.net> To: gcc-patches Patches 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. 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) {