2009-03-25 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 25 Mar 2009 19:49:25 +0000 (19:49 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 25 Mar 2009 19:49:25 +0000 (19:49 +0000)
* config/tc-i386.c (parse_insn): Use default_arch on unsupported
arch.

gas/ChangeLog
gas/config/tc-i386.c

index eb9b7422a4f8e1cf6847b2c49a422046635c0ff3..13794000c4161eeef586077245cd91bd14c2385e 100644 (file)
@@ -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 1f8cc1024a18c136a7a8cfd091165688a284a5a0..91836ea9096ba5cce67876e2995ea7fc6b5baad2 100644 (file)
@@ -3145,7 +3145,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;
     }