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]
Other format: [Raw text]

Re: Work in progress: "Super Sib Calls"; opinions sought


 In message <20020909134920.GA26479@ceres.cs.mu.oz.au>, Fergus Henderson 
writes:
 >Actually there *is* code in sibcall.c to do such scanning (see
 >uses_addressof() and sequence_uses_addressof() in sibcall.c).  However,
 >the test for frame_size in optimize_sibling_and_tail_recursive_calls()
 >in sibcall.c makes this code currently redundant, I think.
 >I don't understand why both are needed.
ADDRESSOF doesn't generate a stack slot until after CSE has completed.  ie,
the existence of an ADDRESSOF expression will have zero effect on frame_size
until after CSE has completed and we purge ADDRESSOF expressions.

I'm pretty sure both checks are still necessary.

jeff


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