Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3 For earm use the compiler to determine sf vs hf
details: https://anonhg.NetBSD.org/src/rev/9b972e8f3aa6
branches: trunk
changeset: 345201:9b972e8f3aa6
user: skrll <skrll%NetBSD.org@localhost>
date: Thu May 12 12:51:53 2016 +0000
description:
For earm use the compiler to determine sf vs hf
diffstat:
external/gpl3/binutils.old/dist/config.guess | 10 ++++++++--
external/gpl3/binutils/dist/config.guess | 10 ++++++++--
external/gpl3/gcc.old/dist/config.guess | 10 ++++++++--
external/gpl3/gcc/dist/config.guess | 10 ++++++++--
4 files changed, 32 insertions(+), 8 deletions(-)
diffs (80 lines):
diff -r f7b28246d847 -r 9b972e8f3aa6 external/gpl3/binutils.old/dist/config.guess
--- a/external/gpl3/binutils.old/dist/config.guess Thu May 12 11:41:43 2016 +0000
+++ b/external/gpl3/binutils.old/dist/config.guess Thu May 12 12:51:53 2016 +0000
@@ -214,8 +214,14 @@
# Determine ABI tags.
case "${UNAME_MACHINE_ARCH}" in
earm*)
- expr='s/^earmv[0-9]/-eabi/;s/eb$//'
- abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
+ eval $set_cc_for_build
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ abi=-eabi
+ else
+ abi=-eabihf
+ fi
;;
esac
# The OS release
diff -r f7b28246d847 -r 9b972e8f3aa6 external/gpl3/binutils/dist/config.guess
--- a/external/gpl3/binutils/dist/config.guess Thu May 12 11:41:43 2016 +0000
+++ b/external/gpl3/binutils/dist/config.guess Thu May 12 12:51:53 2016 +0000
@@ -214,8 +214,14 @@
# Determine ABI tags.
case "${UNAME_MACHINE_ARCH}" in
earm*)
- expr='s/^earmv[0-9]/-eabi/;s/eb$//'
- abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
+ eval $set_cc_for_build
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ abi=-eabi
+ else
+ abi=-eabihf
+ fi
;;
esac
# The OS release
diff -r f7b28246d847 -r 9b972e8f3aa6 external/gpl3/gcc.old/dist/config.guess
--- a/external/gpl3/gcc.old/dist/config.guess Thu May 12 11:41:43 2016 +0000
+++ b/external/gpl3/gcc.old/dist/config.guess Thu May 12 12:51:53 2016 +0000
@@ -214,8 +214,14 @@
# Determine ABI tags.
case "${UNAME_MACHINE_ARCH}" in
earm*)
- expr='s/^earmv[0-9]/-eabi/;s/eb$//'
- abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
+ eval $set_cc_for_build
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ abi=-eabi
+ else
+ abi=-eabihf
+ fi
;;
esac
# The OS release
diff -r f7b28246d847 -r 9b972e8f3aa6 external/gpl3/gcc/dist/config.guess
--- a/external/gpl3/gcc/dist/config.guess Thu May 12 11:41:43 2016 +0000
+++ b/external/gpl3/gcc/dist/config.guess Thu May 12 12:51:53 2016 +0000
@@ -214,8 +214,14 @@
# Determine ABI tags.
case "${UNAME_MACHINE_ARCH}" in
earm*)
- expr='s/^earmv[0-9]/-eabi/;s/eb$//'
- abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
+ eval $set_cc_for_build
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ abi=-eabi
+ else
+ abi=-eabihf
+ fi
;;
esac
# The OS release
Home |
Main Index |
Thread Index |
Old Index