Re: [PATCH] [PR rtl-optimization/97249]Simplify vec_select of paradoxical subreg.

2020-10-18 Thread Hongtao Liu via Gcc-patches
On Thu, Oct 15, 2020 at 8:38 PM Richard Sandiford wrote: > > Hongtao Liu via Gcc-patches writes: > > + /* Simplify vec_select of a subreg of X to just a vec_select of X > > + when X has same component mode as vec_select. */ > > + int l2; > > + if (GET_CODE (trueop0) ==

[Ada,FYI] revamp ada.numerics.aux

2020-10-18 Thread Alexandre Oliva
Instead of mapping elementary functions for all types to a single type, use the intrinsics available for the various base types. A new Ada.Numerics.Aux_Generic_Float is introduced to explicitly dispatch, based on the 'Digits attribute of the base type, to the various newly-added Aux_Short_Float,

[PATCH] coroutines: Emit error for invalid promise return types [PR97438].

2020-10-18 Thread Iain Sandoe
Hi, At one stage, use cases were proposed for allowing the promise type to contain both return_value and return_void. That was not accepted into C++20; so we should reject it as per the PR. Tested on x86_64-darwin, x86_64-linux-gnu, OK for master? (although this is technically an ‘accepts inval

[pushed] libsanitizer, Darwin, Bootstrap : Fix bootstrap on Darwin <= 15.

2020-10-18 Thread Iain Sandoe
Hi The latest upstream merge for libsanitizer introduces code that makes use of some macro values that are not available in SDKs for versions of Darwin <= 15 (macOS 10.11). [TBH, I am a bit surprised by this, I was under the impression that upstream supported versions back to Darwin11 / macOS 10

[PATCH] IBM Z: Emit vector alignment hints for strlen

2020-10-18 Thread Stefan Schulze Frielinghaus via Gcc-patches
In case the vectorized version of strlen is used, then each memory access inside the loop is 16-byte aligned. Thus add this kind of information so that vector alignment hints can later on be emitted. Bootstrapped and regtested on IBM Z. Ok for master? gcc/ChangeLog: * config/s390/s390.

Re: PING^3 [PATCH] x86: Add cmpmemsi for -minline-all-stringops

2020-10-18 Thread H.J. Lu via Gcc-patches
On Sun, Oct 18, 2020 at 8:16 AM Jan Hubicka wrote: > > > On Fri, Oct 2, 2020 at 6:21 AM H.J. Lu wrote: > > > > > > On Wed, Sep 16, 2020 at 10:07 PM H.J. Lu wrote: > > > > > > > > On Wed, Aug 19, 2020 at 6:09 AM H.J. Lu wrote: > > > > > > > > > > On Tue, May 19, 2020 at 5:14 AM H.J. Lu wrote: >

Re: PING^3 [PATCH] x86: Add cmpmemsi for -minline-all-stringops

2020-10-18 Thread Jan Hubicka
> On Fri, Oct 2, 2020 at 6:21 AM H.J. Lu wrote: > > > > On Wed, Sep 16, 2020 at 10:07 PM H.J. Lu wrote: > > > > > > On Wed, Aug 19, 2020 at 6:09 AM H.J. Lu wrote: > > > > > > > > On Tue, May 19, 2020 at 5:14 AM H.J. Lu wrote: > > > > > > > > > > On Tue, May 19, 2020 at 1:48 AM Uros Bizjak wrot

Re: *PING* [PATCH] PR libfortran/97063 - Wrong result for vector (step size is negative) * matrix

2020-10-18 Thread Thomas Koenig via Gcc-patches
Hello Harald, Early *ping*. OK for master? And backport to all open branches where it applies? OK for both. Thanks a lot for the patch! Best regards Thomas

[PATCH] arm: Fix base register when loading canary address with -msingle-pic-base [PR96828]

2020-10-18 Thread ilya Oleinik via Gcc-patches
After PR85434 code generation code with -fstack-protector and -msingle-pic-base produces canary value load with wrong pic base register (e.g. r3 instead of r9). On thumb1 targets mov insn needed to allow the base register to be used was missing. 'compute_now' in function require_pic_register doesn