* config/tc-mips.c (macro): Warn about wrong la/dla use.
authorThiemo Seufer <ths@networkno.de>
Tue, 14 May 2002 23:35:59 +0000 (23:35 +0000)
committerThiemo Seufer <ths@networkno.de>
Tue, 14 May 2002 23:35:59 +0000 (23:35 +0000)
gas/ChangeLog
gas/config/tc-mips.c

index 59f514a56cd8ee714e98c18ac61904fc41d19f36..e089d84ab8d0c841b3196deb4e0c87f5607c396e 100644 (file)
@@ -1,3 +1,7 @@
+2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (macro): Warn about wrong la/dla use.
+
 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
 
        * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
index f112b84edcf1b348d1e7f2292ca1d84c4f4b5822..2d574e827b447bb58886d79c2089876b915b9e14 100644 (file)
@@ -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;