This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Use default_arch on unsupported arch


Hi,

I am checking in this patch to use default_arch on unsupported arch when
cpu_arch_name is NULL.


H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 5526)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2009-03-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* config/tc-i386.c (parse_insn): Use default_arch on unsupported
+	arch.
+
 2009-03-23  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR gas/9966
Index: config/tc-i386.c
===================================================================
--- config/tc-i386.c	(revision 5526)
+++ config/tc-i386.c	(working copy)
@@ -3702,7 +3702,8 @@ check_suffix:
   if (supported != CPU_FLAGS_PERFECT_MATCH)
     {
       as_bad (_("`%s' is not supported on `%s%s'"),
-	      current_templates->start->name, cpu_arch_name,
+	      current_templates->start->name, 
+	      cpu_arch_name ? cpu_arch_name : default_arch,
 	      cpu_sub_arch_name ? cpu_sub_arch_name : "");
       return NULL;
     }


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