[Bug testsuite/48506] ssa-ccp-17.c = g.i fails
mikestump at comcast dot net
gcc-bugzilla@gcc.gnu.org
Fri Apr 8 22:41:00 GMT 2011
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)
{
More information about the Gcc-bugs
mailing list