https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105537
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:a53eff4ad05f234a509dd2995d5a7612d5baa4e8 commit r12-8398-ga53eff4ad05f234a509dd2995d5a7612d5baa4e8 Author: Richard Biener <rguent...@suse.de> Date: Tue May 10 11:44:40 2022 +0200 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 <rguent...@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)