diff options
author | Matthew Fortune <matthew.fortune@imgtec.com> | 2015-04-23 20:09:13 +0100 |
---|---|---|
committer | Matthew Fortune <matthew.fortune@imgtec.com> | 2015-04-23 22:23:17 +0100 |
commit | ece794d9c43addc2a347c01f5cd753b9171d028a (patch) | |
tree | bcc8a8de4c1eea4d508dd7a3674bf2579edba103 /gas/config | |
parent | a100d66fb42044153dc0e93c96d7944dab0cc674 (diff) | |
download | gdb-ece794d9c43addc2a347c01f5cd753b9171d028a.zip gdb-ece794d9c43addc2a347c01f5cd753b9171d028a.tar.gz gdb-ece794d9c43addc2a347c01f5cd753b9171d028a.tar.bz2 |
Improve warning messages for la/dla
gas/
* config/tc-mips.c (macro): State the recommended way of creating
32-bit or 64-bit addresses.
gas/testsuite/
* gas/mips/dla-warn.l: New file.
* gas/mips/dla-warn.s: New file.
* gas/mips/la-warn.l: New file.
* gas/mips/la-warn.s: New file.
* gas/mips/mips.exp: Run new tests.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mips.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index e61bb4d..40e38f8 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -10331,10 +10331,12 @@ macro (struct mips_cl_insn *ip, char *str) breg = op[2]; if (dbl && GPR_SIZE == 32) - as_warn (_("dla used to load 32-bit register")); + as_warn (_("dla used to load 32-bit register; recommend using la " + "instead")); if (!dbl && HAVE_64BIT_OBJECTS) - as_warn (_("la used to load 64-bit address")); + as_warn (_("la used to load 64-bit address; recommend using dla " + "instead")); if (small_offset_p (0, align, 16)) { |