https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98664

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>:

https://gcc.gnu.org/g:9693e255ee2536c6823640eba5d0163c2b401161

commit r11-6801-g9693e255ee2536c6823640eba5d0163c2b401161
Author: Martin Sebor <mse...@redhat.com>
Date:   Tue Jan 19 15:10:30 2021 -0700

    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.
  • [Bug middle-end/98664] inconsis... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to