[Bug libstdc++/59472] Many warnings "type of 'X' does not match original declaration" when linking with libstdc++ static library compiled with -flto
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 22 21:36:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59472
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-01-22
Component|lto |libstdc++
Ever confirmed|0 |1
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Same here (CXXFLAGS_FOR_TARGET="-O2 -g -flto -ffat-lto-objects" after a trivial
fix for PR 43538):
/data/repos/gcc/trunk/libstdc++-v3/src/c++98/ios_init.cc:56:33: warning: type
of 'buf_wcerr' does not match original declaration [enabled by default]
extern stdio_filebuf<wchar_t> buf_wcerr;
^
/data/repos/gcc/trunk/libstdc++-v3/src/c++98/globals_io.cc:105:17: note:
previously declared here
fake_wfilebuf buf_wcerr;
^
etc.
Reassigning to libstdc++ because the warnings seem to say the truth.
More information about the Gcc-bugs
mailing list