[committed] libphobos: Fix executables segfault on mipsel architecture

2021-01-23 Thread Iain Buclaw via Gcc-patches
Hi, This patch fixes an issue running programs linked to the shared libphobos library on MIPS. The dynamic section on MIPS is read-only, but this was not properly handled in the runtime library. Bootstrapped and regression tested on mipsel-linux-gnu, and committed to mainline with backports to t

Re: [PATCH] testsuite: Fix sse2-andnpd-1.c and sse-andnps-1.c testscases on powerpc

2021-01-23 Thread Segher Boessenkool
Hi! On Sat, Jan 23, 2021 at 09:41:23AM +0100, Jakub Jelinek wrote: > On Fri, Jan 22, 2021 at 06:56:37PM -0600, Segher Boessenkool wrote: > > So what is the actual error here? This whole union stuff is because we > > *do* want proper aliasing, afaics. > > The reading through union is not where th

[Patch, fortran] PR98573 - Dynamic type lost on assignment

2021-01-23 Thread Paul Richard Thomas via Gcc-patches
This is a relatively obvious patch. The chunk in trans-array.c is not part of the fix for the PR but does suppress some of the bad dtype's that arise from allocation of class objects. The part in trans-stmt.c provides vptrs for all class allocations if the expression3 is available. Regtests on FC3

Re: [PATCH] testsuite: Fix sse2-andnpd-1.c and sse-andnps-1.c testscases on powerpc

2021-01-23 Thread Jakub Jelinek via Gcc-patches
On Fri, Jan 22, 2021 at 06:56:37PM -0600, Segher Boessenkool wrote: > On Fri, Jan 22, 2021 at 08:02:28PM +0100, Jakub Jelinek wrote: > > On Mon, Sep 21, 2020 at 10:12:20AM +0200, Richard Biener wrote: > > > On Mon, 21 Sep 2020, Jan Hubicka wrote: > > > > these testcases now fails because they conta

[PATCH] aarch64: Tighten up checks for ubfix [PR98681]

2021-01-23 Thread Jakub Jelinek via Gcc-patches
Hi! The testcase in the patch doesn't assemble, because the instruction requires that the penultimate operand (lsb) range is [0, 32] (or [0, 64]) and the last operand's range is [1, 32 - lsb] (or [1, 64 - lsb]). The INTVAL (shft_amnt) < GET_MODE_BITSIZE (mode) will accept the lsb operand to be in