Re: [PATCH] coroutines: Fix STRIP_NOPS usage.

2020-04-20 Thread Nathan Sidwell
On 4/20/20 2:25 PM, Marek Polacek wrote: parm = STRIP_NOPS (parm); is unnecessary and generates warning: operation on 'parm' may be undefined [-Wsequence-point] when cp/coroutines.cc is compiled with -std=c++11. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? yup, thanks for catch

[PATCH] coroutines: Fix STRIP_NOPS usage.

2020-04-20 Thread Marek Polacek via Gcc-patches
parm = STRIP_NOPS (parm); is unnecessary and generates warning: operation on 'parm' may be undefined [-Wsequence-point] when cp/coroutines.cc is compiled with -std=c++11. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? * coroutines.cc (captures_temporary): Don't assign the re