From 8aa27a4c355b526f1ae444d8349598821e4faf08 Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Sat, 19 May 2018 15:16:53 +0000 Subject: [PATCH] [NDS32] Adjust ASM spec. gcc/ * config/nds32/nds32.h (ASM_SPEC): Adjust spec rule. From-SVN: r260401 --- gcc/ChangeLog | 4 ++++ gcc/config/nds32/nds32.h | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 97aa4e782f2..0bd395de45b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-05-19 Chung-Ju Wu + + * config/nds32/nds32.h (ASM_SPEC): Adjust spec rule. + 2018-05-19 Chung-Ju Wu * config/nds32/nds32.c diff --git a/gcc/config/nds32/nds32.h b/gcc/config/nds32/nds32.h index 90b52d1a286..9ba5e179dbf 100644 --- a/gcc/config/nds32/nds32.h +++ b/gcc/config/nds32/nds32.h @@ -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 \ -- 2.30.2