This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

A thunks patch


Hi,

I believe this patch fixes the thunks bug on alpha I reported
earlier.


-- 
H.J. Lu (hjl@gnu.ai.mit.edu)
--
Sat Oct 11 17:24:53 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)

	* toplev.c (rest_of_compilation): Don't defer thunks.

Index: toplev.c
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/toplev.c,v
retrieving revision 1.1.1.5
diff -u -r1.1.1.5 toplev.c
--- toplev.c	1997/10/09 17:28:48	1.1.1.5
+++ toplev.c	1997/10/12 00:23:01
@@ -3024,7 +3052,8 @@
 
       /* If we can, defer compiling inlines until EOF.
 	 save_for_inline_copying can be extremely expensive.  */
-      if (inlineable && ! decl_function_context (decl))
+      if (inlineable && !current_function_is_thunk
+	  && ! decl_function_context (decl))
 	DECL_DEFER_OUTPUT (decl) = 1;
 
       /* If function is inline, and we don't yet know whether to


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