This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: driver/30074: [4.2/4.3]: Cross compiler on i386/x86-64 hosts includes driver-i386.c
- From: "H. J. Lu" <hjl at lucon dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 Dec 2006 07:48:37 -0800
- Subject: PATCH: driver/30074: [4.2/4.3]: Cross compiler on i386/x86-64 hosts includes driver-i386.c
We include driver-i386.c for all compilers hosted on i386/x86-64. We
should only include it for compilers targeting i386/x86-64.
OK for 4.3 and 4.2?
H.J.
----
2006-12-05 H.J. Lu <hongjiu.lu@intel.com>
PR driver/30074
* config.host: Add driver-i386.o only if compiling for x86 or
x86_64.
--- gcc/config.host.cross 2006-11-09 19:56:30.000000000 -0800
+++ gcc/config.host 2006-12-05 07:25:04.000000000 -0800
@@ -97,8 +97,13 @@ esac
case ${host} in
i[34567]86-*-* \
| x86_64-*-* )
- host_extra_gcc_objs="driver-i386.o"
- host_xmake_file="${host_xmake_file} i386/x-i386"
+ case ${target} in
+ i[34567]86-*-* \
+ | x86_64-*-* )
+ host_extra_gcc_objs="driver-i386.o"
+ host_xmake_file="${host_xmake_file} i386/x-i386"
+ ;;
+ esac
;;
esac