Commit ff8ebda1 by H.J. Lu Committed by H.J. Lu

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
parent be723d1e
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> 2015-01-12 Richard Henderson <rth@redhat.com>
PR libffi/64572 PR libffi/64572
......
...@@ -100,7 +100,13 @@ case "${host}" in ...@@ -100,7 +100,13 @@ case "${host}" in
TARGET=X86_64 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 esac
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment