diff options
author | Chung-Ju Wu <jasonwucj@gmail.com> | 2019-02-10 12:27:01 +0000 |
---|---|---|
committer | Chung-Ju Wu <jasonwucj@gcc.gnu.org> | 2019-02-10 12:27:01 +0000 |
commit | 2a484d14535e5a3bc4791a2faf4453c2f14fcfad (patch) | |
tree | 26894027c7e9a2c67668b031560f1c7cb0efaa9c /gcc | |
parent | 79e2c811f8fe8b212aeb63ae837f9c3a8289e693 (diff) | |
download | gcc-2a484d14535e5a3bc4791a2faf4453c2f14fcfad.zip gcc-2a484d14535e5a3bc4791a2faf4453c2f14fcfad.tar.gz gcc-2a484d14535e5a3bc4791a2faf4453c2f14fcfad.tar.bz2 |
[NDS32] Set default --with-nds32-lib correctly.
gcc/
* config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
From-SVN: r268744
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config.gcc | 20 |
2 files changed, 17 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b324f15..aea089f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com> + + * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly. + 2019-02-10 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/89268 diff --git a/gcc/config.gcc b/gcc/config.gcc index 7675d92..31b47c5 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4523,9 +4523,18 @@ case "${target}" in # process --with-nds32-lib case "${with_nds32_lib}" in "") - # the default library is newlib - with_nds32_lib=newlib - tm_defines="${tm_defines} TARGET_DEFAULT_CTOR_DTOR=1" + case ${target} in + *-*-*uclibc*) + with_nds32_lib=ulibc + ;; + *-*-linux*) + with_nds32_lib=glibc + ;; + *) + with_nds32_lib=newlib + tm_defines="${tm_defines} TARGET_DEFAULT_CTOR_DTOR=1" + ;; + esac ;; newlib) # OK @@ -4541,11 +4550,8 @@ case "${target}" in ;; esac ;; - glibc) + glibc | uclibc) # OK - tm_defines="${tm_defines}" - ;; - uclibc) ;; *) echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib glibc uclibc" 1>&2 |