This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 10/20] MIPS/GAS: Fail on 64-bit addresses used with LI
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: Richard Sandiford <rdsandiford at googlemail dot com>
- Cc: Catherine Moore <clm at codesourcery dot com>, binutils at sourceware dot org
- Date: Thu, 2 Dec 2010 19:20:10 +0000 (GMT)
- Subject: [PATCH 10/20] MIPS/GAS: Fail on 64-bit addresses used with LI
Hi,
This change adds a suitable assertion to the LI macro where 64-bit
addresses are not expected and not handled correctly.
2010-12-02 Maciej W. Rozycki <macro@codesourcery.com>
gas/
* config/tc-mips.c (macro)[M_LI_DD]: Fail if a 64-bit address is
truncated to 32 bits.
OK to apply?
Maciej
binutils-gas-mips-lidd-assert.diff
Index: binutils-fsf-trunk-quilt/gas/config/tc-mips.c
===================================================================
--- binutils-fsf-trunk-quilt.orig/gas/config/tc-mips.c 2010-12-01 21:05:50.000000000 +0000
+++ binutils-fsf-trunk-quilt/gas/config/tc-mips.c 2010-12-01 21:05:51.000000000 +0000
@@ -7039,6 +7039,7 @@ macro (struct mips_cl_insn *ip)
else
{
/* FIXME: This won't work for a 64 bit address. */
+ gas_assert (HAVE_32BIT_ADDRESSES);
macro_build_lui (&offset_expr, AT);
}