aboutsummaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2015-01-13 15:57:27 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2015-01-13 07:57:27 -0800
commitff8ebda16a00b9f745d213f72f57c27043e07f85 (patch)
treef71d61a25413562a380d1659346a8d4b636f945a /libffi
parentbe723d1e73118cd0e20f66d21976290eb73f27fd (diff)
downloadgcc-ff8ebda16a00b9f745d213f72f57c27043e07f85.zip
gcc-ff8ebda16a00b9f745d213f72f57c27043e07f85.tar.gz
gcc-ff8ebda16a00b9f745d213f72f57c27043e07f85.tar.bz2
Set TARGET to X86_64 if __x86_64__ is defined
PR bootstrap/64575 * configure.host (TARGET): Set to X86_64 if __x86_64__ is defined. From-SVN: r219539
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog5
-rw-r--r--libffi/configure.host8
2 files changed, 12 insertions, 1 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index cbdb173..1566120 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR bootstrap/64575
+ * configure.host (TARGET): Set to X86_64 if __x86_64__ is defined.
+
2015-01-12 Richard Henderson <rth@redhat.com>
PR libffi/64572
diff --git a/libffi/configure.host b/libffi/configure.host
index 90de638..e310191 100644
--- a/libffi/configure.host
+++ b/libffi/configure.host
@@ -100,7 +100,13 @@ case "${host}" in
TARGET=X86_64
;;
*)
- TARGET=X86
+ echo 'int foo (void) { return __x86_64__; }' > conftest.c
+ if $CC $CFLAGS -Werror -S conftest.c -o conftest.s > /dev/null 2>&1; then
+ TARGET=X86_64;
+ else
+ TARGET=X86;
+ fi
+ rm -f conftest.*
;;
esac
else