Re: [PATCH V2 02/47] a68: build system

2025-10-12 Thread Richard Biener
On Sun, Oct 12, 2025 at 12:34 PM Jose E. Marchesi wrote: > > This commit adds support for building the Algol 68 front-end to the > build system. > > Signed-off-by: Jose E. Marchesi LGTM, if you re-spin at any point please try separating auto-generated contents, it makes review so much easier. R

[PATCH] aarch64: Use SVE ASRD with vector division using division operator

2025-10-12 Thread Soumya AR
The ASRD instruction on SVE performs an arithmetic shift right by an immediate for divide. This patch enables ASRD when dividing vectors using the GNU C division operator. For example: int32x4_t foo (int32x4_t x) { return x / 4; } svint32_t bar (svint32_t x) { return x / 4; } cu

[PATCH v2 2/3] libstdc++: Implement P2655R3 changes to common_reference bullet 1

2025-10-12 Thread Patrick Palka
We implement this paper as a DR against C++20 (as do MSVC and libc++). PR libstdc++/120446 libstdc++-v3/ChangeLog: * include/bits/version.def (common_reference): New. * include/bits/version.h: Regenerate. * include/std/type_traits (__glibcxx_want_common_reference)

[PATCH v2 0/3] BPF runtime test support

2025-10-12 Thread Piyush Raj
Hi, Changes Since v1: - Added a new commit that introduces initial runtime tests to the BPF torture testsuite. Thanks Piyush Raj (3): contrib: add bpf-vmtest-tool to test BPF programs testsuite: bpf: add DejaGnu board for bpf-unknown-none target testsuite: bpf: Add initial BPF runtime te

Re: libstdc++ DT_NEEDED on libatomic after PR81358

2025-10-12 Thread Joseph Myers
On Fri, 10 Oct 2025, Matthew Malcomson wrote: > Questions for others: > 1) We'd like to double-check that this sounds like a problem before trying to > change it. > 2) Does this trigger thoughts of anything else to look out for? > 3) Would the best solution be to add some `--as-needed` push/pop st

Re: [PATCH 6/9][rs6000]: convert widen_[us]sum into convert optab [PR122069]

2025-10-12 Thread Segher Boessenkool
Hi! On Sun, Oct 12, 2025 at 05:00:59PM +, Tamar Christina wrote: > > -Original Message- > > From: Segher Boessenkool > > Sent: 12 October 2025 16:58 > > To: Tamar Christina > > Cc: [email protected]; nd ; [email protected]; > > [email protected]; [email protected] > > Subject:

[PATCH V2 41/47] a68: libga68: build system (generated files)

2025-10-12 Thread Jose E. Marchesi
Signed-off-by: Jose E. Marchesi ChangeLog * libga68/config.h.in: Regenerate. * libga68/configure: Likewise. -*- snip, see https://forge.sourceware.org/gcc/gcc-a68 branch a68-v2 -*-

Re: [PATCH] testsuite: Fix vector-subscript-4.c [PR116421]

2025-10-12 Thread Stefan Schulze Frielinghaus
On Tue, Sep 16, 2025 at 04:23:55PM +0200, Stefan Schulze Frielinghaus wrote: > From: Stefan Schulze Frielinghaus > > Verify we don't have any vector temporaries in the IL at least until > ISEL which may introduce VEC_EXTRACTs on targets which support > non-constant indices (see PR116421). > > As

Re: [PATCH] maintainer-scripts: add gen_gcc_docs.sh

2025-10-12 Thread Mark Wielaard
Hi Arsen, On Tue, 2025-10-07 at 22:15 +0200, Arsen Arsenović wrote: > Mark Wielaard writes: > > > That is indeed the idea, we take this new script and wrap it into a > > container which has all the right versions of the requirements: > > > > https://sourceware.org/cgit/builder/tree/builder/mast

RE: [PATCH 6/9][rs6000]: convert widen_[us]sum into convert optab [PR122069]

2025-10-12 Thread Tamar Christina
> -Original Message- > From: Segher Boessenkool > Sent: 12 October 2025 16:58 > To: Tamar Christina > Cc: [email protected]; nd ; [email protected]; > [email protected]; [email protected] > Subject: Re: [PATCH 6/9][rs6000]: convert widen_[us]sum into convert optab > [PR122069] > >

[PATCH V2 40/47] a68: libga68: build system

