Warn abouyt "bx pc" not being very useful.
authorNick Clifton <nickc@redhat.com>
Wed, 16 Aug 2000 17:48:50 +0000 (17:48 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 16 Aug 2000 17:48:50 +0000 (17:48 +0000)
gas/ChangeLog
gas/config/tc-arm.c

index 08e9a22d0f36563503b9f04d0f3ad40f88822cae..2e65ebcdfa3180d38b1d77fcca27f88d318c5e79 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-16  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-arm.c (do_bx): Warn about "bx px" not being veryu
+       useful.
+
 2000-08-14  Will Cohen  <wcohen@redhat.com>
 
        * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
index e9bdc33dc0a3535a1e31aec1468e30d2124beb9d..5ca0815288f6f1943c17e8609719636bc6eda413 100644 (file)
@@ -3590,6 +3590,8 @@ do_bx (str, flags)
     }
 
   /* Note - it is not illegal to do a "bx pc".  Useless, but not illegal.  */
+  if (reg == REG_PC)
+    as_tsktsk (_("Use of r15 in bx in ARM mode is not really useful"));
 
   end_of_line (str);
 }