This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/59472] Many warnings "type of 'X' does not match original declaration" when linking with libstdc++ static library compiled with -flto
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Jan 2014 21:36:42 +0000
- Subject: [Bug libstdc++/59472] Many warnings "type of 'X' does not match original declaration" when linking with libstdc++ static library compiled with -flto
- Auto-submitted: auto-generated
- References: <bug-59472-4 at http dot gcc dot gnu dot org/bugzilla/>
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.