https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102585
--- Comment #4 from CVS Commits ---
The master branch has been updated by Martin Liska :
https://gcc.gnu.org/g:b4702276615ff8d43bc910e7a54fdd850ad8d461
commit r12-4608-gb4702276615ff8d43bc910e7a54fdd850ad8d461
Author: Martin Liska
Date: Thu Oct 14 14:57:18 2021 +0200
options: Fix variable tracking option processing.
PR debug/102585
PR bootstrap/102766
gcc/ChangeLog:
* opts.c (finish_options): Process flag_var_tracking* options
here as they can be adjusted by optimize attribute.
Process also flag_syntax_only and flag_gtoggle.
* toplev.c (process_options): Remove it here.
* common.opt: Make debug_nonbind_markers_p as PerFunction
attribute as it depends on optimization level.
gcc/testsuite/ChangeLog:
* gcc.dg/pr102585.c: New test.