diff options
author | Chris Packham <judge.packham@gmail.com> | 2019-09-05 13:59:19 +1200 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2019-09-05 14:17:18 +1200 |
commit | 01e21d90f793d86d07ab532ef9456bea8003edf8 (patch) | |
tree | f05f5a389c03a2bce03bdc274b5bf423871e3aa6 /packages/glibc | |
parent | afaf7b9a25b5d77991002936be5c47fc5ff549de (diff) | |
download | crosstool-ng-01e21d90f793d86d07ab532ef9456bea8003edf8.tar.gz crosstool-ng-01e21d90f793d86d07ab532ef9456bea8003edf8.tar.bz2 crosstool-ng-01e21d90f793d86d07ab532ef9456bea8003edf8.zip |
glibc: arc: Don't interfere with other architectures
Fixes: #1227
Adjust the ARC patch so that it only sets with_fp_cond when the machine
is arc.
https://github.com/foss-for-synopsys-dwc-arc-processors/glibc/issues/7
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/glibc')
-rw-r--r-- | packages/glibc/2.29/0001-Add-ARC-architecture.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/glibc/2.29/0001-Add-ARC-architecture.patch b/packages/glibc/2.29/0001-Add-ARC-architecture.patch index 11b3aea8..f7441dde 100644 --- a/packages/glibc/2.29/0001-Add-ARC-architecture.patch +++ b/packages/glibc/2.29/0001-Add-ARC-architecture.patch @@ -2290,16 +2290,16 @@ index 00000000000..1152a179c4a +arc*) + base_machine=arc + machine=arc ++ ++ gccfloat=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep __ARC_FPU_| wc -l` ++ if test "$gccfloat" != "0"; then ++ echo "glibc being configured for double precision floating point" ++ with_fp_cond=1 ++ else ++ with_fp_cond=0 ++ fi + ;; +esac -+ -+gccfloat=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep __ARC_FPU_| wc -l` -+if test "$gccfloat" != "0"; then -+ echo "glibc being configured for double precision floating point" -+ with_fp_cond=1 -+else -+ with_fp_cond=0 -+fi diff --git a/sysdeps/arc/setjmp.S b/sysdeps/arc/setjmp.S new file mode 100644 index 00000000000..518545a99e8 |