diff options
author | Martin Sebor <msebor@redhat.com> | 2019-10-04 21:26:27 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2019-10-04 15:26:27 -0600 |
commit | 28a5fa54aa47877b6d254430adbf3ca0377beeaa (patch) | |
tree | dd44779d5912a216f85020529e623bb2e8acf025 /gcc/tree-object-size.h | |
parent | 0e8879cb36eca17e7b1ff8f2124bbc5ec3c6dc91 (diff) | |
download | gcc-28a5fa54aa47877b6d254430adbf3ca0377beeaa.zip gcc-28a5fa54aa47877b6d254430adbf3ca0377beeaa.tar.gz gcc-28a5fa54aa47877b6d254430adbf3ca0377beeaa.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-object-size.h')
-rw-r--r-- | gcc/tree-object-size.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-object-size.h b/gcc/tree-object-size.h index 420af3e..65528b3 100644 --- a/gcc/tree-object-size.h +++ b/gcc/tree-object-size.h @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see extern void init_object_sizes (void); extern void fini_object_sizes (void); -extern bool compute_builtin_object_size (tree, int, unsigned HOST_WIDE_INT *); +extern bool compute_builtin_object_size (tree, int, unsigned HOST_WIDE_INT *, + tree * = NULL); #endif // GCC_TREE_OBJECT_SIZE_H |