This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [COMMITTED 3/3] Allow the static chain to be set from C


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]