[PATCH] MIPS gas: Fix R_MIPS_HIGHEST encoding

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Sat May 11 02:05:00 GMT 2002


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)
 	    {



More information about the Binutils mailing list