This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/52399] With `-flto', `-Wno-clobbered' does not suppress the "might be clobbered" warning
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Feb 2012 11:16:47 +0000
- Subject: [Bug lto/52399] With `-flto', `-Wno-clobbered' does not suppress the "might be clobbered" warning
- Auto-submitted: auto-generated
- References: <bug-52399-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52399
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-02-27
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-27 11:16:47 UTC ---
Confirmed. This is because Wclobbered is a C family option but the warning
is generated by middle-end code. lto1 would simply ignore -Wno-clobbered.
-Wall is also a C family option and so ignored by lto1 btw. -Wall would need
to be split up in parts for lto option processing.