This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH] Properly check for _Cilk_spawn in return stmt (PR c/60197)
- From: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 18 Feb 2014 22:06:14 +0000
- Subject: RE: [PATCH] Properly check for _Cilk_spawn in return stmt (PR c/60197)
- Authentication-results: sourceware.org; auth=none
- References: <20140217174230 dot GG8907 at redhat dot com> <BF230D13CA30DD48930C31D4099330003A4CEFF5 at FMSMSX101 dot amr dot corp dot intel dot com> <20140217203351 dot GH8907 at redhat dot com>
> Yeah, it passed regtesting. Note that we also ICE on e.g.
> int
> foo (void)
> {
> int i;
> i = (_Cilk_spawn foo ()) + 1;
> return i;
> }
>
> I don't know whether this is valid use of _Cilk_spawn though. In any case,
> this patch addresses only _Cilk_spawn in return statements.
This is invalid.
Thanks,
Balaji V. Iyer.