[Bug c/61144] Invalid optimizations for extern vars with local weak definitions

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun May 11 03:20:00 GMT 2014


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
dummy is not weak or even extern.  foo is but it is an alias to dummy which
means it is also static rather than extern or weak.  if dummy was an alias to
foo which was weak and extern then GCC would not optimize the code.



More information about the Gcc-bugs mailing list