[PATCH] [PR107608] [range-ops] Avoid folding into INF when flag_trapping_math.

2023-01-15 Thread Aldy Hernandez via Gcc-patches
As discussed in the PR, for trapping math, do not fold overflowing operations into +-INF as doing so could elide a trap. There is a minor adjustment to known_isinf() where it was mistakenly returning true for an [infinity U NAN], whereas it should only return true when the range is exclusively +IN

[PATCH] [PR107608] [range-ops] Avoid folding into INF when flag_trapping_math.

2023-01-15 Thread Aldy Hernandez via Gcc-patches
As discussed in the PR, for trapping math, do not fold overflowing operations into +-INF as doing so could elide a trap. There is a minor adjustment to known_isinf() where it was mistakenly returning true for an [infinity U NAN], whereas it should only return true when the range is exclusively +IN

Re: [PATCH] [PR107608] [range-ops] Avoid folding into INF when flag_trapping_math.

2023-01-15 Thread Jakub Jelinek via Gcc-patches
On Sun, Jan 15, 2023 at 11:32:27AM +0100, Aldy Hernandez wrote: > As discussed in the PR, for trapping math, do not fold overflowing > operations into +-INF as doing so could elide a trap. > > There is a minor adjustment to known_isinf() where it was mistakenly > returning true for an [infinity U

[committed] libstdc++: Fix narrowing conversion in std/time/clock/utc/io.cc

2023-01-15 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux, and verified with -fsigned-char -fshort-wchar (which makes the underlying type of wchar_t be unsigned short). Nightstrike also tested on mingw-w64. Pushed to trunk. -- >8 -- For a port with signed char and unsigned wchar_t initializing a wchar_t array with a char is a narro

[committed] config-list.mk: Modernize FreeBSD targets towards version 13

2023-01-15 Thread Gerald Pfeifer
And here is a second set of changes to bring config-list.mk largely in line with the current situation on FreeBSD. (It probably makes sense to switch to, or add, powerpc64le. I'll leave that to others closer to that.) Gerald 2023-01-15 Gerald Pfeifer * config-list.mk: Update FreeB

[committed] libstdc++: Remove unconditional -pthread from test options

2023-01-15 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux. Pushed to trunk. -- >8 -- This shouldn't be in the common options, it's already added for the relevant targets using dg-additional-options. libstdc++-v3/ChangeLog: * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from dg-options. --- libstdc++-v3/

Re: [PATCH] libatomic: Use config/mingw/lock.c for --enable-threads=single

2023-01-15 Thread Jonathan Yong via Gcc-patches
On 1/14/23 20:39, Jonathan Wakely wrote: OK for trunk? Looks OK to me, thanks for the patch.

Re: libstdc++: Fix deadlock in debug iterator increment [PR108288]

2023-01-15 Thread François Dumont via Gcc-patches
Committed with the idiomatic approach. I'll work on this additional check later. On 12/01/23 22:35, Jonathan Wakely wrote: On Thu, 12 Jan 2023 at 18:25, François Dumont wrote: On 12/01/23 13:00, Jonathan Wakely wrote: On Thu, 12 Jan 2023 at 05:52, François Dumont wrote: Small update for an

[committed] libstdc++: Remove dg-xfail-run-if in std/time/tzdb_list/1.cc

2023-01-15 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux and powerpc-aix. Pushed to trunk. -- >8 -- Use the global override_used to tell whether the target supports the override functionality that the test_reload and test_erase functions rely on. libstdc++-v3/ChangeLog: * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-

Re: [PATCH] [PR107608] [range-ops] Avoid folding into INF when flag_trapping_math.

2023-01-15 Thread Aldy Hernandez via Gcc-patches
On 1/15/23 13:18, Jakub Jelinek wrote: On Sun, Jan 15, 2023 at 11:32:27AM +0100, Aldy Hernandez wrote: As discussed in the PR, for trapping math, do not fold overflowing operations into +-INF as doing so could elide a trap. There is a minor adjustment to known_isinf() where it was mistakenly

Re: [PATCH v3 2/2] aarch64: Fix bit-field alignment in param passing [PR105549]

2023-01-15 Thread Christophe Lyon via Gcc-patches
Hi! On 1/13/23 16:38, Jakub Jelinek wrote: On Wed, Jan 11, 2023 at 03:18:06PM +0100, Christophe Lyon via Gcc-patches wrote: While working on enabling DFP for AArch64, I noticed new failures in gcc.dg/compat/struct-layout-1.exp (t028) which were not actually caused by DFP types handling. These

Re: [PATCH] testsuite: Skip intrinsics test if arm

2023-01-15 Thread Torbjorn SVENSSON via Gcc-patches
On 2023-01-12 16:03, Richard Earnshaw wrote: On 19/09/2022 17:16, Torbjörn SVENSSON via Gcc-patches wrote: In the test case, it's clearly written that intrinsics is not implemented on arm*. A simple xfail does not help since there are link error and that would cause an UNRESOLVED testcase ra

[committed] wwwdocs: faq: Move c-faq.com to https

2023-01-15 Thread Gerald Pfeifer
Pushed. Gerald --- htdocs/faq.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/faq.html b/htdocs/faq.html index b09e3920..203661dc 100644 --- a/htdocs/faq.html +++ b/htdocs/faq.html @@ -13,7 +13,7 @@ This FAQ tries to answer specific questions concerning GCC. For

[committed] wwwdocs: gcc-4.5: Convert www.open-std.org links to https

2023-01-15 Thread Gerald Pfeifer
There are more; this should be the biggest chunk left, though. Gerald --- htdocs/gcc-4.5/changes.html | 4 +- htdocs/gcc-4.5/cxx0x_status.html | 124 +++ 2 files changed, 64 insertions(+), 64 deletions(-) diff --git a/htdocs/gcc-4.5/changes.html b/htdocs/gcc-4

[committed] wwwdocs: codingconventions: Adjust Intel BID library link

2023-01-15 Thread Gerald Pfeifer
Following a permanent redirect request from that server. Gerald --- htdocs/codingconventions.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/codingconventions.html b/htdocs/codingconventions.html index 348f1e1d..5519d3f9 100644 --- a/htdocs/codingconventions.html +

[committed] wwwdocs: gcc-3.4: Switch www.eclipse.org to https

2023-01-15 Thread Gerald Pfeifer
--- htdocs/gcc-3.4/changes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/gcc-3.4/changes.html b/htdocs/gcc-3.4/changes.html index aac9a245..d9985673 100644 --- a/htdocs/gcc-3.4/changes.html +++ b/htdocs/gcc-3.4/changes.html @@ -738,7 +738,7 @@ and not your code,

[PATCH] xtensa: Eliminate the use of callee-saved register that saves and restores only once

2023-01-15 Thread Takayuki 'January June' Suwa via Gcc-patches
In the case of the CALL0 ABI, values that must be retained before and after function calls are placed in the callee-saved registers (A12 through A15) and referenced later. However, it is often the case that the save and the reference are each only once and a simple register- register move. e.g. i

Re: [PATCH][pushed] contrib: add 'contrib' to default dirs in update-copyright.py

2023-01-15 Thread Andrew Pinski via Gcc-patches
On Thu, Jan 5, 2023 at 11:49 PM Martin Liška wrote: > > Hi. > > I forgot to include contrib folder in default dir, thus the copyright in the > folder > haven't been updated by Jakub. > > However, I noticed when I run ./contrib/update-copyright.py --this-year > I get much more modifications out of

[PATCH] AArch64: Gate various crypto intrinsics availability based on features

2023-01-15 Thread Tejas Belagod via Gcc-patches
The 64-bit variant of PMULL{2} and AES instructions are available if FEAT_AES is implemented according to the Arm ARM [1]. Similarly FEAT_SHA1 and FEAT_SHA256 enable the use of SHA1 and SHA256 instruction variants. This patch fixes arm_neon.h to correctly reflect the feature availability based on

Re: [PATCH] PR tree-optimization/108359 - Utilize op1 == op2 when invoking range-ops folding.

2023-01-15 Thread Richard Biener via Gcc-patches
On Fri, Jan 13, 2023 at 11:07 PM Andrew MacLeod wrote: > > > On 1/13/23 16:54, Jakub Jelinek wrote: > > On Fri, Jan 13, 2023 at 04:23:20PM -0500, Andrew MacLeod via Gcc-patches > > wrote: > >> fold_range() already invokes wi_fold_in_parts to try to get more refined > >> information. If the subran

Re: [RFC] Introduce -finline-memset-loops

2023-01-15 Thread Richard Biener via Gcc-patches
On Sat, Jan 14, 2023 at 2:55 AM Alexandre Oliva wrote: > > Hello, Richard, > > Thank you for the feedback. > > On Jan 12, 2023, Richard Biener wrote: > > > On Tue, Dec 27, 2022 at 5:12 AM Alexandre Oliva via Gcc-patches > > wrote: > > >> This patch extends the memset expansion to start with a lo

Re: [PR106746] drop cselib addr lookup in debug insn mem

2023-01-15 Thread Richard Biener via Gcc-patches
On Sat, Jan 14, 2023 at 12:26 PM Alexandre Oliva via Gcc-patches wrote: > > > The testcase used to get scheduled differently depending on the > presence of debug insns with MEMs. It's not clear to me why those > MEMs affected scheduling, but the cselib pre-canonicalization of the > MEM address is

Re: [PATCH] PR tree-optimization/108359 - Utilize op1 == op2 when invoking range-ops folding.

2023-01-15 Thread Aldy Hernandez via Gcc-patches
On 1/16/23 08:19, Richard Biener wrote: On Fri, Jan 13, 2023 at 11:07 PM Andrew MacLeod wrote: On 1/13/23 16:54, Jakub Jelinek wrote: On Fri, Jan 13, 2023 at 04:23:20PM -0500, Andrew MacLeod via Gcc-patches wrote: fold_range() already invokes wi_fold_in_parts to try to get more refined i

[committed] wwwdocs: projects/cfg: Update reference to paper

2023-01-15 Thread Gerald Pfeifer
Citeseer no longer has "Hyperblock Performance Optimizations For ILP Processors; David Isaac August, 1996 (Master Thesis)". Link to the actual PDF instead. --- htdocs/projects/cfg.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projects/cfg.html b/htdocs/projects/cf