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/builtins.c | |
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/builtins.c')
-rw-r--r-- | gcc/builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index fa17afd..a1dc83c 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -3587,7 +3587,7 @@ compute_objsize (tree dest, int ostype, tree *pdecl /* = NULL */) /* Only the two least significant bits are meaningful. */ ostype &= 3; - if (compute_builtin_object_size (dest, ostype, &size)) + if (compute_builtin_object_size (dest, ostype, &size, pdecl)) return build_int_cst (sizetype, size); if (TREE_CODE (dest) == SSA_NAME) |