diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-13 15:57:27 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-13 15:57:27 +0000 |
commit | 1446e30106670028d68e2d5488ea12ebbeb6462e (patch) | |
tree | f71d61a25413562a380d1659346a8d4b636f945a /libffi/configure.host | |
parent | a95c552a6cf7437b8207582231eb4a43d8f2399c (diff) |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219539 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/configure.host')
-rw-r--r-- | libffi/configure.host | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libffi/configure.host b/libffi/configure.host index 90de638b30cb..e310191e018b 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 |