public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH coroutines] Set side effects flag for BIND_EXPR which build in maybe_promote_captured_temps
@ 2020-02-11  2:50 JunMa
  2020-02-11  8:45 ` JunMa
  2020-02-27  2:17 ` [PING PATCH " JunMa
  0 siblings, 2 replies; 6+ messages in thread
From: JunMa @ 2020-02-11  2:50 UTC (permalink / raw)
  To: gcc-patches; +Cc: Iain Sandoe, Nathan Sidwell

Hi
As title. in maybe_promote_captured_temps, we promote captured temporaries
and co_await_expr into a new BIND_EXPR. As the BIND_EXPR contains
co_await_expr and maybe other function calls, the side effects flag should
be set.

This patch fix one mismatch in cppcoro, the testcase comes from cppcoro
and is reduced by creduce.

Bootstrap and test on X86_64, is it OK?

Regards
JunMa

gcc/cp
2020-02-11  Jun Ma <JunMa@linux.alibaba.com>

         * coroutines.cc (maybe_promote_captured_temps): Set side effects
         flag for BIND_EXPR.

gcc/testsuite
2020-02-11  Jun Ma <JunMa@linux.alibaba.com>

         * g++.dg/coroutines/torture/lambda-10-co-await-lambda.C: New test.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-06  5:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-11  2:50 [PATCH coroutines] Set side effects flag for BIND_EXPR which build in maybe_promote_captured_temps JunMa
2020-02-11  8:45 ` JunMa
2020-02-27  2:17 ` [PING PATCH " JunMa
2020-03-05 11:55   ` JunMa
2020-03-05 13:52     ` Iain Sandoe
2020-03-06  5:44       ` JunMa

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).