[Bug c/61144] Invalid optimizations for extern vars with local weak definitions
bugdal at aerifal dot cx
gcc-bugzilla@gcc.gnu.org
Sun May 11 20:05:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61144
--- Comment #6 from Rich Felker <bugdal at aerifal dot cx> ---
The alias is global and it can be overridden (in the case of the test case, by
any external object named "foo" in any other translation unit). The static in
the definition of dummy does NOT apply to the alias foo, and never has. This is
easy to verify, and it's frustrating that you're attacking this bug report
which is clearly a regression from a standpoint of not understanding the
semantics of the alias attribute.
More information about the Gcc-bugs
mailing list