[Bug tree-optimization/80535] missing -Wformat-overfow on POSIX directives with the apostrophe flag
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 29 16:47:00 GMT 2017
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.
More information about the Gcc-bugs
mailing list