https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66119
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed by
Index: toplev.c
===================================================================
--- toplev.c (revision 223044)
+++ toplev.c (working copy)
@@ -1311,6 +1311,9 @@ process_options (void)
so we can correctly initialize debug output. */
no_backend = lang_hooks.post_options (&main_input_filename);
+ /* Some machines may reject certain combinations of options. */
+ targetm.target_option.override ();
+
/* Set default values for parameters relation to the Scalar Reduction
of Aggregates passes (SRA and IP-SRA). We must do this here, rather
than in opts.c:default_options_optimization as historically these
@@ -1325,9 +1328,6 @@ process_options (void)
get_move_ratio (false) * UNITS_PER_WORD,
global_options.x_param_values, global_options_set.x_param_values);
- /* Some machines may reject certain combinations of options. */
- targetm.target_option.override ();
-
/* Avoid any informative notes in the second run of -fcompare-debug. */
if (flag_compare_debug)
diagnostic_inhibit_notes (global_dc);
though not sure whether a 2nd maybe_set_param_value will still allow the
target to adjust this default...