public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* use of alloca in function prologue
@ 2002-07-27 16:06 Mike Lerwill
  2002-07-30  7:02 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Lerwill @ 2002-07-27 16:06 UTC (permalink / raw)
  To: Gcc@Gcc. Gnu. Org

When allocating a large amount function local variables the prologue uses
alloca instead of simple stack allocation.

I (from the documentation) expected -ffreestanding to turn this off but it
does not.

Is there any way to work around this (I don't have alloca implemented)

regards

Mike Lerwill

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: use of alloca in function prologue
  2002-07-27 16:06 use of alloca in function prologue Mike Lerwill
@ 2002-07-30  7:02 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2002-07-30  7:02 UTC (permalink / raw)
  To: Mike Lerwill; +Cc: Gcc@Gcc. Gnu. Org

On Sat, Jul 27, 2002 at 01:59:16PM +0100, Mike Lerwill wrote:
> When allocating a large amount function local variables the prologue uses
> alloca instead of simple stack allocation.

This only happens when configured for a windows target, as
that's what the ABI sez.

> Is there any way to work around this (I don't have alloca implemented)

Configure for a different target.


r~

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-29 23:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-27 16:06 use of alloca in function prologue Mike Lerwill
2002-07-30  7:02 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).