Re: [PATCH] c++: Fix further protected_set_expr_location related -fcompare-debug issues [PR94441]

2020-04-03 Thread Jason Merrill via Gcc-patches
On 4/2/20 3:48 AM, Jakub Jelinek wrote: Hi! My recent protected_set_expr_location changes work well when that function is called unconditionally, but as the testcase shows, the C++ FE has a few spots that do: if (!EXPR_HAS_LOCATION (stmt)) protected_set_expr_location (stmt, locus); or

[PATCH] c++: Fix further protected_set_expr_location related -fcompare-debug issues [PR94441]

2020-04-02 Thread Jakub Jelinek via Gcc-patches
Hi! My recent protected_set_expr_location changes work well when that function is called unconditionally, but as the testcase shows, the C++ FE has a few spots that do: if (!EXPR_HAS_LOCATION (stmt)) protected_set_expr_location (stmt, locus); or similar. Now, if we have for -g0 stmt of