This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/82103] spurious stringop-overflow warning


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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |INVALID

--- Comment #4 from Jeffrey A. Law <law at redhat dot com> ---
IMHO the warning is correct here.  The code clearly does very bad things when
frame is zero.  In that case we pass -1 to the memset #define.  Which
ultimately results in the insane memset arguments.

This is *precisely* the kinds of things we want to be warning about.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]