[PATCH] this patch modify an unused variable in aarch64-unwind.h

2020-09-13 Thread Wei Wentao
Hi, This patch modify an unused variable in aarch64-unwing.h because the warning says "unused parameter 'fs'". Weiwt regards! --- libgcc/config/aarch64/aarch64-unwind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/config/aarch64/aarch64-unwind.h

[PATCH] Fix overflow handling in std::align

2020-09-13 Thread Glen Fernandes via Gcc-patches
Fix overflow handling in align 2020-09-12 Glen Joseph Fernandes * include/bits/align.h (align): Fix overflow handling. * testsuite/20_util/align/3.cc: New tests. Tested x86_64-pc-linux-gnu. commit 1c560175f38c6b108f80ffcf94d4cd956ef66604 Author: Glen Joseph Fernandes Date:

Ping: [PATCH 1/2] Fold plusminus_mult expr with multi-use operands (PR 94234)

2020-09-13 Thread Feng Xue OS via Gcc-patches
Thanks, Feng From: Feng Xue OS Sent: Thursday, September 3, 2020 2:06 PM To: gcc-patches@gcc.gnu.org Subject: [PATCH 1/2] Fold plusminus_mult expr with multi-use operands (PR 94234) For pattern A * C +- B * C -> (A +- B) * C, simplification is disabled

Ping: [PATCH 2/2 V3] Simplify plusminus-mult-with-convert expr in forwprop (PR 94234)

2020-09-13 Thread Feng Xue OS via Gcc-patches
Thanks, Feng From: Feng Xue OS Sent: Thursday, September 3, 2020 5:29 PM To: Richard Biener; gcc-patches@gcc.gnu.org Subject: Re: [PATCH 2/2 V3] Simplify plusminus-mult-with-convert expr in forwprop (PR 94234) Attach patch file. Feng

[PATCH] Put absolute address jump table in data.rel.ro.local if targets support relocations

2020-09-13 Thread HAO CHEN GUI via Gcc-patches
Hi,   Jump tables are put into text or rodata section originally. On some platforms, it gains the performance benefit from absolute address jump tables. So I want to let absolute address jump table be relocatable.  This patch puts absolute jump table in read only relocation section if the

[PATCH] PR fortran/90903 [part2] Add runtime checking for the MVBITS intrinsic

2020-09-13 Thread Harald Anlauf
Dear all, finally here comes the second part of runtime checks for the bit manipulation intrinsics, this time MVBITS. This turned out to be more elaborate than the treatment of simple function calls. I chose the path to inline expand MVBITS, which enables additional optimization opportunities

Re: [PATCH] hppa64: Improve hppa_rtx_costs for DImode shifts by constants.

2020-09-13 Thread John David Anglin
Hi Roger, On 2020-09-07 3:59 p.m., Roger Sayle wrote: > 2020-09-07 Roger Sayle > > gcc/ChangeLog > * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]: > Provide accurate costs for DImode shifts of integer constants. I committed this change.  However, it doesn't fix PR

Re: [PATCH] libstdc++: use a link test to test for -Wl,-z,relro

2020-09-13 Thread JonY via Gcc-patches
On 9/10/20 2:23 PM, JonY wrote: > Do a link test instead of just a grep. The linker can > support multiple targets, but not all targets can use it. > > Cygwin/MinGW ld can support ELF but the PE format for Windows itself > does not support such a feature. Attached patch OK? > > I'm not confident

[PATCH] mixing of labels and code in C2X

2020-09-13 Thread Uecker, Martin
Hi Joseph, here is the (unfinished) patch to support mixing of labels in C2X. I preserved existing tests by adding "-std=c17 -pedantic-error" So far, I haven't figured out how to fix the OpenMP related warning in 'gcc.dg/gomp/barrier-2.c'. Best, Martin diff --git a/gcc/c/c-parser.c

[PATCH] arm: Fix up gcc.target/arm/lto/pr96939_* FAIL - alternate version

2020-09-13 Thread Jakub Jelinek via Gcc-patches
Hi! The large patch for opts_set saving/restoring doesn't seem to be desirable for backporting (it can be backported and I've even tested it in gcc 10, but it is too large), so this patch instead provides a target only fix. As opts_set can't be trusted, it uses TargetVariables to record whether

[PATCH] arm: Fix up gcc.target/arm/lto/pr96939_* FAIL

2020-09-13 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch on top of the https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553801.html patch fixes the gcc.target/arm/lto/pr96939_* test in certain ARM configurations. As said in the above mentioned patch, the generic code takes care of saving/restoring TargetVariables or

[PATCH] options, lto: Optimize streaming of optimization nodes

2020-09-13 Thread Jakub Jelinek via Gcc-patches
Hi! When working on the previous patch, I've noticed that all cl_optimization fields appart from strings are streamed with bp_pack_value (..., 64); so we waste quite a lot of space, given that many of the options are just booleans or char options and there are 450-ish of them. Fixed by streaming

[PATCH] options: Save and restore opts_set for Optimization and Target options

2020-09-13 Thread Jakub Jelinek via Gcc-patches
On Fri, Sep 11, 2020 at 11:29:52AM +0200, Jakub Jelinek via Gcc-patches wrote: > On Fri, Sep 11, 2020 at 09:46:37AM +0200, Christophe Lyon via Gcc-patches > wrote: > > I'm seeing an ICE with this new test on most of my arm configurations, > > for instance: > > --target arm-none-linux-gnueabi