[PATCH] Revamp documentation for _Complex types extension

2022-01-02 Thread apinski--- via Gcc-patches
From: Andrew Pinski While cleaning up the bug database, I noticed there was a request to improve the documentation of the _Complex type extensions. So I rewrote part of the documentation to make things clearer on __real/__imag and even added documentation about casts between the scalar and the

[PATCH] i386: Introduce V2QImode vectorized arithmetic [PR103861]

2022-01-02 Thread Uros Bizjak via Gcc-patches
On Thu, Dec 30, 2021 at 3:45 PM Uros Bizjak wrote: > > This patch adds basic V2QImode infrastructure and V2QImode arithmetic > operations (plus, minus and neg). The patched compiler can emit SSE > vectorized QImode operations (e.g. PADDB) with partial QImode vector, > and also synthesized double

Re: [PATCH] Fortran: fix PR103390, ICE in gimplification

2022-01-02 Thread Harald Anlauf via Gcc-patches
Hi Sandra, Am 02.01.22 um 19:32 schrieb Sandra Loosemore: This patch is for PR103390.  For background on this issue, the Fortran standard requires that, when passing a non-contiguous array from Fortran to a BIND(C) function with the CONTIGUOUS attribute on the corresponding dummy argument, the

[COMMITTED] hppa: Adjust shadd-2 and shadd-3 scan counts

2022-01-02 Thread John David Anglin
Fixes shadd-2.c and shadd-3.c test fails on trunk. Committed to trunk. Dave --- Adjust shadd-2 and shadd-3 scan counts. 2022-01-02 John David Anglin gcc/testsuite/ChangeLog: * gcc.target/hppa/shadd-2.c: Adjust count to 3. * gcc.target/hppa/shadd-3.c: Likewise. diff --git

[COMMITTED] hppa: Skip gcc.dg/guality/example.c on hppa-linux

2022-01-02 Thread John David Anglin
This test hangs on hppa-linux. Don't know why exactly but it seems to be a sequencing issue with gdb. The hang breaks automated builds as the test doesn't timeout. Tested on hppa-unknown-linux-gnu. Committed to trunk. Dave --- Skip gcc.dg/guality/example.c on hppa-linux. 2022-01-02 John David

[PATCH] Fortran: fix PR103390, ICE in gimplification

2022-01-02 Thread Sandra Loosemore
This patch is for PR103390. For background on this issue, the Fortran standard requires that, when passing a non-contiguous array from Fortran to a BIND(C) function with the CONTIGUOUS attribute on the corresponding dummy argument, the compiler has to arrange for it to be copied to/from a

[PATCH RFA] tree-pretty-print: still indent unhandled codes

2022-01-02 Thread Jason Merrill via Gcc-patches
It would be nice to handle language-specific codes in the tree pretty-printer, but until then we can at least indent them appropriately. Tested x86_64-pc-linux-gnu, ok for trunk? gcc/ChangeLog: * tree-pretty-print.c (do_niy): Add spc parameter. (NIY): Pass it.

[pushed] c++: fix array cleanup with throwing temp dtor

2022-01-02 Thread Jason Merrill via Gcc-patches
While working on PR66139 I noticed that if the destructor of a temporary created during array initialization throws, we were failing to destroy the last array element constructed. Throwing destructors are rare since C++11, but this should be fixed. Tested x86_64-pc-linux-gnu, applying to trunk.

[pushed] c++: don't wrap cleanups that can't throw

2022-01-02 Thread Jason Merrill via Gcc-patches
Since C++11, the vast majority of destructors are noexcept, so wrap_temporary_cleanups adds a bunch of useless TRY_CATCH_EXPR to be removed later in the optimizers. It's simple to avoid adding them in the first place. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog: *

[COMMITTED] hppa: Generate illegal instruction fault if LWS syscall returns -EFAULT

2022-01-02 Thread John David Anglin
The kernel compare and exchange calls will never succeed if they return -EFAULT. This change generates an instruction fault if a call returns -EFAULT. This prevents the code from spinning forever. Tested on hppa-unknown-linux-gnu. Committed to trunk and gcc-11 branch. Dave --- Generate illegal

[COMMITTED] hppa: Use optab_libfunc to access sync_lock_test_and_set libfunc

2022-01-02 Thread John David Anglin
This patch revises the atomic store code for hppa-linux to use optab_libfunc to access the sync_lock_test_and_set libfunc. We now call convert_memory_address() to convert the memory address to Pmode. This should handle more memory addresses. Tested on hppa-unknown-linux-gnu. Committed to trunk

[PATCH] libgo: include asm/ptrace.h for pt_regs definition on PowerPC

2022-01-02 Thread soeren--- via Gcc-patches
From: Sören Tempel Both glibc and musl libc declare pt_regs as an incomplete type. This type has to be completed by inclusion of another header. On Linux, the asm/ptrace.h header file provides this type definition. Without including this header file, it is not possible to access the regs member

[PATCH] Fortran: make IEEE_CLASS recognize signaling NaNs

2022-01-02 Thread FX via Gcc-patches
Hi, This is the first part of a three-patch series to fix PR 82207 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82207), making gfortran handle signaling NaNs. This part fixes the library code implementing IEEE_CLASS, by using the issignaling macro (from TS 18661-1:2014) to check whether a NaN