2025-10-12 Thread Jose E. Marchesi
Signed-off-by: Jose E. Marchesi ChangeLog * libga68/Makefile.am: New file. * libga68/configure.ac: Likewise. * libga68/Makefile.in: Generate. * libga68/aclocal.m4: Likewise. --- libga68/Makefile.am | 122 + libga68/Makefile.in | 906 ++

Re: [RFC v1 3/3] Factor out helper function

2025-10-12 Thread Alejandro Colomar
Hi David, On Sat, Oct 11, 2025 at 07:17:18PM -0400, David Malcolm wrote: > On Sun, 2025-09-28 at 10:09 +0200, Alejandro Colomar wrote: > > Not sure about moving the definition of ptr_spec. > > > > Signed-off-by: Alejandro Colomar > > --- > >  gcc/c-family/c-warn.cc | 582 +---

Re: [PATCH 6/9][rs6000]: convert widen_[us]sum into convert optab [PR122069]

2025-10-12 Thread Segher Boessenkool
Hi! On Fri, Oct 03, 2025 at 10:46:34AM +0100, Tamar Christina wrote: > This patch is a mechanical rewrite of the widen_[us]sum optabs from a direct > to > a conversion optab. There is no optab (or table of any other kind) in this patch. Instead, it changes some pattern names, from well-known so

[to-be-committed][RISC-V][PR target/120674] Avoid division by zero in dwarf emitter when vector is not enabled

2025-10-12 Thread Jeff Law
This is a RISC-V specific failure in the dwarf2 emitter. When vector is not enabled riscv_convert_vector_chunks sets the riscv_vector_chunks poly_int to [1, 0]. riscv_dwarf_poly_indeterminite_value pulls out that 0 coefficient and uses that as FACTOR triggering a divide by zero here:

[PATCH V2 02/47] a68: build system

2025-10-12 Thread Jose E. Marchesi
This commit adds support for building the Algol 68 front-end to the build system. Signed-off-by: Jose E. Marchesi ChangeLog * Makefile.def (libga68): New module. (configure-target-libga68): Likewise. * Makefile.tpl (GA68): Define. (GA68_FOR_BUILD): Likewise.

[PATCH] ifcvt: Avoid early noce_convert_multiple_sets for sign extension pattern

