r208382 - in /trunk/gcc: c-family/ChangeLog c-f...

mpolacek@gcc.gnu.org mpolacek@gcc.gnu.org
Thu Mar 6 13:41:00 GMT 2014


Author: mpolacek
Date: Thu Mar  6 13:41:46 2014
New Revision: 208382

URL: http://gcc.gnu.org/viewcvs?rev=208382&root=gcc&view=rev
Log:
	PR c/60197
c-family/
	* cilk.c (contains_cilk_spawn_stmt): New function.
	(contains_cilk_spawn_stmt_walker): Likewise.
	(recognize_spawn): Give error on invalid use of _Cilk_spawn.
	* c-common.h (contains_cilk_spawn_stmt): Add declaration.
c/
	* c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
	of checking tree code.
cp/
	* typeck.c (check_return_expr): Call contains_cilk_spawn_stmt instead
	of checking tree code.
testsuite/
	* c-c++-common/cilk-plus/CK/pr60197.c: New test.
	* c-c++-common/cilk-plus/CK/pr60197-2.c: New test.


Added:
    trunk/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197-2.c
    trunk/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c-family/cilk.c
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list