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]

Fix ix86->anything else crosses


A while ago geoffk made a change that causes driver-i386.c to be
compiled in whenever the host is ix86-anything; a few days ago HJ
changed it to start using enum processor type.  This caused compilation
failures when trying to build (for example) i686-linux-x-bfin-elf
crosses, where naturally things like PROCESSOR_PENTIUM are undefined.

Fixed with this patch, bootstrapped & regression tested on i686-linux,
and comitted as 119543.


Bernd
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 119539)
+++ ChangeLog	(working copy)
@@ -3,6 +3,9 @@
 	* config/bfin/bfin.c (output_file_start): Fix comment which referred to
 	ia64_override_options.
 
+	* config.host (i[34567]86-*-*, x86-64-*-*): Use driver-i386.o only if
+	target is also an x86 variant.
+
 2006-12-04  Jan Hubicka  <jh@suse.cz>
 
 	* cfgexpand.c (expand_one_var): Guard expand_one_stack_var by
Index: config.host
===================================================================
--- config.host	(revision 119539)
+++ config.host	(working copy)
@@ -97,8 +97,14 @@ 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]