This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/52399] New: With `-flto', `-Wno-clobbered' does not suppress the "might be clobbered" warning
- From: "d.g.gorbachev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Feb 2012 10:06:26 +0000
- Subject: [Bug lto/52399] New: With `-flto', `-Wno-clobbered' does not suppress the "might be clobbered" warning
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52399
Bug #: 52399
Summary: With `-flto', `-Wno-clobbered' does not suppress the
"might be clobbered" warning
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: d.g.gorbachev@gmail.com
Created attachment 26761
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26761
Invalid code
$ gcc -flto -O -Wall -Wno-clobbered pr52399.c
In file included from pr52399.c:3:0,
from :6:
pr52399.c: In function 'main':
pr52399.c:8:7: warning: variable 'i' might be clobbered by 'longjmp' or 'vfork'
[-Wclobbered]