[Bug tree-optimization/59377] VRP produces bogus warning with -Warray-bounds

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 3 18:25:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59377

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> I think this is an invalid testcase.  GCC does not know what this
> strlen/memcmp does.  If we add extern "C" around strlen and memcmp, GCC does
> not warn.

Does not warn as GCC is able to optimize away the strlen (and even the memcmp
too).



More information about the Gcc-bugs mailing list