This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][Cilkplus] Remove unwanted static chain.
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: "Iyer\, Balaji V" <balaji dot v dot iyer at intel dot com>
- Cc: "gcc-patches\ at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 08 Aug 2012 13:23:19 -0500
- Subject: Re: [PATCH][Cilkplus] Remove unwanted static chain.
- References: <BF230D13CA30DD48930C31D40993300016C4E996@FMSMSX102.amr.corp.intel.com>
- Reply-to: aldyh at redhat dot com
> Index: gcc/cp/parser.c
> ===================================================================
> --- gcc/cp/parser.c (revision 190195)
> +++ gcc/cp/parser.c (working copy)
> @@ -28351,6 +28351,13 @@
> FOR_EXPR (statement) = decl;
> CILK_FOR_GRAIN (statement) = grain;
>
> + /* If an initial value is available, and it is of type integer, then we
> + save it in CILK_FOR_INIT. */
> + if (init && TREE_TYPE (init) && INTEGRAL_TYPE_P (TREE_TYPE (init)))
> + CILK_FOR_INIT (statement) = init;
> + else
> + CILK_FOR_INIT (statement) = NULL_TREE;
> +
Shouldn't you only set this for flag_cilkplus (?), or does it need to be
set for non Cilk instances of the compiler?