diff options
author | Martin Sebor <msebor@redhat.com> | 2019-12-11 19:50:43 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2019-12-11 12:50:43 -0700 |
commit | f7d86b5ca830ca95899ec5e1585359f9baf19238 (patch) | |
tree | 2ccb64ec581e259d048fcc8de48cee51fbf37494 /gcc/fortran/trans-openmp.c | |
parent | c7f5b4eddd8b11383074876e45863ae6b92a1357 (diff) | |
download | gcc-f7d86b5ca830ca95899ec5e1585359f9baf19238.zip gcc-f7d86b5ca830ca95899ec5e1585359f9baf19238.tar.gz gcc-f7d86b5ca830ca95899ec5e1585359f9baf19238.tar.bz2 |
builtins.c (compute_objsize): Add an argument and set it to offset into destination.
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.
From-SVN: r279248
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
0 files changed, 0 insertions, 0 deletions