This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] MIPS gas: Fix R_MIPS_HIGHEST encoding
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Sat, 11 May 2002 11:05:06 +0200
- Subject: [PATCH] MIPS gas: Fix R_MIPS_HIGHEST encoding
Hi All,
this small patch fixes the encoding of the highest bits in 64 bit
constants for hosts where unsigned long is a 32 bit datatype.
Daniel, can this go into the branch, too?
Thiemo
2002-05-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/gas/ChangeLog
* config/tc-mips.c (append_insn): Fix too small range of variable.
diff -BurpNX /bigdisk/src/binutils-exclude source-orig/gas/config/tc-mips.c source/gas/config/tc-mips.c
--- source-orig/gas/config/tc-mips.c Wed Apr 10 18:40:57 2002
+++ source/gas/config/tc-mips.c Fri May 10 21:22:46 2002
@@ -2037,7 +2058,7 @@ append_insn (place, ip, address_expr, re
{
if (address_expr->X_op == O_constant)
{
- unsigned long tmp;
+ valueT tmp;
switch (*reloc_type)
{