Getting calling function in the C frontend

Ian Lance Taylor iant@google.com
Thu Jan 8 18:22:00 GMT 2009


Per Ekman <pek@kth.se> 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



More information about the Gcc mailing list