diff options
author | Martin Liska <mliska@suse.cz> | 2022-02-04 15:50:17 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-03-07 15:45:21 +0100 |
commit | 111754595cf8d3a8ae7063a42ac4cea18a304711 (patch) | |
tree | f914e60d7576cd84a17fc86d8652671a19d9f01c /gcc/fortran/dump-parse-tree.cc | |
parent | 02b7dd7f8233eb83f660cc021857be36cab2b846 (diff) | |
download | gcc-111754595cf8d3a8ae7063a42ac4cea18a304711.zip gcc-111754595cf8d3a8ae7063a42ac4cea18a304711.tar.gz gcc-111754595cf8d3a8ae7063a42ac4cea18a304711.tar.bz2 |
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.
Diffstat (limited to 'gcc/fortran/dump-parse-tree.cc')
0 files changed, 0 insertions, 0 deletions