This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]