aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2002-05-14 23:35:59 +0000
committerThiemo Seufer <ths@networkno.de>2002-05-14 23:35:59 +0000
commit3bec30a8305f9f5d5649b5e1fc9ed78a1c3c109a (patch)
treeaeaffbeb21e2481b6e81698b242b13507b3f9982 /gas/config
parent563773fe03c6530810d02f664dcdae5824a35a6b (diff)
downloadgdb-3bec30a8305f9f5d5649b5e1fc9ed78a1c3c109a.zip
gdb-3bec30a8305f9f5d5649b5e1fc9ed78a1c3c109a.tar.gz
gdb-3bec30a8305f9f5d5649b5e1fc9ed78a1c3c109a.tar.bz2
* config/tc-mips.c (macro): Warn about wrong la/dla use.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index f112b84..2d574e8 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -4604,6 +4604,12 @@ macro (ip)
/* Load the address of a symbol into a register. If breg is not
zero, we then add a base register to it. */
+ if (dbl && HAVE_32BIT_GPRS)
+ as_warn (_("dla used to load 32-bit register"));
+
+ if (! dbl && HAVE_64BIT_ADDRESSES)
+ as_warn (_("la used to load 64-bit address"));
+
if (treg == breg)
{
tempreg = AT;