This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/62249] Spurious FORTIFY_SOURCE warning with -flto, poll
- From: "zackw at panix dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Oct 2014 13:07:06 +0000
- Subject: [Bug lto/62249] Spurious FORTIFY_SOURCE warning with -flto, poll
- Auto-submitted: auto-generated
- References: <bug-62249-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62249
--- Comment #4 from Zack Weinberg <zackw at panix dot com> ---
The "delta-minimized self-contained test case" should require only `-O2 -flto`
to reproduce the problem. The other test case, however, should require
`-D_FORTIFY_SOURCE=2` in addition, and to be compiled against recent glibc.
Note also that this does not happen with 4.8 or older.