[Bug middle-end/60469] simple cilk plus program ICEs
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 10 08:27:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #8)
> (In reply to H.J. Lu from comment #7)
> > (In reply to Igor Zamyatin from comment #6)
> > > Yes, I was going to post it after complete testing
> >
> > You should set DECL_SEEN_IN_BIND_EXPR_P when setting
> > DECL_CONTEXT, similar to gimple_add_tmp_var.
>
> Or we can use create_tmp_var.
That is much better idea, it will handle tons of other things, like setting
DECL_ARTIFICIAL/DECL_IGNORED_P flags etc. In C++ FE, cp-array-notation.c
apparently uses get_temp_regvar, which is also fine (but only defined in C++
FE).
More information about the Gcc-bugs
mailing list