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

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

https://gcc.gnu.org/g:111754595cf8d3a8ae7063a42ac4cea18a304711

commit r12-7521-g111754595cf8d3a8ae7063a42ac4cea18a304711
Author: Martin Liska <mli...@suse.cz>
Date:   Fri Feb 4 15:50:17 2022 +0100

    opts: fix -gtoggle + optimize attribute

    Note -fvar-tracking is enabled automatically with OPT_LEVELS_1_PLUS and
    so we need to drop it if we are called from optimize attribute and the
    option is unset.

            PR middle-end/104381

    gcc/ChangeLog:

            * opts.cc (finish_options): If debug info is disabled
            (debug_info_level) and -fvar-tracking is unset, disable it.

    gcc/testsuite/ChangeLog:

            * gcc.dg/pr104381.c: New test.
  • [Bug middle-end/104381] [12 Reg... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to