Re: [committed] libstdc++: Fix value categories used by ranges access CPOs [PR 100824]

2021-06-05 Thread Jonathan Wakely via Gcc-patches
On 04/06/21 21:46 +0100, Jonathan Wakely wrote: On 04/06/21 21:44 +0100, Jonathan Wakely wrote: On 04/06/21 18:03 +0100, Jonathan Wakely wrote: The implementation of P2091R0 was incomplete, so that some range access CPOs used perfect forwarding where they should not. This fixes it by consistent

Re: [Patch, fortran] PR fortran/100120/100816/100818/100819/100821 problems raised by aggregate data types

2021-06-05 Thread dhumieres.dominique--- via Gcc-patches
Since the PRs are about wrong code, I think the patch should be back ported to at least GCC11. Dominique Le 2021-06-04 17:24, Paul Richard Thomas a écrit : Hi José, I can second Dominique's thanks. I applied it to my tree when you first posted, set the regtest in motion and have not been able

[Patch, Fortran, backport 2 gcc-11] PR98301 Re: RANDOM_INIT() and coarray Fortran

2021-06-05 Thread Andre Vehreschild via Gcc-patches
Hi all, I was asked to backport the patch for pr98301 to gcc-11. The patches have been in mainline for two weeks without any defect reports I could fined. The patch for mainline applied with a bit of shift cleanly. Regstested fine on x86_64/f33. Ok for backport gcc-11? Regards, Andre --

[PATCH v2 1/2] Allow vec_duplicate_optab to fail

2021-06-05 Thread H.J. Lu via Gcc-patches
Update vec_duplicate to allow to fail so that backend can only allow broadcasting an integer constant to a vector when broadcast instruction is available. * expr.c (store_constructor): Replace expand_insn with maybe_expand_insn for vec_duplicate_optab. * doc/md.texi: Update

[PATCH v2 0/2] Allow vec_duplicate_optab to fail

2021-06-05 Thread H.J. Lu via Gcc-patches
We'd like to add vec_duplicate_optab to x86 backend. There are 3 ways to broadcast an integer constant: 1. Load the full size from constant pool directly. 2. Use AVX2/AVX512 broadcast instruction. 3. Emulate broadcast with SSE2 unpack and shuffle instructions. A small benchmark: https://gitlab.

[PATCH v2 2/2] x86: Convert CONST_WIDE_INT/CONST_VECTOR to broadcast

2021-06-05 Thread H.J. Lu via Gcc-patches
1. Update move expanders to convert the CONST_WIDE_INT and CONST_VECTO operands to vector broadcast from an integer with AVX2. 2. Add ix86_gen_scratch_sse_rtx to return a scratch SSE register which won't increase stack alignment requirement and blocks transformation by the combine pass. 3. Add vec_

[committed] libiberty: Use libiberty snprintf and vsnprintf on hppa*-*-hpux*

2021-06-05 Thread John David Anglin
A recent change to gcc/c-family/c-attribs.c uses a c99 feature not supported by most system versions of snprintf on hppa*-*-hpux*. This change fixes the build. Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11. Committed to trunk. libiberty/ChangeLog: PR target/100734

Re: [Patch, Fortran, backport 2 gcc-11] PR98301 Re: RANDOM_INIT() and coarray Fortran

2021-06-05 Thread Steve Kargl via Gcc-patches
On Sat, Jun 05, 2021 at 04:04:51PM +0200, Andre Vehreschild wrote: > > I was asked to backport the patch for pr98301 to gcc-11. The patches have > been in mainline for two weeks without any defect reports I could fined. The > patch for mainline applied with a bit of shift cleanly. > > Regstested

Re: [PATCH] c++: access of dtor named by qualified template-id [PR100918]

2021-06-05 Thread Jason Merrill via Gcc-patches
On 6/4/21 5:08 PM, Patrick Palka wrote: Here, when resolving the destructor named by Inner::~Inner (which is valid only before C++20) we end up in cp_parser_lookup_name to look up the name Inner relative to the scope Inner. The lookup naturally finds the injected-class-name Inner, and because is