http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54054
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-07-20
16:46:10 UTC ---
This will not work in the general sense. As different TU can have different
static function (and anonymous namespace functionality). Use LTO (-flto)
instead which is designed to take care of these issues.