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
This commit is contained in:
H.J. Lu 2015-01-13 15:57:27 +00:00 committed by H.J. Lu
parent be723d1e73
commit ff8ebda16a
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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