[Top][All Lists]
[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
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, (continued)
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, Rob Landley, 2007/05/07
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, Dave Dodge, 2007/05/08
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, Fred Weigel, 2007/05/08
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, Daniel Glöckner, 2007/05/08
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, David A. Wheeler, 2007/05/08
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?,
Daniel Glöckner <=
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, David A. Wheeler, 2007/05/08
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, Philippe Ribet, 2007/05/10
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, David A. Wheeler, 2007/05/10
- Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, Rob Landley, 2007/05/11
Re: [Tinycc-devel] Proposal for handling alloca(). Anyone see a problem with it?, Dave Dodge, 2007/05/08