From 58e297628fe95a905d73878915df4e004612369d Mon Sep 17 00:00:00 2001 From: Kuan-Lin Chen Date: Fri, 6 Apr 2018 03:17:41 +0000 Subject: [PATCH] [NDS32] Enable relax hint by default. gcc/ * common/config/nds32/nds32-common.c (nds32_option_optimization_table): Enable -mreleax-hint by default. From-SVN: r259160 --- gcc/ChangeLog | 7 ++++++- gcc/common/config/nds32/nds32-common.c | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c9c538b716b..5c49936fb19 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-04-06 Kuan-Lin Chen + + * common/config/nds32/nds32-common.c + (nds32_option_optimization_table): Enable -mreleax-hint by default. + 2018-04-05 Jakub Jelinek PR middle-end/85195 @@ -262,7 +267,7 @@ 2018-04-01 Chung-Ju Wu Kito Cheng - Kuan-Lin Chen + Kuan-Lin Chen * config.gcc (nds32): Add nds32-relax-opt.o into extra_objs. * config/nds32/constants.md (unspec_volatile_element): Add diff --git a/gcc/common/config/nds32/nds32-common.c b/gcc/common/config/nds32/nds32-common.c index 660b1abff0b..8d3c9b2ea96 100644 --- a/gcc/common/config/nds32/nds32-common.c +++ b/gcc/common/config/nds32/nds32-common.c @@ -78,6 +78,8 @@ static const struct default_options nds32_option_optimization_table[] = { 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 -mrelax-hint by default at all optimization levels. */ + { OPT_LEVELS_ALL, OPT_mrelax_hint, NULL, 1 }, /* Enable -mv3push by default at -Os, but it is useless under V2 ISA. */ { OPT_LEVELS_SIZE, OPT_mv3push, NULL, 1 }, -- 2.30.2