This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: x86 -mno-push-args buglet?
- To: John Wehle <john at feith dot com>
- Subject: Re: x86 -mno-push-args buglet?
- From: Jan Hubicka <hubicka at atrey dot karlin dot mff dot cuni dot cz>
- Date: Tue, 2 May 2000 15:42:10 +0200
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <200005020421.AAA07705@jwlab.FEITH.COM>
> > In case you want constant stack pointer (and no such artefacts) use
> > -maccumulate-outgong-args. The -mpush-args isn't particulary usefull for
> > normal use IMO, but is usefull for me to test behaviour fo calls.c with
> > various settings.
>
> Thanks for the clarification. I jumped to the conclusion that
> -mno-push-args meant constant stack pointer and completely missed
> the existence of -maccumulate-outgoing-args.
Perhaps we can do something against that confusion, since you are most
probably not the last person falling to the trap. I am not sure if it is
clear to omit documentation of that flag or something like that.
I doubt that it will be usefull (it brings speedups over normal settings
in some cases, but in most cases it is slower and longer than
-maccumulate-outgoing-args).
I would like to combine strengths of those two laters. Basically
teach -maccumulate-outgoing-args to make stack pointer non-constant
when it shortens register lifetimes or avoid copying of structures...
But I have too much thinks to do in calls.c before this one.
Honza
>
> -- John
> -------------------------------------------------------------------------
> | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
> | John Wehle | Fax: 1-215-540-5495 | |
> -------------------------------------------------------------------------