]> git.ipfire.org Git - thirdparty/gcc.git/commit
Allow the static chain to be set from C
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Nov 2014 13:31:24 +0000 (13:31 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Nov 2014 13:31:24 +0000 (13:31 +0000)
commit6f58cf0620d53721e00e818a63f530281f310e4d
tree6e11f41a5ade384361d3bf280fa4e43b0e99fa63
parent156cc902a8276c9aa89fb472320a55260c0225da
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217771 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c/c-parser.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cwsc0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cwsc1.c [new file with mode: 0644]