]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end/105537 - debug processing
authorRichard Biener <rguenther@suse.de>
Tue, 10 May 2022 09:44:40 +0000 (11:44 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 10 May 2022 11:03:57 +0000 (13:03 +0200)
commit76db543db88727789a6c117608a23edc2eace713
treeb6277c024f84b898dd2bb08d67a6a560396c3ee6
parent1bac97ad0436afcbce24c82e6d57f11471cd8f10
middle-end/105537 - debug processing

The following makes sure to have a consistent state of
flag_var_tracking_assignments with the distributed handling
in process_options and finish_options by moving everything to
finish_options which also restores diagnostics for
-g0 -fvar-tracking which was lost with previous changes.

2022-05-10  Richard Biener  <rguenther@suse.de>

PR middle-end/105537
* toplev.cc (process_options): Move flag_var_tracking
handling ...
* opts.cc (finish_options): ... here.

* gcc.dg/torture/pr105537.c: New testcase.
gcc/opts.cc
gcc/testsuite/gcc.dg/torture/pr105537.c [new file with mode: 0644]
gcc/toplev.cc