2025-10-12 Thread Nikita Biryukov
While investigating Zicond extension code generation on RISC-V, I identified several cases where GCC (trunk) generates suboptimal code due to premature if-conversion. Consider the following test case: CFLAGS: -march=rv64gc_zicond -mabi=lp64d -O2 int test_IOR_ceqz_x (int x, int z, int c) { if (

[PATCH V2 18/47] a68: parser: top-down parser

2025-10-12 Thread Jose E. Marchesi
Top-down parser for the Algol 68 front-end. Signed-off-by: Jose E. Marchesi Co-authored-by: Marcel van der Veer --- gcc/algol68/a68-parser-top-down.cc | 785 + 1 file changed, 785 insertions(+) create mode 100644 gcc/algol68/a68-parser-top-down.cc diff --git a/gcc/

[PATCH v2 3/4] gcc/: Reduce scope of local variable (refactor)

2025-10-12 Thread Alejandro Colomar
No functional change intended. gcc/c-family/ChangeLog: * c-warn.cc (warn_parms_array_mismatch): Reduce scope of local variable. Signed-off-by: Alejandro Colomar --- gcc/c-family/c-warn.cc | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/c-family/c

[PATCH v2 1/4] gcc/: Rename warn_parm_array_mismatch() => warn_parms_array_mismatch()

2025-10-12 Thread Alejandro Colomar
This function acts on entire parameter declaration lists, and iterates over them. Use plural in the name, to clarify that it acts on parameters, not just on a single parameter. gcc/c-family/ChangeLog: * c-common.h (warn_parm_array_mismatch): Rename warn_parm_array_mismatch => war

[PATCH v2 0/4] Refactor warn_parm_array_mismatch()

2025-10-12 Thread Alejandro Colomar
Hi! This revision has proper commit messages with changelog entries. I've also split the last commit into two: one that reduces the scope of a local variable, and another that splits the function. This makes it easier to review. (See range-diff below.) The overall diff remains the same, so I do

[PATCH V2 29/47] a68: low: lowering entry point and misc handlers

2025-10-12 Thread Jose E. Marchesi
Signed-off-by: Jose E. Marchesi gcc/ChangeLog * algol68/a68-low.cc: New file. * algol68/a68-low-misc.cc: Likewise. --- gcc/algol68/a68-low-misc.cc | 213 +++ gcc/algol68/a68-low.cc | 1153 +++ 2 files changed, 1366 insertions(+) create

[PATCH V2 28/47] a68: parser: dynamic stack usage in serial clauses

2025-10-12 Thread Jose E. Marchesi
Signed-off-by: Jose E. Marchesi gcc/ChangeLog * algol68/a68-parser-serial-dsa.cc: New file. --- gcc/algol68/a68-parser-serial-dsa.cc | 114 +++ 1 file changed, 114 insertions(+) create mode 100644 gcc/algol68/a68-parser-serial-dsa.cc diff --git a/gcc/algol68/a6

[PATCH V2 35/47] a68: low: builtins

2025-10-12 Thread Jose E. Marchesi
Signed-off-by: Jose E. Marchesi gcc/ChangeLog * algol68/a68-low-builtins.cc: New file. --- gcc/algol68/a68-low-builtins.cc | 533 1 file changed, 533 insertions(+) create mode 100644 gcc/algol68/a68-low-builtins.cc diff --git a/gcc/algol68/a68-low-buil

[PATCH V2 22/47] a68: parser: standard prelude definitions

2025-10-12 Thread Jose E. Marchesi
Definitions of standard identifiers, procedures and modes. Signed-off-by: Jose E. Marchesi Co-authored-by: Marcel van der Veer --- gcc/algol68/a68-parser-prelude.cc | 1493 + 1 file changed, 1493 insertions(+) create mode 100644 gcc/algol68/a68-parser-prelude.cc di

[PATCH V2 31/47] a68: low: stowed values

2025-10-12 Thread Jose E. Marchesi
Signed-off-by: Jose E. Marchesi gcc/ChangeLog * algol68/a68-low-multiples.cc: New file. * algol68/a68-low-structs.cc: Likewise. * algol68/a68-low-unions.cc: Likewise. --- gcc/algol68/a68-low-multiples.cc | 1097 ++ gcc/algol68/a68-low-structs.

[PATCH V2 42/47] a68: testsuite: infrastructure

2025-10-12 Thread Jose E. Marchesi
Signed-off-by: Jose E. Marchesi gcc/testsuite/ChangeLog * lib/algol68-dg.exp: New file. * lib/algol68-torture.exp: Likewise. * lib/algol68.exp: Likewise. --- gcc/testsuite/lib/algol68-dg.exp | 57 gcc/testsuite/lib/algol68-torture.exp | 430 +++

[PATCH V2 10/47] a68: ga68 compiler driver

2025-10-12 Thread Jose E. Marchesi
This commit adds the main sources for the ga68 compiler driver. Signed-off-by: Jose E. Marchesi gcc/ChangeLog: * algol68/a68spec.cc: New file. * algol68/lang-specs.h: Likewise. --- gcc/algol68/a68spec.cc | 222 +++ gcc/algol68/lang-specs.h

[PATCH V2 00/47] Algol 68 GCC Front-End

2025-10-12 Thread Jose E. Marchesi
[Changes from V1: - All the missing core language constructs have been implemented, with the exception of parallel clauses. - Standard prelude has been completed. - A POSIX prelude has been added. - Many bugs fixed and improvements done in more than 530 commits since last submission.] Th

Re: [RFC v1 3/3] Factor out helper function

2025-10-12 Thread Alejandro Colomar
On Sun, Oct 12, 2025 at 02:13:53AM +0200, Alejandro Colomar wrote: > Hi David, > > On Sat, Oct 11, 2025 at 07:17:18PM -0400, David Malcolm wrote: > > On Sun, 2025-09-28 at 10:09 +0200, Alejandro Colomar wrote: > > > Not sure about moving the definition of ptr_spec. > > > > > > Signed-off-by: Alej

Re: [RFC v1 2/3] Fix typo in comment

2025-10-12 Thread Alejandro Colomar
On Sun, Oct 12, 2025 at 01:58:23AM -0500, G. Branden Robinson wrote: > Hi Alex, > > At 2025-10-12T02:06:56+0200, Alejandro Colomar wrote: > > [CC += Branden] > > On Sat, Oct 11, 2025 at 07:09:34PM -0400, David Malcolm wrote: > > > > -   /* Continue of both parameters are pointers with no siz