Re: [PATCH, V2] Add conversions between _Float128 and Decimal.

2021-02-20 Thread Segher Boessenkool
Hi! On Tue, Feb 09, 2021 at 02:35:05AM -0500, Michael Meissner wrote: > This patch implements conversions between _Float128 and the 3 Decimal floating > types. It does this by extendending the dfp-bit conversions to add a new > binary floating point type (KF), and doing the conversions in the

[PATCH v2 5/5] RISC-V: Update shift-shift-5.c testcase for big endian

2021-02-20 Thread Marcus Comstedt
gcc/ * testsuite/gcc.target/riscv/shift-shift-5.c (sub): Change order of struct fields depending on byteorder. --- gcc/testsuite/gcc.target/riscv/shift-shift-5.c | 4 1 file changed, 4 insertions(+) diff --git a/gcc/testsuite/gcc.target/riscv/shift-shift-5.c

[PATCH v2 4/5] RISC-V: Fix trampoline generation on big endian

2021-02-20 Thread Marcus Comstedt
gcc/ * config/riscv/riscv.c (riscv_swap_instruction): New function to byteswap an SImode rtx containing an instruction. (riscv_trampoline_init): Byteswap the generated instructions when needed. --- gcc/config/riscv/riscv.c | 19 +++ 1 file changed,

[PATCH v2 3/5] RISC-V: Update soft-fp config for big-endian

2021-02-20 Thread Marcus Comstedt
libgcc/ * config/riscv/sfp-machine.h (__BYTE_ORDER): Set according to __BYTE_ORDER__. --- libgcc/config/riscv/sfp-machine.h | 4 1 file changed, 4 insertions(+) diff --git a/libgcc/config/riscv/sfp-machine.h b/libgcc/config/riscv/sfp-machine.h index db2697157ce..8adbf4b8b2e

[PATCH v2 2/5] RISC-V: Add riscv{32,64}be with big endian as default

2021-02-20 Thread Marcus Comstedt
gcc/ * common/config/riscv/riscv-common.c (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness. * config.gcc (riscv32be-*, riscv64be-*): Set TARGET_BIG_ENDIAN_DEFAULT to 1. * config/riscv/elf.h (LINK_SPEC): Change -melf* value depending on default

[PATCH v2 1/5] RISC-V: Support -mlittle-endian and -mbig-endian

2021-02-20 Thread Marcus Comstedt
gcc/ * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag. * config/riscv/freebsd.h (LINK_SPEC): Likewise. * config/riscv/linux.h (LINK_SPEC): Likewise. * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and -mlittle-endian.

[PATCH v2 0/5] RISC-V big endian support

2021-02-20 Thread Marcus Comstedt
This is an update to the patch series for big endian RISC-V support. Changes since last version: * Added documentation of -mbig-endian and -mlittle-endian * New patch: Fix soft-fp endianness setting * New patch: Fix trampoline generation on big endian * New patch: Update the

Re: [PATCH] libgccjit: Handle truncation and extension for casts [PR 95498]

2021-02-20 Thread Antoni Boucher via Gcc-patches
Hi. Thanks for your feedback! See answers below: On Sat, Feb 20, 2021 at 11:20:35AM -0700, Tom Tromey wrote: "Antoni" == Antoni Boucher via Gcc-patches writes: Antoni> gcc/jit/ Antoni> PR target/95498 Antoni> * jit-playback.c: Add support to handle truncation and extension Antoni>

Re: [PATCH] PR fortran/99169 - [9/10/11 Regression] Segfault when passing allocatable scalar into intent(out) dummy argument

2021-02-20 Thread Tobias Burnus
Dear Harald, On 19.02.21 22:16, Harald Anlauf via Fortran wrote: we should not clobber the pointer in case of an allocatable scalar being an intent(out) dummy argument to a procedure. Regtested on x86_64-pc-linux-gnu. OK for master? Since this is a regression, also for backports to 10/9? OK

Re: [PATCH] libgccjit: Handle truncation and extension for casts [PR 95498]

2021-02-20 Thread Tom Tromey
> "Antoni" == Antoni Boucher via Gcc-patches > writes: Antoni> gcc/jit/ Antoni> PR target/95498 Antoni> * jit-playback.c: Add support to handle truncation and extension Antoni> in the convert function. Antoni> + switch (dst_code) Antoni> +{ Antoni> +

Re: [PATCH 0/2] RISC-V big endian support

2021-02-20 Thread Marcus Comstedt
Hi Kito, Kito Cheng writes: > I tried to run with gcc testsuite on spike + pk, seems got a bunch > extra fail cases, > could you take a look for that? Looking at it now. I'm getting a large number of failures in floating point tests, which turn out to be due to a newlib problem;

Re: [PATCH v7] Add retain attribute to place symbols in SHF_GNU_RETAIN section

2021-02-20 Thread H.J. Lu via Gcc-patches
On Sat, Feb 20, 2021 at 1:49 AM Andreas Schwab wrote: > > FAIL: c-c++-common/attr-retain-5.c -Wc++-compat (test for excess errors) > Excess errors: > /opt/gcc/gcc-20210220/gcc/testsuite/c-c++-common/attr-retain-5.c:23:1: > warning: 'retain' attribute ignored [-Wattri

[PATCH] Fix ICE in tree_inlinable_function_p.

2021-02-20 Thread Martin Liška
After g:1a2a7096e5e20d736c6138179470b21aa5a74864 we forbid inlining for a VLA types. What we miss is setting inline_forbidden_reason variable. Fixes: ./xgcc -B. -O3 -c /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr99122-2.c -Winline during GIMPLE pass: local-fnsummary

Re: [PATCH v7] Add retain attribute to place symbols in SHF_GNU_RETAIN section

2021-02-20 Thread Andreas Schwab
FAIL: c-c++-common/attr-retain-5.c -Wc++-compat (test for excess errors) Excess errors: /opt/gcc/gcc-20210220/gcc/testsuite/c-c++-common/attr-retain-5.c:23:1: warning: 'retain' attribute ignored [-Wattributes] Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47

[PATCH] libstdc++: Fix up parallel_backend_serial.h [PR97549]

2021-02-20 Thread Jakub Jelinek via Gcc-patches
Hi! In GCC 10, parallel_backend.h just included parallel_backend_{serial,tbb}.h and did nothing beyond that, and parallel_backend_tbb.h provided directly namespace __pstl { namespace __par_backend { ... } } and defined everything in there, while parallel_backend_serial.h did: namespace __pstl {

Re: [PATCH] libiberty: autogenerate aclocal.m4

2021-02-20 Thread Mike Frysinger via Gcc-patches
On 16 Feb 2021 11:54, Jeff Law wrote: > On 2/13/21 7:32 PM, Mike Frysinger via Gcc-patches wrote: > > Move custom macros to acinclude.m4 so we can autogenerate aclocal.m4 > > with aclocal. This matches every other project in the tree. > > > > libiberty/ChangeLog: > > > > * Makefile.in

Re: [PATCH v2 2/2] ada: add 128bit operation to MIPS N32 and N64

2021-02-20 Thread YunQiang Su
Arnaud Charlet 于2021年2月18日周四 下午4:51写道: > > > > > For MIPS N64 and N32: > > > > add GNATRTL_128BIT_PAIRS to LIBGNAT_TARGET_PAIRS > > > > add GNATRTL_128BIT_OBJS to EXTRA_GNATRTL_NONTASKING_OBJS > > > > > > > > gcc/ada/ChangeLog: > > > > PR ada/98996 > > > > * Makefile.rtl