http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48506

--- Comment #6 from Mike Stump <mikestump at comcast dot net> 2011-04-08 
22:41:16 UTC ---
How about something like the below.  I't leaves the scan alone (nice property),
ensures there is a memory access and will work on common and no-common ports
equally well.

Ok?

Index: gcc.dg/tree-ssa/ssa-ccp-17.c
===================================================================
--- gcc.dg/tree-ssa/ssa-ccp-17.c    (revision 1272)
+++ 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)
 {

Reply via email to