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: [PATCH v2] Destroy arguments for _Cilk_spawn calling in the child (PR 80038)


On 05/02/2017 01:56 AM, Xi Ruoyao wrote:
On 2017-05-02 09:16 +0200, Andreas Schwab wrote:

This could be related to --enable-checking=release:

In file included from ../../gcc/c-family/c-common.h:26:0,
                  from ../../gcc/c-family/cilk.c:28:
../../gcc/c-family/cilk.c: In function 'bool cilk_set_spawn_marker(location_t, tree)':
../../gcc/tree.h:901:42: error: 'tree_check2' was not declared in this scope
                  CALL_EXPR, AGGR_INIT_EXPR)->base.u.bits.unsigned_flag)
                                           ^
../../gcc/c-family/cilk.c:113:9: note: in expansion of macro 'EXPR_CILK_SPAWN'
          EXPR_CILK_SPAWN (fcall) = 1;
          ^
../../gcc/tree.h:901:42: error: 'tree_check2' was not declared in this scope
                  CALL_EXPR, AGGR_INIT_EXPR)->base.u.bits.unsigned_flag)
                                           ^
../../gcc/c-family/cilk.c:115:9: note: in expansion of macro 'EXPR_CILK_SPAWN'
          EXPR_CILK_SPAWN (TREE_OPERAND (fcall, 1)) = 1;
          ^

Andreas.


Sorry T_T.  I've made a stupid mistake in tree.h.

Let's apply following patch, and alert the RM when backporting r247446.

2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>

	* tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
	function tree_check2.
THanks.  Installed.

jeff


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