[PATCH] c++: P2360R0: Extend init-stmt to allow alias-decl [PR102617]

2021-10-21 Thread Marek Polacek via Gcc-patches
The following patch implements C++23 P2360R0. This proposal merely extends init-statement to contain alias-declaration. init-statement is used in if/for/switch. The unsightly duplication of the new code seems to be necessary to handle for ( init-statement condition[opt] ; expression[opt] ) st

Re: [PATCH] Possible use before def in fortran/trans-decl.c.

2021-10-21 Thread Martin Sebor via Gcc-patches
On 10/21/21 1:02 PM, Andrew MacLeod via Gcc-patches wrote: As I'm tweaking installing ranger as the VRP2 pass, I am getting a stage 2 bootstrap failure now: In file included from /opt/notnfs/amacleod/master/gcc/gcc/fortran/trans-decl.c:28: /opt/notnfs/amacleod/master/gcc/gcc/tree.h: In functio

Re: [PATCH] c++: P2360R0: Extend init-stmt to allow alias-decl [PR102617]

2021-10-21 Thread Jason Merrill via Gcc-patches
On 10/21/21 16:26, Marek Polacek wrote: The following patch implements C++23 P2360R0. This proposal merely extends init-statement to contain alias-declaration. init-statement is used in if/for/switch. The unsightly duplication of the new code seems to be necessary to handle for ( init-stat

[PATCH v2] c++tools: Fix memory leak

2021-10-21 Thread Jonathan Wakely via Gcc-patches
On Thu, 21 Oct 2021 at 20:38, Jason Merrill wrote: > On 10/21/21 09:28, Jonathan Wakely wrote: > > #else > > buffer = xmalloc (stat.st_size); > > if (!buffer) > > return -errno; > > + struct Deleter { void operator()(void* p) const { free(p); } }; > > + std::unique_ptr guard; > >

Fwd: [committed] libstdc++: Suppress Doxygen docs for more implementation details

2021-10-21 Thread Jonathan Wakely via Gcc-patches
I messed up the CC to gcc-patches for this ... -- Forwarded message - From: Jonathan Wakely via Libstdc++ Date: Thu, 21 Oct 2021 at 22:56 Subject: [committed] libstdc++: Suppress Doxygen docs for more implementation details To: , Tested x86_64-linux, committed to trunk. libstd

Fwd: [committed] libstdc++: Add Doxygen comments to contents of

2021-10-21 Thread Jonathan Wakely via Gcc-patches
I messed up the CC to gcc-patches for this ... -- Forwarded message - From: Jonathan Wakely via Libstdc++ Date: Thu, 21 Oct 2021 at 22:57 Subject: [committed] libstdc++: Add Doxygen comments to contents of To: , Tested x86_64-linux, committed to trunk. libstdc++-v3/ChangeLog:

[PATCH v2] c++: P2360R0: Extend init-stmt to allow alias-decl [PR102617]

2021-10-21 Thread Marek Polacek via Gcc-patches
On Thu, Oct 21, 2021 at 04:56:57PM -0400, Jason Merrill wrote: > On 10/21/21 16:26, Marek Polacek wrote: > > The following patch implements C++23 P2360R0. This proposal merely > > extends init-statement to contain alias-declaration. init-statement > > is used in if/for/switch. The unsightly dupl

Fwd: [committed] libstdc++: Improve generated man pages for libstdc++

2021-10-21 Thread Jonathan Wakely via Gcc-patches
I messed up the CC to gcc-patches for this. And I forgot to mention in the commit msg that the reason I started looking at stdheader.cc in the first place was to fix a use-after-free bug in the old code: -// come on, gdb, find `p' already... -const char* p = longheader.substr(start).c_str

Re: [PATCH] hardened conditionals

2021-10-21 Thread Alexandre Oliva via Gcc-patches
On Oct 20, 2021, Alexandre Oliva wrote: > I suppose it's a latent issue exposed by the patch, I was mistaken. Though I even had bisected the -fcompare-debug problem back to a patch from back in May, that added a new sink_code pass before store_merging, it was actually a bug in my patch, it was

[PATCH, Fortran] Add testcase for PR100906

2021-10-21 Thread Sandra Loosemore
PR100906 ("Bind(c): failure handling character with len/=1") has been fixed by Tobias's rewrite of the GFC <-> C descriptor conversions. I'd like to add José's testcase for that issue before closing it. OK? -Sandra commit 4c2fa9cf74162015710ccfd913c827779151aa52 Author: Sandra Loosemore Date

Re: Ping^3: [PATCH v2 0/2] Fix vec_sel code generation and merge xxsel to vsel

2021-10-21 Thread Xionghu Luo via Gcc-patches
Ping^3, thanks. https://gcc.gnu.org/pipermail/gcc-patches/2021-September/579637.html On 2021/10/15 14:28, Xionghu Luo via Gcc-patches wrote: > Ping^2, thanks. > > https://gcc.gnu.org/pipermail/gcc-patches/2021-September/579637.html > > > On 2021/10/8 09:17, Xionghu Luo via Gcc-patches wrote:

Re: [PATCH] Try to resolve paths in threader without looking further back.

2021-10-21 Thread Jeff Law via Gcc-patches
On 10/21/2021 4:15 AM, Aldy Hernandez wrote: On Wed, Oct 20, 2021 at 10:19 PM Jeff Law wrote: So we want to keep some form of ssa-dom-thread-7. That' s the canonical testcase for the case for the FSM optimization. What we need to verify is that we thread jumps across the backedge of the lo

Re: [PATCH] Try to resolve paths in threader without looking further back.

2021-10-21 Thread Aldy Hernandez via Gcc-patches
On Fri, Oct 22, 2021, 05:34 Jeff Law wrote: > > > On 10/21/2021 4:15 AM, Aldy Hernandez wrote: > > On Wed, Oct 20, 2021 at 10:19 PM Jeff Law wrote: > >> So we want to keep some form of ssa-dom-thread-7. That' s the canonical > >> testcase for the case for the FSM optimization. > >> > >> What we

Re: [PATH][_GLIBCXX_DEBUG] Fix unordered container merge

2021-10-21 Thread François Dumont via Gcc-patches
On 21/10/21 6:55 pm, Jonathan Wakely wrote: On Thu, 21 Oct 2021 at 17:52, François Dumont > wrote: I eventually would like to propose a different approach. I am adding a hook in normal implementation to let the _GLIBCXX_DEBUG code know when a node is

[PATCH] Canonicalize __atomic/sync_fetch_or/xor/and for constant mask.

2021-10-21 Thread liuhongt via Gcc-patches
Hi: This patch is try to canoicalize bit_and and nop_convert order for __atomic_fetch_or_*, __atomic_fetch_xor_*, __atomic_xor_fetch_*,__sync_fetch_and_or_*, __sync_fetch_and_xor_*,__sync_xor_and_fetch_*, __atomic_fetch_and_*,__sync_fetch_and_and_* when mask is constant. .i.e. +/* Canonicalize +

[PATCH] i386: Combine the FADD(A, FMA(B, C, 0)) to FMA(B, C, A) and combine FADD(A, FMUL(B, C)) to FMA(B, C, A).

2021-10-21 Thread Kong, Lingling via Gcc-patches
Hi, This patch is to support transform in fast-math something like _mm512_add_ph(x1, _mm512_fmadd_pch(a, b, _mm512_setzero_ph())) to _mm512_fmadd_pch(a, b, x1). And support transform _mm512_add_ph(x1, _mm512_fmul_pch(a, b)) to _mm512_fmadd_pch(a, b, x1). Ok for master? gcc/ChangeLog:

Re: [PATCH, Fortran] Add testcase for PR100906

2021-10-21 Thread Thomas Koenig via Gcc-patches
Hi Sandra, PR100906 ("Bind(c): failure handling character with len/=1") has been fixed by Tobias's rewrite of the GFC <-> C descriptor conversions.  I'd like to add José's testcase for that issue before closing it.  OK? OK. I think adding undisputed passing test cases from PRs for somethin

<    1   2