Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist Deal with earm*
details: https://anonhg.NetBSD.org/src/rev/b7deb4d39d76
branches: trunk
changeset: 786251:b7deb4d39d76
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Apr 22 08:52:33 2013 +0000
description:
Deal with earm*
diffstat:
external/gpl3/gcc/dist/config.guess | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r f77238ec953c -r b7deb4d39d76 external/gpl3/gcc/dist/config.guess
--- a/external/gpl3/gcc/dist/config.guess Mon Apr 22 07:53:29 2013 +0000
+++ b/external/gpl3/gcc/dist/config.guess Mon Apr 22 08:52:33 2013 +0000
@@ -158,6 +158,8 @@
UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
/usr/sbin/$sysctl 2>/dev/null || echo unknown)`
case "${UNAME_MACHINE_ARCH}" in
+ earm*eb*) machine=armeb-unknown ;;
+ earm*) machine=arm-unknown ;;
armeb) machine=armeb-unknown ;;
arm*) machine=arm-unknown ;;
sh3el) machine=shl-unknown ;;
@@ -166,8 +168,18 @@
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
esac
# The Operating System including object format, if it has switched
- # to ELF recently, or will in the future.
+ # to ELF recently, or will in the future and ABI.
case "${UNAME_MACHINE_ARCH}" in
+ earm*)
+ eval $set_cc_for_build
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ os=netbsdelf-eabi
+ else
+ os=netbsdelf-eabihf
+ fi
+ ;;
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
eval $set_cc_for_build
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
Home |
Main Index |
Thread Index |
Old Index