From: Chung-Ju Wu Date: Sun, 22 Apr 2018 07:57:06 +0000 (+0000) Subject: [NDS32] Consider -Ofast and -Og in nds32_asm_file_start function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10c8bd03e3642b870f5701c1c8ee6cbf00e595ce;p=gcc.git [NDS32] Consider -Ofast and -Og in nds32_asm_file_start function. gcc/ * config/nds32/nds32.c (nds32_asm_file_start): Display optimization level Ofast and Og. From-SVN: r259546 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 09597f4fbd9..b7cbf9692a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-04-22 Chung-Ju Wu + + * config/nds32/nds32.c (nds32_asm_file_start): Display optimization + level Ofast and Og. + 2018-04-22 Monk Chiang Chung-Ju Wu diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c index 1ce9e067865..ab544b46c17 100644 --- a/gcc/config/nds32/nds32.c +++ b/gcc/config/nds32/nds32.c @@ -2893,6 +2893,10 @@ nds32_asm_file_start (void) if (optimize_size) fprintf (asm_out_file, "\t! Optimization level\t: -Os\n"); + else if (optimize_fast) + fprintf (asm_out_file, "\t! Optimization level\t: -Ofast\n"); + else if (optimize_debug) + fprintf (asm_out_file, "\t! Optimization level\t: -Og\n"); else fprintf (asm_out_file, "\t! Optimization level\t: -O%d\n", optimize);