Allow "bx pc" in ARM mode.
authorNick Clifton <nickc@redhat.com>
Mon, 14 Aug 2000 21:20:03 +0000 (21:20 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 14 Aug 2000 21:20:03 +0000 (21:20 +0000)
gas/ChangeLog
gas/config/tc-arm.c

index 61f044f..f76f482 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-14  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-arm.c (do_bx): Allow "bx pc".
+
 2000-08-14  Jim Wilson  <wilson@cygnus.com>
 
        * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
index 5e9c465..e9bdc33 100644 (file)
@@ -3589,8 +3589,7 @@ do_bx (str, flags)
       return;
     }
 
-  if (reg == REG_PC)
-    inst.error = BAD_PC;
+  /* Note - it is not illegal to do a "bx pc".  Useless, but not illegal.  */
 
   end_of_line (str);
 }