diff options
Diffstat (limited to 'contrib/gcc/toplev.c')
-rw-r--r-- | contrib/gcc/toplev.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/gcc/toplev.c b/contrib/gcc/toplev.c index 786ec12..6944eae 100644 --- a/contrib/gcc/toplev.c +++ b/contrib/gcc/toplev.c @@ -1566,8 +1566,19 @@ general_init (const char *argv0) /* Register the language-independent parameters. */ add_params (lang_independent_params, LAST_PARAM); - /* This must be done after add_params but before argument processing. */ - init_ggc_heuristics(); + /* APPLE LOCAL begin retune gc params 6124839 */ + { int i = 0; + bool opt = false; + while (save_argv[++i]) + { + if (strncmp (save_argv[i], "-O", 2) == 0 + && strcmp (save_argv[i], "-O0") != 0) + opt = true; + } + /* This must be done after add_params but before argument processing. */ + init_ggc_heuristics(opt); + } + /* APPLE LOCAL end retune gc params 6124839 */ init_optimization_passes (); } |