On Mon, Oct 13, 2014 at 1:10 AM, Richard Biener <richard.guent...@gmail.com> wrote: > On Sat, Oct 11, 2014 at 6:23 AM, Richard Henderson <r...@redhat.com> wrote: >> On 10/10/2014 06:42 PM, Peter Collingbourne wrote: >>> A colleague has suggested a perhaps nicer syntax: >>> >>> __builtin_call_chain(pointer, call) where call must be a call expression >> >> I like this. >> >> Unlike the other suggestions, it doesn't mess with the parsing of the >> "regular" >> part of the function call. And, depending on what point the builtin is >> lowered >> and applied to the AST, it might not require any parsing changes at all. >> >> I'll have a look at this next week. Thanks. > > Does the frontend know that the call expects a static chain?
The chain is not part of the function type, so no. Peter