From 81795ca17df8a02e965c8b1a3839255553c63284 Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Tue, 14 May 2002 23:35:59 +0000 Subject: [PATCH] * config/tc-mips.c (macro): Warn about wrong la/dla use. --- gas/ChangeLog | 4 ++++ gas/config/tc-mips.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 59f514a56..e089d84ab 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ 2002-05-15 Thiemo Seufer + * config/tc-mips.c (macro): Warn about wrong la/dla use. + +2002-05-15 Thiemo Seufer + * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had worked sometimes by accident. Fix copy&paste comment. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index f112b84ed..2d574e827 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; -- 2.11.4.GIT