r279248 - in /trunk/gcc: ChangeLog builtins.c t...
msebor@gcc.gnu.org
msebor@gcc.gnu.org
Wed Dec 11 19:50:00 GMT 2019
Author: msebor
Date: Wed Dec 11 19:50:43 2019
New Revision: 279248
URL: https://gcc.gnu.org/viewcvs?rev=279248&root=gcc&view=rev
Log:
gcc/ChangeLog:
* builtins.c (compute_objsize): Add an argument and set it to offset
into destination.
* builtins.h (compute_objsize): Add an argument.
* tree-object-size.c (addr_object_size): Add an argument and set it
to offset into destination.
(compute_builtin_object_size): Same.
* tree-object-size.h (compute_builtin_object_size): Add an argument.
* tree-ssa-strlen.c (get_addr_stridx): Add an argument and set it
to offset into destination.
(maybe_warn_overflow): New function.
(handle_store): Call maybe_warn_overflow to issue warnings.
gcc/testsuite/ChangeLog:
* c-c++-common/Wstringop-overflow-2.c: Adjust text of expected messages.
* g++.dg/warn/Wstringop-overflow-3.C: Same.
* gcc.dg/Wstringop-overflow-17.c: Same.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/builtins.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/c-c++-common/Wstringop-overflow-2.c
trunk/gcc/testsuite/g++.dg/warn/Wstringop-overflow-3.C
trunk/gcc/testsuite/gcc.dg/Wstringop-overflow-17.c
trunk/gcc/tree-object-size.c
trunk/gcc/tree-object-size.h
trunk/gcc/tree-ssa-strlen.c
More information about the Gcc-cvs
mailing list