From: Chung-Ju Wu Date: Sat, 16 Sep 2017 16:23:23 +0000 (+0000) Subject: Use -fsched-pressure and -fomit-frame-pointer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=003a994bcad52d4c4e510c12abb74f78bc981b99;p=gcc.git Use -fsched-pressure and -fomit-frame-pointer in nds32_option_optimization_table. gcc/ * common/config/nds32/nds32-common.c (nds32_option_optimization_table): Refine formatting. (nds32_option_optimization_table): Use -fsched-pressure and -fomit-frame-pointer for specific optimization level. From-SVN: r252876 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 173ed96dbc3..b5a39b9b0d2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-09-16 Chung-Ju Wu + + * common/config/nds32/nds32-common.c + (nds32_option_optimization_table): Refine formatting. + (nds32_option_optimization_table): Use -fsched-pressure and + -fomit-frame-pointer for specific optimization level. + 2017-09-16 Chung-Ju Wu * config/nds32/nds32.c: Refine formatting and comments. diff --git a/gcc/common/config/nds32/nds32-common.c b/gcc/common/config/nds32/nds32-common.c index 854a840614f..13cada68ea5 100644 --- a/gcc/common/config/nds32/nds32-common.c +++ b/gcc/common/config/nds32/nds32-common.c @@ -74,12 +74,14 @@ nds32_handle_option (struct gcc_options *opts ATTRIBUTE_UNUSED, /* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */ static const struct default_options nds32_option_optimization_table[] = { - /* Enable -fomit-frame-pointer by default at -O1 or higher. */ - { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, + /* Enable -fsched-pressure by default at -O1 and above. */ + { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 }, + /* Enable -fomit-frame-pointer by default at all optimization levels. */ + { OPT_LEVELS_ALL, OPT_fomit_frame_pointer, NULL, 1 }, /* Enable -mv3push by default at -Os, but it is useless under V2 ISA. */ - { OPT_LEVELS_SIZE, OPT_mv3push, NULL, 1 }, + { OPT_LEVELS_SIZE, OPT_mv3push, NULL, 1 }, - { OPT_LEVELS_NONE, 0, NULL, 0 } + { OPT_LEVELS_NONE, 0, NULL, 0 } }; /* ------------------------------------------------------------------------ */