[Bug driver/80545] option -Wstringop-overflow not recognized by Fortran

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 28 09:28:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80545

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-04-28
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I suggest to enable them only for C family languages (I notice the options
do not use EnabledBy()).

Supposedly the option machinery initializes warn_stringop_overflow to 2 even
when not in the set of options it is guarded with:

Wstringop-overflow=
C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_stringop_overflow)
Init(2) Warning
Under the control of Object Size type, warn about buffer overflow in string
manipulation functions like memcpy and strcpy.


More information about the Gcc-bugs mailing list