public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] MIPS gas: Use PIC_CALL_REG instead of uninitialized tempreg
@ 2003-05-14 23:52 Thiemo Seufer
  2003-05-15  0:55 ` Thiemo Seufer
  2003-05-21 21:16 ` Eric Christopher
  0 siblings, 2 replies; 5+ messages in thread
From: Thiemo Seufer @ 2003-05-14 23:52 UTC (permalink / raw)
  To: binutils

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);
 		}
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-23 15:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14 23:52 [PATCH] MIPS gas: Use PIC_CALL_REG instead of uninitialized tempreg Thiemo Seufer
2003-05-15  0:55 ` Thiemo Seufer
2003-05-15  2:02   ` Thiemo Seufer
2003-05-21 21:16 ` Eric Christopher
2003-05-23 15:06   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).