Re: Getting calling function in the C frontend

2009-01-09 Thread Per Ekman
On Thu, Jan 8, 2009 at 7:22 PM, Ian Lance Taylor wrote: > > Per Ekman writes: > > > Is it possible to get hold of the calling function (in the compiled > > program, not in gcc itself) in c-typeck.c:build_function_call()? > > It's in the global variable current_function_decl. Perfect, that did th

Re: Getting calling function in the C frontend

2009-01-08 Thread Ian Lance Taylor
Per Ekman writes: > Is it possible to get hold of the calling function (in the compiled > program, not in gcc itself) in c-typeck.c:build_function_call()? It's in the global variable current_function_decl. Ian