From: Richard Sandiford Date: Sat, 11 Nov 2023 17:28:55 +0000 (+0000) Subject: mode-switching: Add note problem X-Git-Tag: basepoints/gcc-15~4784 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cd3a09b3f91a1d023cb180763d40598d6bb274b;p=thirdparty%2Fgcc.git mode-switching: Add note problem optimize_mode_switching uses REG_DEAD notes to track register liveness, but it failed to tell DF to calculate up-to-date notes. Noticed by inspection. I don't have a testcase that fails because of this. gcc/ * mode-switching.cc (optimize_mode_switching): Call df_note_add_problem. --- diff --git a/gcc/mode-switching.cc b/gcc/mode-switching.cc index c3e4d24de9b8..8577069bde1a 100644 --- a/gcc/mode-switching.cc +++ b/gcc/mode-switching.cc @@ -541,6 +541,7 @@ optimize_mode_switching (void) pre_exit = create_pre_exit (n_entities, entity_map, num_modes); } + df_note_add_problem (); df_analyze (); /* Create the bitmap vectors. */