[NDS32] Enable -malways-align by default at -O1 and above.

gcc/
	* common/config/nds32/nds32-common.c
	(nds32_option_optimization_table): Enalbe -malways-align.

From-SVN: r263495
This commit is contained in:
Chung-Ju Wu 2018-08-12 13:26:05 +00:00 committed by Chung-Ju Wu
parent 8532a010b6
commit 68acadb1ff
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2018-08-12 Chung-Ju Wu <jasonwucj@gmail.com>
* common/config/nds32/nds32-common.c
(nds32_option_optimization_table): Enalbe -malways-align.
2018-08-12 Chung-Ju Wu <jasonwucj@gmail.com>
* config.gcc (nds32*): Add nds32_isr.h and nds32_init.inc in

View file

@ -95,6 +95,8 @@ static const struct default_options nds32_option_optimization_table[] =
{ 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 },
/* Enalbe -malways-align by default at -O1 and above, but not -Os or -Og. */
{ OPT_LEVELS_1_PLUS_SPEED_ONLY, OPT_malways_align, NULL, 1 },
/* Enable -mv3push by default at -Os, but it is useless under V2 ISA. */
{ OPT_LEVELS_SIZE, OPT_mv3push, NULL, 1 },