builtins.c (compute_objsize): Add an argument.
authorMartin Sebor <msebor@redhat.com>
Fri, 4 Oct 2019 21:26:27 +0000 (21:26 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 4 Oct 2019 21:26:27 +0000 (15:26 -0600)
commit28a5fa54aa47877b6d254430adbf3ca0377beeaa
treedd44779d5912a216f85020529e623bb2e8acf025
parent0e8879cb36eca17e7b1ff8f2124bbc5ec3c6dc91
builtins.c (compute_objsize): Add an argument.

gcc/ChangeLog:

* builtins.c (compute_objsize): Add an argument.
* tree-object-size.c (addr_object_size): Same.
(compute_builtin_object_size): Same.
* tree-object-size.h (compute_builtin_object): Same.

gcc/testsuite/ChangeLog:

* gcc.dg/Wstringop-overflow-17.c: New test.

From-SVN: r276602
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstringop-overflow-17.c [new file with mode: 0644]
gcc/tree-object-size.c
gcc/tree-object-size.h