r217771 - in /trunk/gcc: ChangeLog c-family/c-c...

rth@gcc.gnu.org rth@gcc.gnu.org
Wed Nov 19 13:31:00 GMT 2014


Author: rth
Date: Wed Nov 19 13:31:24 2014
New Revision: 217771

URL: https://gcc.gnu.org/viewcvs?rev=217771&root=gcc&view=rev
Log:
Allow the static chain to be set from C

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.

Added:
    trunk/gcc/testsuite/gcc.dg/cwsc0.c
    trunk/gcc/testsuite/gcc.dg/cwsc1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c/c-parser.c
    trunk/gcc/doc/extend.texi
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list