diff options
author | Martin Sebor <msebor@redhat.com> | 2021-01-19 15:10:30 -0700 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-01-19 15:10:30 -0700 |
commit | 9693e255ee2536c6823640eba5d0163c2b401161 (patch) | |
tree | 5f5735deb16a463d71fd69e8fcffe5b131aec478 /zlib/Makefile.am | |
parent | 29853c653245c37ed31b6abcc9799b534372e938 (diff) | |
download | gcc-9693e255ee2536c6823640eba5d0163c2b401161.zip gcc-9693e255ee2536c6823640eba5d0163c2b401161.tar.gz gcc-9693e255ee2536c6823640eba5d0163c2b401161.tar.bz2 |
PR middle-end/98664 - inconsistent -Wfree-nonheap-object for inlined calls to system headers
gcc/ChangeLog:
PR middle-end/98664
* tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
all functions, even if they're not declared artificial or inline.
* tree.c (tree_inlined_location): Use macro expansion location
only if scope traversal fails to expose one.
gcc/testsuite/ChangeLog:
PR middle-end/98664
* gcc.dg/Wvla-larger-than-4.c: Adjust expected output.
* gcc.dg/plugin/diagnostic-test-inlining-3.c: Same.
* g++.dg/warn/Wfree-nonheap-object-5.C: New test.
* gcc.dg/Wfree-nonheap-object-4.c: New test.
Diffstat (limited to 'zlib/Makefile.am')
0 files changed, 0 insertions, 0 deletions