diff options
author | Kito Cheng <kito.cheng@gmail.com> | 2018-02-26 06:47:32 +0000 |
---|---|---|
committer | Chung-Ju Wu <jasonwucj@gcc.gnu.org> | 2018-02-26 06:47:32 +0000 |
commit | 7f3101c0a87f5be1dcf1811e8e54fb4b32cd2397 (patch) | |
tree | 206cae7c20e8a74776df88d60cb774d12d0f3fd3 /gcc/config.gcc | |
parent | a8a3f32d583d9fde8e94c11c118c47c702bdea04 (diff) | |
download | gcc-7f3101c0a87f5be1dcf1811e8e54fb4b32cd2397.zip gcc-7f3101c0a87f5be1dcf1811e8e54fb4b32cd2397.tar.gz gcc-7f3101c0a87f5be1dcf1811e8e54fb4b32cd2397.tar.bz2 |
[NDS32] Basic support for -mcpu= and --with-cpu= options.
gcc/
* config.gcc: Add --with-cpu support for nds32 target.
* config/nds32/nds32-opts.h(nds32_cpu_type): New.
* config/nds32/nds32.opt: Add -mcpu= option.
From-SVN: r257982
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index c52fecf..7df1766 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4265,7 +4265,7 @@ case "${target}" in ;; nds32*-*-*) - supported_defaults="arch nds32_lib" + supported_defaults="arch cpu nds32_lib" # process --with-arch case "${with_arch}" in @@ -4278,6 +4278,19 @@ case "${target}" in ;; esac + case "${with_cpu}" in + "") + with_cpu=n9 + ;; + n9) + # OK + ;; + *) + echo "Cannot accept --with-cpu=$with_cpu, available values are: n9" 1>&2 + exit 1 + ;; + esac + # process --with-nds32-lib case "${with_nds32_lib}" in "") |