This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

[C++ patch] fix thunks on PPC


Hi,
on PPC thunks are expanded as functions that are produced after
expanding function thunks are needed for.  Such functions can not go
into cgraph as it is already too late so we must expand them directly.

Ideally we probably can produce all thunks as normal functions and we
should reorganize backend to optimize them in a way current thunk
optimizing code does but that is very dificult.  I will try to work on
that in the future.

Regtested/bootstrapped PPC with unit-at-a-time by default.  OK?

Sat Aug  2 13:41:04 CEST 2003  Jan Hubicka  <jh@suse.cz>
	* method.c (use_thunk): Expand body directly.
Index: method.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/method.c,v
retrieving revision 1.265
diff -c -3 -p -r1.265 method.c
*** method.c	30 Jul 2003 23:47:59 -0000	1.265
--- method.c	2 Aug 2003 11:40:55 -0000
*************** use_thunk (tree thunk_fndecl, bool emit_
*** 468,474 ****
        /* Re-enable access control.  */
        pop_deferring_access_checks ();
  
!       expand_or_defer_fn (finish_function (0));
      }
  
    pop_from_top_level ();
--- 468,474 ----
        /* Re-enable access control.  */
        pop_deferring_access_checks ();
  
!       expand_body (finish_function (0));
      }
  
    pop_from_top_level ();


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