Commit 3b07fa4a by Igor Zamyatin Committed by Kirill Yukhin

re PR middle-end/60467 (ICE with -fcilkplus)

gcc/c-family/
	PR middle-end/60467
	* cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
	as possible argument for Cilk_spawn.

gcc/testsuite/
	PR middle-end/60467
	* c-c++-common/cilk-plus/CK/invalid_spawns.c: Add new invalid
	case to check.

From-SVN: r209337
parent 2f6babac
2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
PR middle-end/60467
* cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
as possible argument for Cilk_spawn.
2014-04-11 Tobias Burnus <burnus@net-b.de>
PR c/60194
......
......@@ -99,7 +99,6 @@ cilk_set_spawn_marker (location_t loc, tree fcall)
it. */
return false;
else if (TREE_CODE (fcall) != CALL_EXPR
&& TREE_CODE (fcall) != FUNCTION_DECL
/* In C++, TARGET_EXPR is generated when we have an overloaded
'=' operator. */
&& TREE_CODE (fcall) != TARGET_EXPR)
......
2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
PR middle-end/60467
* c-c++-common/cilk-plus/CK/invalid_spawns.c: Add new invalid
case to check.
2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
PR middle-end/60469
* c-c++-common/cilk-plus/CK/pr60469.c: New test.
......
......@@ -8,6 +8,7 @@ int main (void)
{
int x;
_Cilk_spawn foo; /* { dg-error "only function calls can be spawned" } */
_Cilk_spawn x; /* { dg-error "only function calls can be spawned" } */
return x;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment