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]

Re: ACCUMULATE_OUTGOING_ARGS/PUSH_ROUNDING as runtime switch


> On Sun, Jan 30, 2000 at 01:19:06AM +0100, Jan Hubicka wrote:
> > This patch changes ACCUMULATE_OUTGOING_ARGS and PUSH_ROUNDING to runtime
> > choosable options.  The ACCUMULATE_OUTGOING_ARGS is now expression and
> > PUSH_ROUNDING is handled by new target macro PUSH_ARGS (when nonzero, push
> > instructions are used, otherwise discrete equivalent).
> 
> I don't think I understand.  Isn't PUSH_ARGS == !ACCUMULATE_OUTGOING_ARGS?
As I understood the code, it is able to do !PUSH_ARGS and
!ACCUMULATE_OUTGOING_ARGS prologues/epilogues as well. It just does stack
manipulation by hand(so it adjusts stack before and after every call) and is
default on some architectures. (SH I believe)
I can change PUSH_ARGS to !ACCUMULATE_OUTGOING_ARGS if you this this alternative
don't make sense.
I think it can be usefull for platofrms that use ACCUMULATE_OUTGOING_ARGS by
default but someone want to squeze out few bytes from frame sizes.

Honza

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