[COMMITTED 3/3] Allow the static chain to be set from C
Jeff Law
law@redhat.com
Wed Nov 19 17:42:00 GMT 2014
On 11/19/14 07:58, Richard Henderson wrote:
> We need to be able to set the static chain on a few calls within the
> Go runtime, so expose this with __builtin_call_with_static_chain.
>
> * c-family/c-common.c (c_common_reswords): Add
> __builtin_call_with_static_chain.
> * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
> * c/c-parser.c (c_parser_postfix_expression): Handle it.
> * doc/extend.texi (__builtin_call_with_static_chain): Document it.
>
> * gcc.dg/cwsc0.c: New test.
> * gcc.dg/cwsc1.c: New test.
OK.
jeff
More information about the Gcc-patches
mailing list