public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/59309] FAIL: c-c++-common/cilk-plus/CK/spawnee_inline.c -g -fcilkplus (test for excess errors) Date: Wed, 27 Nov 2013 13:20:00 -0000 [thread overview] Message-ID: <bug-59309-4-shEigz80px@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-59309-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59309 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bviyer at gmail dot com --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> --- There are /* This should give the number of parameters. */ total_args = list_length (new_args); arg_array = XNEWVEC (tree, total_args); ii_args = new_args; for (ii = 0; ii < total_args; ii++) { arg_array[ii] = TREE_VALUE (ii_args); ii_args = TREE_CHAIN (ii_args); } TREE_USED (function) = 1; rest_of_decl_compilation (function, 0, 0); call1 = cilk_call_setjmp (cfun->cilk_frame_decl); if (*arg_array == NULL_TREE) call2 = build_call_expr (function, 0); else call2 = build_call_expr_loc_array (EXPR_LOCATION (*spawn_p), function, total_args, arg_array); When total_args == 0, XNEWVEC (tree, total_args) doesn't return NULL and "*arg_array" will be wrong.
next prev parent reply other threads:[~2013-11-27 13:20 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-11-27 12:34 [Bug middle-end/59309] New: " hjl.tools at gmail dot com 2013-11-27 13:17 ` [Bug middle-end/59309] " hjl.tools at gmail dot com 2013-11-27 13:20 ` hjl.tools at gmail dot com [this message] 2013-11-28 16:06 ` [Bug c/59309] " hjl.tools at gmail dot com 2013-11-29 13:22 ` hjl.tools at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-59309-4-shEigz80px@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).