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: Use PIC_CALL_REG instead of uninitialized tempreg


Hello All,

tempreg isn't properly initialized in this case and should AFAICS
always be PIC_CALL_REG anyway.


Thiemo


2003-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

	/gas/ChangeLog
	* config/tc-mips.c (macro): Don't use uninitialized tempreg.


--- source-orig/gas/config/tc-mips.c	Wed May  7 11:17:46 2003
+++ source/gas/config/tc-mips.c	Wed May 14 05:27:09 2003
@@ -5831,11 +5841,11 @@ macro (ip)
 				offset_expr.X_add_symbol, 0, NULL);
 		  macro_build (p, &icnt, &offset_expr,
 			       HAVE_32BIT_ADDRESSES ? "lw" : "ld", "t,o(b)",
-			       tempreg, (int) BFD_RELOC_MIPS_GOT_PAGE,
+			       PIC_CALL_REG, (int) BFD_RELOC_MIPS_GOT_PAGE,
 			       mips_gp_register);
 		  macro_build (p + 4, &icnt, &offset_expr,
 			       HAVE_32BIT_ADDRESSES ? "addi" : "daddiu",
-			       "t,r,j", tempreg, tempreg,
+			       "t,r,j", PIC_CALL_REG, PIC_CALL_REG,
 			       (int) BFD_RELOC_MIPS_GOT_OFST);
 		}
 


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