This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r217771 - in /trunk/gcc: ChangeLog c-family/c-c...
- From: rth at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 19 Nov 2014 13:31:24 -0000
- Subject: r217771 - in /trunk/gcc: ChangeLog c-family/c-c...
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