[Bug tree-optimization/47193] [4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:857 with static var weakref'd to other weakref'd static var

hubicka at ucw dot cz gcc-bugzilla@gcc.gnu.org
Thu Jan 6 19:00:00 GMT 2011


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

--- Comment #4 from Jan Hubicka <hubicka at ucw dot cz> 2011-01-06 18:52:28 UTC ---
> typedef int vtype;
> static vtype Wv10a __attribute__((weakref ("Wv10b")));
> static vtype Wv10b __attribute__((weakref ("Wv10c")));
> static vtype Wv10c __attribute__((weakref ("Wv10d")));
> static vtype Wv10d __attribute__((weakref ("wv10")));
> extern vtype wv10;
> -----------------------
> 
> Is this also invalid? It fails the same way:
No idea,  I think the aliased symbol should always be external one, but the
sanity check
might be overactive here (the weakref code seems to be skipping transparent
aliases,
so it should be equivalent of aliasing Wv10 in all cases).

Honza



More information about the Gcc-bugs mailing list