This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]