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>
Thu, 19 May 2022 11:58:31 +0000 (13:58 +0200)
commita53eff4ad05f234a509dd2995d5a7612d5baa4e8
tree32a6f66e330e8945711f2b09ac9979ec35142e0a
parentad4fa189a7b6cbe183a4b1a99ca67888e68d7532
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.

(cherry picked from commit 76db543db88727789a6c117608a23edc2eace713)
gcc/opts.cc
gcc/testsuite/gcc.dg/torture/pr105537.c [new file with mode: 0644]
gcc/toplev.cc