https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127688
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Selective scheduling is known to break compare-debug, after all,
-fvar-tracking-assignments is turned off by default in that case:
if (!opts_set->x_flag_var_tracking_assignments)
opts->x_flag_var_tracking_assignments
= (opts->x_flag_var_tracking
&& !(opts->x_flag_selective_scheduling
|| opts->x_flag_selective_scheduling2));
and the compiler should warn you that it doesn't support that
&& (opts->x_flag_selective_scheduling
|| opts->x_flag_selective_scheduling2))
warning_at (loc, 0,
"var-tracking-assignments changes selective scheduling");