diff options
author | Chung-Ju Wu <jasonwucj@gmail.com> | 2018-05-19 15:16:53 +0000 |
---|---|---|
committer | Chung-Ju Wu <jasonwucj@gcc.gnu.org> | 2018-05-19 15:16:53 +0000 |
commit | 8aa27a4c355b526f1ae444d8349598821e4faf08 (patch) | |
tree | 5942bd1d8081327e62e2463b3d288309ac0626ca /gcc | |
parent | b28c01ab9aa51aaa9329af2bdb581afd67a6a639 (diff) | |
download | gcc-8aa27a4c355b526f1ae444d8349598821e4faf08.zip gcc-8aa27a4c355b526f1ae444d8349598821e4faf08.tar.gz gcc-8aa27a4c355b526f1ae444d8349598821e4faf08.tar.bz2 |
[NDS32] Adjust ASM spec.
gcc/
* config/nds32/nds32.h (ASM_SPEC): Adjust spec rule.
From-SVN: r260401
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/nds32/nds32.h | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 97aa4e7..0bd395d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 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 (nds32_md_asm_adjust): Consider flag_inline_asm_r15 variable. * config/nds32/nds32.opt (minline-asm-r15): New option. diff --git a/gcc/config/nds32/nds32.h b/gcc/config/nds32/nds32.h index 90b52d1..9ba5e17 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 \ |