http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011-10-04 Ever Confirmed|0 |1 --- Comment #14 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-04 09:26:57 UTC --- I think that if the user may override certain builtin functions the frontend should be responsible to inherit the proper visibility of those replacements so it works even with -fwhole-program (or -flto). Confirmed as a C++ frontend issue. To the middle-end those functions are not in any way special.