[PATCH] Reload gp in alpha MI thunks

Jakub Jelinek jakub@redhat.com
Tue Oct 17 14:54:00 GMT 2000


Hi!

Alpha needs to reload $gp in thunks, this patches cures failures e.g. in
openjade or qt2.
I've already commited this based on private mail with Richard Henderson.

2000-10-17  Jakub Jelinek  <jakub@redhat.com>

	* config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.

--- gcc/config/alpha/alpha.h.jj	Mon Oct  9 11:18:54 2000
+++ gcc/config/alpha/alpha.h	Tue Oct 17 14:39:33 2000
@@ -2240,6 +2240,9 @@ do {									\
   const char *fn_name = XSTR (XEXP (DECL_RTL (FUNCTION), 0), 0);	\
   int reg;								\
 									\
+  if (! TARGET_OPEN_VMS && ! TARGET_WINDOWS_NT)				\
+    fprintf (FILE, "\tldgp $29,0($27)\n");				\
+									\
   /* Mark end of prologue.  */						\
   output_end_prologue (FILE);						\
 									\

	Jakub


More information about the Gcc-patches mailing list