This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/82103] spurious stringop-overflow warning
- From: "law at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 05 Dec 2017 00:38:15 +0000
- Subject: [Bug tree-optimization/82103] spurious stringop-overflow warning
- Auto-submitted: auto-generated
- References: <bug-82103-4@http.gcc.gnu.org/bugzilla/>
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.