diff options
author | Martin Sebor <msebor@redhat.com> | 2018-12-14 22:45:55 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-12-14 15:45:55 -0700 |
commit | 302db8ba6180906dd9a8c4ce670aff804f921fab (patch) | |
tree | 257c476ecc81a6f345864f453f153057cf7f98de /gcc/ipa-utils.c | |
parent | 3e6837c2a56f47c6b3156bbc12a9e89611412f83 (diff) | |
download | gcc-302db8ba6180906dd9a8c4ce670aff804f921fab.zip gcc-302db8ba6180906dd9a8c4ce670aff804f921fab.tar.gz gcc-302db8ba6180906dd9a8c4ce670aff804f921fab.tar.bz2 |
PR tree-optimization/88372 - alloc_size attribute is ignored on function pointers
gcc/ChangeLog:
PR tree-optimization/88372
* calls.c (maybe_warn_alloc_args_overflow): Handle function pointers.
* tree-object-size.c (alloc_object_size): Same. Simplify.
* doc/extend.texi (Object Size Checking): Update.
(Other Builtins): Add __builtin_object_size.
(Common Type Attributes): Add alloc_size.
(Common Variable Attributes): Ditto.
gcc/testsuite/ChangeLog:
PR tree-optimization/88372
* gcc.dg/Walloc-size-larger-than-18.c: New test.
* gcc.dg/builtin-object-size-19.c: Same.
From-SVN: r267158
Diffstat (limited to 'gcc/ipa-utils.c')
0 files changed, 0 insertions, 0 deletions