+2019-11-19 Martin Liska <mliska@suse.cz>
+
+ * toplev.c (general_init): Move the call...
+ (toplev::main): ... here as we need init_options_struct
+ being called.
+
2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
* config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
/* Initialize register usage now so switches may override. */
init_reg_sets ();
- /* This must be done after global_init_params but before argument
- processing. */
- init_ggc_heuristics ();
-
/* Create the singleton holder for global state. This creates the
dump manager. */
g = new gcc::context ();
init_options_struct (&global_options, &global_options_set);
lang_hooks.init_options_struct (&global_options);
+ /* Init GGC heuristics must be caller after we initialize
+ options. */
+ init_ggc_heuristics ();
+
/* Convert the options to an array. */
decode_cmdline_options_to_array_default_mask (argc,
CONST_CAST2 (const char **,