Re: [PATCH] c-family: Fix PR94272 -fcompare-debug issue even for C [PR99230]

2021-03-22 Thread Jason Merrill via Gcc-patches
On 3/18/21 4:48 AM, Jakub Jelinek wrote: Hi! The following testcase results in -fcompare-debug failure. The problem is the similar like in PR94272 https://gcc.gnu.org/pipermail/gcc-patches/2020-March/542562.html When genericizing, with -g0 we have just a TREE_SIDE_EFFECTS DO_STMT in a branch of

Re: [PATCH] c-family: Fix PR94272 -fcompare-debug issue even for C [PR99230]

2021-03-20 Thread Jeff Law via Gcc-patches
On 3/18/2021 2:48 AM, Jakub Jelinek via Gcc-patches wrote: Hi! The following testcase results in -fcompare-debug failure. The problem is the similar like in PR94272 https://gcc.gnu.org/pipermail/gcc-patches/2020-March/542562.html When genericizing, with -g0 we have just a TREE_SIDE_EFFECTS DO_

[PATCH] c-family: Fix PR94272 -fcompare-debug issue even for C [PR99230]

2021-03-19 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase results in -fcompare-debug failure. The problem is the similar like in PR94272 https://gcc.gnu.org/pipermail/gcc-patches/2020-March/542562.html When genericizing, with -g0 we have just a TREE_SIDE_EFFECTS DO_STMT in a branch of if, while with -g we have that wrapped into