r217337 - in /trunk/gcc/cp: ChangeLog semantics.c

ak@gcc.gnu.org ak@gcc.gnu.org
Tue Nov 11 05:11:00 GMT 2014


Author: ak
Date: Tue Nov 11 05:11:09 2014
New Revision: 217337

URL: https://gcc.gnu.org/viewcvs?rev=217337&root=gcc&view=rev
Log:
Add illegal cilk checks to C++ front.

Add calls for several illegal Cilk cases to the C++ frontend.
C++ usually doesn't ICE unlike C on illegal cilk, but it's
better to match C in what is allowed and what is not.

if (_Cilk_spawn ...) is still not errored, but at least it doesn't ICE.

gcc/cp/:

2014-11-10  Andi Kleen  <ak@linux.intel.com>

	* semantics.c (finish_goto_stmt): Call check_no_cilk.
	(finish_while_stmt_cond): Dito.
	(finish_do_stmt): Dito.
	(finish_for_cond): Dito.
	(finish_switch_cond): Dito.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c



More information about the Gcc-cvs mailing list