[Bug middle-end/60469] simple cilk plus program ICEs

2014-09-26 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 Andi Kleen changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-05 Thread andi-gcc at firstfloor dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #1 from Andi Kleen --- I investigated this a bit. The problem is in get_chain_decl() in the nested function lowering because Cilk creates nested functions. info->outer is NULL created_nesting_tree does this for (cgn = cgn->neste

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-07 Thread izamyatin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 Igor Zamyatin changed: What|Removed |Added CC||izamyatin at gmail dot com --- Comment #2

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-09 Thread andi-gcc at firstfloor dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #3 from Andi Kleen --- I've tried a couple of things to fix this: - Fill in DECL_CONTEXT to current_fn_decl in cilk - Fill in DECL_CONTEXT for VAR_DECLs when creating the nested wrapper No banana so far. The first causes other errors

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-09 Thread izamyatin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #4 from Igor Zamyatin --- Following works for me and shows no new errors in regtesting. Not sure it is a good idea though... diff --git a/gcc/c/c-array-notation.c b/gcc/c/c-array-notation.c index 6a5631c..d7c6772 100644 --- a/gcc/c/c-

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-09 Thread andi-gcc at firstfloor dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #5 from Andi Kleen --- You're right. It works in C++. That's similar to my earlier patch, but I didn't comment out the other check like you did. If commenting out the check work it would seem right to me. Can you post it as a RFC?

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-09 Thread izamyatin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #6 from Igor Zamyatin --- Yes, I was going to post it after complete testing

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-09 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #7 from H.J. Lu --- (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.

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-09 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #8 from H.J. Lu --- (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, si

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-10 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #9 f

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-10 Thread izamyatin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #10 from Igor Zamyatin --- (In reply to Jakub Jelinek from comment #9) > (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

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-10 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #11 from Jakub Jelinek --- You need to include gimple-expr.h header for that. But, if you look e.g. at c/c-typeck.c or c-family/cilk.c, it is already used in the FEs.

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-10 Thread izamyatin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #12 from Igor Zamyatin --- Thanks, will post a patch after the testing

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-12 Thread kyukhin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #13 from Kirill Yukhin --- Author: kyukhin Date: Sat Apr 12 17:57:15 2014 New Revision: 209336 URL: http://gcc.gnu.org/viewcvs?rev=209336&root=gcc&view=rev Log: gcc/c/ PR middle-end/60469 * c-array-notation.c (fix_builtin_arra

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-12 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #14 from Jakub Jelinek --- Please don't forget to backport the Cilk+ bugfixes to 4.9 branch after 4.9.0 is released, as long as they are small and non-risky.

[Bug middle-end/60469] simple cilk plus program ICEs

2014-04-14 Thread kyukhin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 --- Comment #15 from Kirill Yukhin --- Author: kyukhin Date: Tue Apr 15 06:27:07 2014 New Revision: 209400 URL: http://gcc.gnu.org/viewcvs?rev=209400&root=gcc&view=rev Log: gcc/c/ PR middle-end/60469 * c-array-notation.c (fix_builtin_arra