Commit 68acadb1 by Chung-Ju Wu Committed by Chung-Ju Wu

[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
parent 8532a010
2018-08-12 Chung-Ju Wu <jasonwucj@gmail.com> 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 * config.gcc (nds32*): Add nds32_isr.h and nds32_init.inc in
extra_headers. extra_headers.
* common/config/nds32/nds32-common.c (nds32_handle_option): Handle * common/config/nds32/nds32-common.c (nds32_handle_option): Handle
......
...@@ -95,6 +95,8 @@ static const struct default_options nds32_option_optimization_table[] = ...@@ -95,6 +95,8 @@ static const struct default_options nds32_option_optimization_table[] =
{ OPT_LEVELS_ALL, OPT_fomit_frame_pointer, NULL, 1 }, { OPT_LEVELS_ALL, OPT_fomit_frame_pointer, NULL, 1 },
/* Enable -mrelax-hint by default at all optimization levels. */ /* Enable -mrelax-hint by default at all optimization levels. */
{ OPT_LEVELS_ALL, OPT_mrelax_hint, NULL, 1 }, { 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. */ /* 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 },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment