diff options
author | Martin Liska <mliska@suse.cz> | 2019-11-19 16:07:26 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-11-19 15:07:26 +0000 |
commit | 8b24d594fe111f96578eaaa8ecb14891ffeebdd3 (patch) | |
tree | 3a5f506609884540543abf5dc4adcec387ad7d30 | |
parent | 24851701582dd5d3cfb39d946c949289756b7553 (diff) | |
download | gcc-8b24d594fe111f96578eaaa8ecb14891ffeebdd3.zip gcc-8b24d594fe111f96578eaaa8ecb14891ffeebdd3.tar.gz gcc-8b24d594fe111f96578eaaa8ecb14891ffeebdd3.tar.bz2 |
Restore init_ggc_heuristics.
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.
From-SVN: r278448
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/toplev.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db83c91..7dc1d93 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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. diff --git a/gcc/toplev.c b/gcc/toplev.c index d4583ba..cfc757d 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1240,10 +1240,6 @@ general_init (const char *argv0, bool init_signals) /* 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 (); @@ -2377,6 +2373,10 @@ toplev::main (int argc, char **argv) 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 **, |