tree-object-size.c (pass_through_call): Use gimple_call_return_flags ERF_RETURN*ARG...
authorJakub Jelinek <jakub@redhat.com>
Fri, 24 Nov 2017 08:34:13 +0000 (09:34 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 24 Nov 2017 08:34:13 +0000 (09:34 +0100)
commit51feb980c997f8046fa1a679a27828bcca2d3754
tree859451408331735c0092b2e45e4f12b829b4cfc4
parent489154e71b1b64e05f4b002289480a20976d2588
tree-object-size.c (pass_through_call): Use gimple_call_return_flags ERF_RETURN*ARG* for builtins other than...

* tree-object-size.c (pass_through_call): Use gimple_call_return_flags
ERF_RETURN*ARG* for builtins other than BUILT_IN_ASSUME_ALIGNED,
check for the latter with gimple_call_builtin_p.  Do not handle
BUILT_IN_STPNCPY_CHK which is not a pass through call.

* gcc.dg/builtin-object-size-18.c: New test.

From-SVN: r255133
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtin-object-size-18.c [new file with mode: 0644]
gcc/tree-object-size.c