Re: [PATCH] c-family: Add __builtin_assoc_barrier

2021-07-20 Thread Jason Merrill via Gcc-patches
On 7/19/21 8:34 AM, Richard Biener wrote: On Mon, 19 Jul 2021, Matthias Kretz wrote: tested on x86_64-pc-linux-gnu with no new failures. OK for master? I think now that PAREN_EXPR can appear in C++ code you need to adjust some machiner to expect it (constexpr folding? template stuff?). I sug

Re: [PATCH] c-family: Add __builtin_assoc_barrier

2021-07-19 Thread Richard Biener
On Mon, 19 Jul 2021, Matthias Kretz wrote: > tested on x86_64-pc-linux-gnu with no new failures. OK for master? I think now that PAREN_EXPR can appear in C++ code you need to adjust some machiner to expect it (constexpr folding? template stuff?). I suggest to add some testcases covering template

[PATCH] c-family: Add __builtin_assoc_barrier

2021-07-19 Thread Matthias Kretz
tested on x86_64-pc-linux-gnu with no new failures. OK for master? New builtin to enable explicit use of PAREN_EXPR in C & C++ code. Signed-off-by: Matthias Kretz gcc/testsuite/ChangeLog: * c-c++-common/builtin-assoc-barrier-1.c: New test. gcc/cp/ChangeLog: * cp-objcp-common.