From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: egcs@cygnus.com Subject: A thunks patch Date: Sat, 11 Oct 1997 17:33:00 -0000 Message-id: X-SW-Source: 1997-10/msg00477.html 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