Re: Static Chain Argument in call_expr

2007-03-08 Thread Ian Lance Taylor
"Paulo J. Matos" <[EMAIL PROTECTED]> writes: > Ah, nice, didn't know that was possible in C. Is that new in C99 or > it's a GCC extension? Nested functions are a gcc extension. Ian

Re: Static Chain Argument in call_expr

2007-03-08 Thread Paulo J. Matos
On 3/8/07, Duncan Sands <[EMAIL PROTECTED]> wrote: > in tree.def, in DEFTREECODE for call_expr, it says operand 2 is the > static chain argument, or NULL. Can someone tell me or reference me to > what static chain argument is? It's for nested functions, eg int parent (int n) { int child (int

Re: Static Chain Argument in call_expr

2007-03-08 Thread Duncan Sands
> in tree.def, in DEFTREECODE for call_expr, it says operand 2 is the > static chain argument, or NULL. Can someone tell me or reference me to > what static chain argument is? It's for nested functions, eg int parent (int n) { int child (int m) { return m * n; } return child (2); } Notice h

Static Chain Argument in call_expr

2007-03-08 Thread Paulo J. Matos
Hello, in tree.def, in DEFTREECODE for call_expr, it says operand 2 is the static chain argument, or NULL. Can someone tell me or reference me to what static chain argument is? Cheers, -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of