[NDS32] Adjust ASM spec.
authorChung-Ju Wu <jasonwucj@gmail.com>
Sat, 19 May 2018 15:16:53 +0000 (15:16 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Sat, 19 May 2018 15:16:53 +0000 (15:16 +0000)
gcc/
* config/nds32/nds32.h (ASM_SPEC): Adjust spec rule.

From-SVN: r260401

gcc/ChangeLog
gcc/config/nds32/nds32.h

index 97aa4e782f2d659beb9dd2309370cb2cc6256690..0bd395de45be8391ee3fd99ef735acb22469c2e8 100644 (file)
@@ -1,3 +1,7 @@
+2018-05-19  Chung-Ju Wu  <jasonwucj@gmail.com>
+
+       * config/nds32/nds32.h (ASM_SPEC): Adjust spec rule.
+
 2018-05-19  Chung-Ju Wu  <jasonwucj@gmail.com>
 
        * config/nds32/nds32.c
index 90b52d1a286535ce863434245f6fae4a2f88345e..9ba5e179dbfa68b25949ffc396244ddf8791691d 100644 (file)
@@ -933,6 +933,10 @@ enum nds32_builtins
 #define ASM_SPEC \
   " %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
   " %{march=*:-march=%*}" \
+  " %{mno-16-bit|mno-16bit:-mno-16bit-ext}" \
+  " %{march=v3m:%{!mfull-regs:%{!mreduced-regs:-mreduced-regs}}}" \
+  " %{mfull-regs:-mno-reduced-regs}" \
+  " %{mreduced-regs:-mreduced-regs}" \
   " %{mabi=*:-mabi=v%*}" \
   " %{mconfig-fpu=*:-mfpu-freg=%*}" \
   " %{mext-fpu-mac:-mmac}" \
@@ -941,7 +945,8 @@ enum nds32_builtins
   " %{mno-ext-fpu-sp:-mno-fpu-sp-ext}" \
   " %{mext-fpu-dp:-mfpu-dp-ext}" \
   " %{mno-ext-fpu-sp:-mno-fpu-dp-ext}" \
-  " %{mext-dsp:-mdsp-ext}"
+  " %{mext-dsp:-mdsp-ext}" \
+  " %{O|O1|O2|O3|Ofast:-O1;:-Os}"
 
 /* If user issues -mrelax, we need to pass '--relax' to linker.  */
 #define LINK_SPEC \