This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/80535] missing -Wformat-overfow on POSIX directives with the apostrophe flag
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Aug 2017 15:35:35 +0000
- Subject: [Bug tree-optimization/80535] missing -Wformat-overfow on POSIX directives with the apostrophe flag
- Auto-submitted: auto-generated
- References: <bug-80535-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80535
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-08-29
CC| |egallager at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed. Note that GCC is available for non-POSIX platforms though. There
should really be some sort of -posix-std=yyyy flag to mirror the -std=cyy flag,
i.e., to tell GCC which version of the POSIX standard to conform to, as opposed
to which version of the C standard. Maybe also recognize the POSIXLY_CORRECT
environment variable that other GNU programs use? Still, when GCC does conform
to POSIX, I agree that it should warn here.