[Bug tree-optimization/80535] missing -Wformat-overfow on POSIX directives with the apostrophe flag

2019-08-04 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80535

Eric Gallager  changed:

   What|Removed |Added

 CC||dmalcolm at gcc dot gnu.org,
   ||dodji at gcc dot gnu.org

--- Comment #2 from Eric Gallager  ---
cc-ing diagnostics maintainers

[Bug tree-optimization/80535] missing -Wformat-overfow on POSIX directives with the apostrophe flag

2017-08-29 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80535

Eric Gallager  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  ---
Confirmed. Note that GCC is available for non-POSIX platforms though. There
should really be some sort of -posix-std= 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.