tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem


From: Daniel Glöckner
Subject: Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?
Date: Tue, 8 May 2007 21:58:29 +0200
User-agent: Mutt/1.4.2.1i

On Tue, May 08, 2007 at 02:31:33PM -0400, David A. Wheeler wrote:
> > Unfortunately this breaks ({int x=1; x;}).
> 
> Sorry, I don't understand that last sentence.

({int x=1; x;}) puts a reference to x on vtop and leaves the block.
We may not reuse x's stack space.

int f() {
  return ({int x=1; x;})+({int y=2; y;});
}
is a more complete example that will fail using the intended
optimization. ({}) may not be the only problematic situation.

  Daniel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]