From 70485b5c189916d86cca419c60229858f00d6799 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 16 Aug 2000 17:48:50 +0000 Subject: [PATCH] Warn abouyt "bx pc" not being very useful. --- gas/ChangeLog | 5 +++++ gas/config/tc-arm.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 08e9a22d0f3..2e65ebcdfa3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-08-16 Nick Clifton + + * config/tc-arm.c (do_bx): Warn about "bx px" not being veryu + useful. + 2000-08-14 Will Cohen * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index e9bdc33dc0a..5ca0815288f 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -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); } -- 2.30.2