* config/tc-xgate.c (md_begin): Fix the printing of opcodes so
authorSean Keys <skeys@ipdatasys.com>
Thu, 10 Jan 2013 22:15:05 +0000 (22:15 +0000)
committerSean Keys <skeys@ipdatasys.com>
Thu, 10 Jan 2013 22:15:05 +0000 (22:15 +0000)
        that the assember exits after the opcodes have been printed.

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

index 6bf8eb17971c79eeca0fdf4a764010335a3afcab..224321f718e153a76f427ab7636344b1703f8401 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-10  Sean Keys  <skeys@ipdatasys.com>
+
+       * config/tc-xgate.c (md_begin): Fix the printing of opcodes so
+        that the assember exits after the opcodes have been printed.
+
 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
 
        * app.c: Remove trailing white spaces.
index 0c43295b5a7a998bb67ee65615ba8749673f177e..752eaee8273c60621e3c9360c693236be180d5ec 100644 (file)
@@ -349,8 +349,11 @@ md_begin (void)
       prev_op_name = op_handles[j].name;
     }
 
-  if (flag_print_opcodes == 1)
-    xgate_print_table ();
+  if (flag_print_opcodes)
+    {
+      print_opcode_list ();
+      exit (EXIT_SUCCESS);
+    }
 }
 
 void