[NDS32] Consider -Ofast and -Og in nds32_asm_file_start function.
authorChung-Ju Wu <jasonwucj@gmail.com>
Sun, 22 Apr 2018 07:57:06 +0000 (07:57 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Sun, 22 Apr 2018 07:57:06 +0000 (07:57 +0000)
gcc/
* config/nds32/nds32.c (nds32_asm_file_start): Display optimization
level Ofast and Og.

From-SVN: r259546

gcc/ChangeLog
gcc/config/nds32/nds32.c

index 09597f4fbd9ce56b3a39ee74f3782545a55f0846..b7cbf9692a2bf60d1c976a337201b41795f0ec73 100644 (file)
@@ -1,3 +1,8 @@
+2018-04-22  Chung-Ju Wu  <jasonwucj@gmail.com>
+
+       * config/nds32/nds32.c (nds32_asm_file_start): Display optimization
+       level Ofast and Og.
+
 2018-04-22  Monk Chiang  <sh.chiang04@gmail.com>
            Chung-Ju Wu  <jasonwucj@gmail.com>
 
index 1ce9e06786591521656751f3a944c3025c08b1de..ab544b46c1746eac4845516e2e19faafb05d855f 100644 (file)
@@ -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);