Re: [PATCH v2 2/7] kcfi: Add core Kernel Control Flow Integrity infrastructure

2025-09-10 Thread Kees Cook
On Tue, Sep 09, 2025 at 06:49:22PM +, Qing Zhao wrote: > > > On Sep 4, 2025, at 20:24, Kees Cook wrote: > > +For indirect call sites: > > + > > +- Keeping indirect calls from being merged (see above) by adding a > > + wrapping type so that equality was tested based on type-id. > > I still t

[committed v2] libstdc++: Enforce Mandates: for Boyer-Moore searchers

2025-09-10 Thread Jonathan Wakely
C++17 has a 'Requires:' precondition that the two random access iterator types have the same value type. In C++20 that is a 'Mandates:' requirement which we must diagnose. Although we could diagnose it in C++17, that might be a breaking change for any users relying on it today. Also I am lazy and

Re: [PATCH v5 4/11] openmp, fortran: Add support for map iterators in OpenMP target construct (Fortran)

2025-09-10 Thread Tobias Burnus
Hi Kwok, sorry for the belated review. [Some minor but trivial changes are required due to bitrotting - both in gimplify.cc and in libgomp/target.c] Kwok Cheung Yeung wrote: Subject: [PATCH 04/11] openmp, fortran: Add support for map iterators in OpenMP target construct (Fortran) This add

[PATCH] c++: Don't upgrade TLS model if TLS model isn't set.

2025-09-10 Thread H.J. Lu
Don't upgrade TLS model when cplus_decl_attributes is called on a thread local variable whose TLS model isn't set yet. gcc/cp/ PR c++/121889 * decl2.cc (cplus_decl_attributes): Don't upgrade TLS model if TLS model isn't set yet. gcc/testsuite/ PR c++/121889

Re: [RFC v2 0/1] c, objc: Add -Wmultiple-parameter-fwd-decl-lists

2025-09-10 Thread Alejandro Colomar
On Thu, Sep 11, 2025 at 12:55:52AM +0200, Alejandro Colomar wrote: > Hi, > > On Tue, Sep 09, 2025 at 09:58:47PM +0200, Alejandro Colomar wrote: > > Here's v2. It's still an RFC because I was unable to build GCC, due to > > an unrelated build error in the master branch. > > I've finished regressi

Re: [RFC v2 0/1] c, objc: Add -Wmultiple-parameter-fwd-decl-lists

2025-09-10 Thread Alejandro Colomar
Hi, On Tue, Sep 09, 2025 at 09:58:47PM +0200, Alejandro Colomar wrote: > Here's v2. It's still an RFC because I was unable to build GCC, due to > an unrelated build error in the master branch. I've finished regression testing. All's good. Nothing has broken, and the new tests all pass.

Re: [PATCH] fixincludes: Skip pthread_incomplete_struct_argument for modern glibc [PR118009]

2025-09-10 Thread Jonathan Wakely
On Wed, 10 Sept 2025 at 22:55, Bruce Korb wrote: > > Looks reasonable to me. I don't see a patch to the testing results tho. > The "SVN-MERGE" warns against using subversion merging the file instead > of rebuilding and replacing it. The text for "SVN-MERGE" lives in the > template used to create t

[committed] libstdc++: Remove blank line from bits/unique_ptr.h

2025-09-10 Thread Jonathan Wakely
libstdc++-v3/ChangeLog: * include/bits/unique_ptr.h: Remove blank line. --- Tested powerpc64le-linux. Pushed to trunk. libstdc++-v3/include/bits/unique_ptr.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libstdc++-v3/include/bits/unique_ptr.h b/libstdc++-v3/include/bits/unique_ptr

Re: [PATCH] fixincludes: Skip pthread_incomplete_struct_argument for modern glibc [PR118009]

2025-09-10 Thread Bruce Korb
Looks reasonable to me. I don't see a patch to the testing results tho. The "SVN-MERGE" warns against using subversion merging the file instead of rebuilding and replacing it. The text for "SVN-MERGE" lives in the template used to create the "fixincl.x" file. On 8/28/25 06:56, Jonathan Wakely

[PATCH] libstdc++: Tests of %W/%V/%U and %G for !ok date values.

2025-09-10 Thread Tomasz Kamiński
libstdc++-v3/ChangeLog: * testsuite/std/time/year_month_day/io.cc: Additional tests. --- Adding test coverate, before I touch the implementation. Testing on x86_64-linux locally. .../testsuite/std/time/year_month_day/io.cc | 48 +++ 1 file changed, 28 insertions(+), 20 d

Re: [PATCH] Fix load/store bias handling for extractlast.

2025-09-10 Thread Juergen Christ
> > > > Am 09.09.2025 um 12:54 schrieb Juergen Christ : > > > > The length returned by vect_get_loop_len is REALLEN + BIAS, but was > > assumed to be REALLEN - BIAS. If BIAS is -1, this leads to wrong > > code. > > > > Bootstrapped and regtested on s390. Ok for trunk? > > Ok. Can you also

Re: [PATCH,RFC] RISC-V: Fix typo in tt-ascalon-d8's pipeline description [PR121878]

2025-09-10 Thread Anton Blanchard
Hi Robin, > > diff --git a/gcc/config/riscv/tt-ascalon-d8.md > > b/gcc/config/riscv/tt-ascalon-d8.md > > index a57c0b31a81..25b99b6129e 100644 > > --- a/gcc/config/riscv/tt-ascalon-d8.md > > +++ b/gcc/config/riscv/tt-ascalon-d8.md > > @@ -285,38 +285,38 @@ (define_insn_reservation > > "tt_ascalo

Re: [PATCH v1] libstdc++: Implement std::layout_left_padded.

2025-09-10 Thread Luc Grosheintz
On 9/9/25 12:00 PM, Tomasz Kaminski wrote: On Mon, Sep 8, 2025 at 10:14 PM Luc Grosheintz wrote: I decided to deviate once (described in detail in the commit message). Without this deviation writing tests is very clumsy and sometimes not possible, e.g. when mixing uint8_t and dynamic paddin

[committed] c: Add tests for some C2Y removals of undefined behavior

2025-09-10 Thread Joseph Myers
C2Y removes various instances of undefined behavior, typically making them either constraint violations or implementation-defined. In many but not all such cases, GCC's existing behavior is compatible with the C2Y changes. For an initial batch of such cases, add explicit tests for how GCC behaves

Re: [PATCH] xtensa: Correct a typo

2025-09-10 Thread Max Filippov
On Tue, Sep 9, 2025 at 7:36 AM Takayuki 'January June' Suwa wrote: > > That was introduced in commit 42db504c2fb2b460e24ca0e73b8559fc33b3cf33, > over 15 years ago! > > gcc/ChangeLog: > > * config/xtensa/xtensa.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): > Change "Xtrnase" in the

Re: [PATCH v2] pr107421.f90: Require PIE and pass -fPIE for non-x86 targets

2025-09-10 Thread H.J. Lu
On Mon, Sep 8, 2025 at 7:47 AM H.J. Lu wrote: > > -mno-direct-extern-access is used to disable direct access to external > symbol from executable with and without PIE for x86. Require PIE and > pass -fPIE to disable direct access to external symbol for other targets. > > PR fortran/107421

Re: [PATCH v6] RISC-V: Fix can_find_related_mode_p for VLS types

2025-09-10 Thread Kito Cheng
I think this part is no contirvatial, so I will commit this patch after CI passes. On Wed, Sep 10, 2025 at 6:13 PM Kito Cheng wrote: > > can_find_related_mode_p incorrectly handled VLS (Vector Length Specific) > types by using TARGET_MIN_VLEN directly, which is in bits, instead of > converting it

[committed v2] libstdc++: Use _Drop_iter<_CharT> for formattable concept checking [PR121765]

2025-09-10 Thread Tomasz Kamiński
When producing output, the libstdc++ format implementation only uses _Sink_iter specializations. Since users cannot construct basic_format_context, this is the only iterator type actually used. The __format_padded helper relies on this property to efficiently pad sequences from tuples and ranges.

[PATCH] [RFC] Implement "flat" barrier in libgomp

2025-09-10 Thread mmalcomson
From: Matthew Malcomson Working on PR119588. From that PR: We've seen on some internal workloads (NVPL BLAS running GEMM routine on a small matrix) that the overhead of a `#pragma omp parallel` statement when running with a high number of cores (72 or 144) is much higher with the libgomp impleme

Re: [PATCH v1] libstdc++: Rename _S-prefixed identifiers in .

2025-09-10 Thread Jonathan Wakely
On Wed, 10 Sept 2025 at 09:44, Jonathan Wakely wrote: > > On Wed, 10 Sept 2025 at 07:49, Luc Grosheintz > wrote: > > > > In libstdc++ the prefix _S is used for static members only. In > > there's several type aliases that also used the prefix _S. They now use > > double underscore instead. > >

Re: [PATCH] libstdc++: Use _Drop_iter<_CharT> for formattable concept checking [PR121765]

2025-09-10 Thread Jonathan Wakely
On Wed, 10 Sept 2025 at 10:01, Tomasz Kaminski wrote: > > > > On Wed, Sep 10, 2025 at 10:54 AM Jonathan Wakely wrote: >> >> On Wed, 10 Sept 2025 at 09:52, Jonathan Wakely wrote: >> > >> > On Thu, 4 Sept 2025 at 14:39, Tomasz Kaminski wrote: >> > >> + if constexpr (is_same_v<_Out, _Iter_for

Re: [PATCH v3] Ignore tls_model attribute in TLS access optimization

2025-09-10 Thread Alexander Monakov
On Wed, 10 Sep 2025, H.J. Lu wrote: > Since C, C++, and Fortran front-ends now set the TLS access model after > a variable has been fully processed, not in the middle of processing it, > add an option, -fipa-tls-access, for TLS access optimization as the part > of IPA whole-program visibility op

Re: [PATCH] compare_tests: Improve non-unique tests report

2025-09-10 Thread David Malcolm
On Wed, 2025-09-10 at 18:23 +0100, Richard Earnshaw (lists) wrote: > On 10/09/2025 14:06, Jeff Law wrote: > > > > > > On 9/10/25 4:23 AM, Iain Sandoe wrote: > > > > > Now we have this facility - and it is firing on my testboxes > > > (since i use this > > > script to post-process [per .sum file

Re: [PATCH v3] testsuite: Add tests for PR c/107419 and PR c++/107393

2025-09-10 Thread H.J. Lu
On Mon, Sep 8, 2025 at 3:10 PM H.J. Lu wrote: > > Both C and C++ frontends should set a tentative TLS model in grokvardecl > and update TLS mode with the default TLS access model after a TLS variable > has been fully processed if the default TLS access model is stronger. > > PR c/107419 >

Re: [PATCH v2] Ignore tls_model attribute in TLS access optimization

2025-09-10 Thread H.J. Lu
On Wed, Sep 10, 2025 at 2:44 AM Alexander Monakov wrote: > > > > On Wed, 10 Sep 2025, Alexander Monakov wrote: > > > Sorry, I think this comment is more confusing than helpful. As mentioned > > before, > > decl_default_tls_model does not scan the attribute list, and may return a > > weaker > > m

Re: [WIP] v2: C++ vs. -ftrivial-auto-var-init=

2025-09-10 Thread Jakub Jelinek
On Tue, Sep 09, 2025 at 04:52:08PM +0200, Jason Merrill wrote: > > Ok. I wonder whether to keep adding CLOBBER (bob) as before to the start > > of some of the ctors for -std=c++23 and earlier (unless > > -ftrivial-auto-var-init= is specified). The current patch does that. If we > > stop doing th

Re: [PATCH] c++: tighten up some some accessor macros

2025-09-10 Thread Patrick Palka
On Wed, 10 Sep 2025, Patrick Palka wrote: > Bootstrapped and regtested on x86_64-pc-linux-gnu, does this > look OK for trunk? > > -- >8 -- > > Some accessor macros unintentionally accept more kinds of nodes than > they should, e.g. PACK_EXPANSION_PATTERN accepts any EXPR_P node. Oops, disregard

[PATCH] c++: tighten up some some accessor macros

2025-09-10 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- Some accessor macros unintentionally accept more kinds of nodes than they should, e.g. PACK_EXPANSION_PATTERN accepts any EXPR_P node. gcc/cp/ChangeLog: * cp-tree.h (PACK_EXPANSION_PATTERN): Assert

[PATCH] c++: pack indexing is a non-deduced context [PR121795]

2025-09-10 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk/15? -- >8 -- We weren't explicitly treating a pack index specifier as a non-deduced context. PR c++/121795 gcc/cp/ChangeLog: * pt.cc (unify) : New non-deduced context case. gcc/testsuite/Cha

Re: [PATCH] libstdc++: Tests of %W/%V/%U and %G for !ok date values.

2025-09-10 Thread Tomasz Kaminski
On Wed, Sep 10, 2025 at 4:57 PM Tomasz Kamiński wrote: > libstdc++-v3/ChangeLog: > > * testsuite/std/time/year_month_day/io.cc: Additional tests. > --- > Adding test coverate, before I touch the implementation. > Test test shows that %U/%W computest week count since start of specified yea

[PATCH] tree-optimization/121829 - bogus CFG with asm goto

2025-09-10 Thread Richard Biener
When the vectorizer removes a forwarder created earlier by split_edge it uses redirect_edge_pred for convenience and efficiency. That breaks down when the edge split is originating from an asm goto as that is a jump that needs adjustments from redirect_edge_and_branch. The following factores a si

Re: [PATCH,RFC] RISC-V: Fix typo in tt-ascalon-d8's pipeline description [PR121878]

2025-09-10 Thread Robin Dapp
On today's RISC-V GCC patch review call, someone mentioned there might be an alternative that uses a hook instead. Jeff mentioned this type of check may be needed in other pipeline descriptions either now or in the future, so I thought I'd post what I have so we can discuss which form is preferre

Re: [PATCH] compare_tests: Improve non-unique tests report

2025-09-10 Thread Christophe Lyon
On Wed, 10 Sept 2025 at 15:41, Iain Sandoe wrote: > > > > > On 10 Sep 2025, at 13:42, Christophe Lyon > > wrote: > > > > On Wed, 10 Sept 2025 at 12:23, Iain Sandoe wrote: > >> > >> > >> > >>> On 10 Sep 2025, at 11:12, Richard Earnshaw (lists) > >>> wrote: > >>> > >>> On 10/09/2025 10:54, Chri

Re: [PATCH] compare_tests: Improve non-unique tests report

2025-09-10 Thread Iain Sandoe
> On 10 Sep 2025, at 14:06, Jeff Law wrote: > ] > On 9/10/25 4:23 AM, Iain Sandoe wrote: > >> Now we have this facility - and it is firing on my testboxes (since i use >> this >> script to post-process [per .sum file for stability]) - I looked through a >> few of >> the reported cases and th

Re: [PATCH] compare_tests: Improve non-unique tests report

2025-09-10 Thread Iain Sandoe
> On 10 Sep 2025, at 13:42, Christophe Lyon wrote: > > On Wed, 10 Sept 2025 at 12:23, Iain Sandoe wrote: >> >> >> >>> On 10 Sep 2025, at 11:12, Richard Earnshaw (lists) >>> wrote: >>> >>> On 10/09/2025 10:54, Christophe Lyon wrote: If the results include several configurations (sch

Re: [PATCH] expr: Handle RAW_DATA_CST in store_constructor [PR121831]

2025-09-10 Thread Richard Biener
> Am 10.09.2025 um 09:27 schrieb Jakub Jelinek : > > Hi! > > I thought this wouldn't be necessary because RAW_DATA_CST can only appear > inside of (array) CONSTRUCTORs within DECL_INITIAL of TREE_STATIC vars, > so there shouldn't be a need to expand it. Except that we have an > optimization

Re: [PATCH v2 2/2] testsuite: arm: factorize arm_v8_neon_ok flags

2025-09-10 Thread Christophe Lyon
On Thu, 4 Sept 2025 at 22:27, Christophe Lyon wrote: > > Hi Torbjorn, > Sorry for the delay > > > On Mon, 1 Sept 2025 at 17:14, Torbjorn SVENSSON > wrote: > > > > > > > > On 2025-09-01 16:59, Christophe Lyon wrote: > > > On Wed, 27 Aug 2025 at 13:25, Torbjorn SVENSSON > > > wrote: > > >> > >

Re: [PATCH] compare_tests: Improve non-unique tests report

2025-09-10 Thread Christophe Lyon
On Wed, 10 Sept 2025 at 12:23, Iain Sandoe wrote: > > > > > On 10 Sep 2025, at 11:12, Richard Earnshaw (lists) > > wrote: > > > > On 10/09/2025 10:54, Christophe Lyon wrote: > >> If the results include several configurations (schedule of > >> variations), do not report summary lines as duplicate

Re: [PATCH] compare_tests: Improve non-unique tests report

2025-09-10 Thread Richard Earnshaw (lists)
On 10/09/2025 10:54, Christophe Lyon wrote: > If the results include several configurations (schedule of > variations), do not report summary lines as duplicates. Indeed with > several configurations, it's likely that the results contain the same > ># of expected passesX > >

Re: [PATCH] c++: Fix null deref in maybe_diagnose_standard_trait [PR121859]

2025-09-10 Thread Jason Merrill
On 9/10/25 2:13 PM, Nathaniel Shead wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? OK. -- >8 -- A static member template doesn't always have a DECL_INITIAL, as in the below testcase, and so checking its TREE_CODE performs a null-pointer dereference. I don't think we

Re: [PATCH v1] libstdc++: Apply LWG4351 to CTAD of span/mdspan.

2025-09-10 Thread Tomasz Kaminski
On Wed, Sep 10, 2025 at 10:20 AM Jonathan Wakely wrote: > On Sun, 7 Sept 2025 at 16:34, Jonathan Wakely wrote: > > > > On Sat, 6 Sept 2025 at 14:12, Luc Grosheintz wrote: > > > > > > The concept __integral_constant_like doesn't consider traits with a > > > boolean member `value` as an integer co

Re: [PATCH v2] libstdc++: Rename _S-prefixed identifiers in .

2025-09-10 Thread Tomasz Kaminski
On Wed, Sep 10, 2025 at 12:33 PM Jonathan Wakely wrote: > On Wed, 10 Sept 2025 at 11:12, Luc Grosheintz > wrote: > > > > In libstdc++ the prefix _S is used for static members only. In > > there's several type aliases that also used the prefix _S. They now use > > a single leading underscore fol

Re: [PATCH] ifcvt: Clarify if_info.original_cost.

2025-09-10 Thread Robin Dapp
Jakub, you did the spaceship cmov adjustments last year. Is a change like the following where we introduce a cmov ok? It looks like two of the four functions in the test file were already branchless. I ran a full bootstrap and regtest again, this time the test is unchanged. I think I tested

Re: [PATCH,RFC] RISC-V: Fix typo in tt-ascalon-d8's pipeline description [PR121878]

2025-09-10 Thread Robin Dapp
Hi Robin, > diff --git a/gcc/config/riscv/tt-ascalon-d8.md b/gcc/config/riscv/tt-ascalon-d8.md > index a57c0b31a81..25b99b6129e 100644 > --- a/gcc/config/riscv/tt-ascalon-d8.md > +++ b/gcc/config/riscv/tt-ascalon-d8.md > @@ -285,38 +285,38 @@ (define_insn_reservation "tt_ascalon_d8_vec_ordered

Re: [PATCH] RISC-V: Add pattern for vector-scalar single widening floating-point sub

2025-09-10 Thread Kito Cheng
LGTM :) On Wed, Sep 10, 2025 at 6:24 PM Paul-Antoine Arras wrote: > > This pattern enables the combine pass (or late-combine, depending on the case) > to merge a float_extend'ed vec_duplicate into a minus RTL instruction. The > other > minus operand is already wide. > > Before this patch, we hav

Re: [PATCH v1] libstdc++: Rename _S-prefixed identifiers in .

2025-09-10 Thread Jonathan Wakely
On Wed, 10 Sept 2025 at 11:08, Luc Grosheintz wrote: > > > > On 9/10/25 11:24 AM, Jonathan Wakely wrote: > > On Wed, 10 Sept 2025 at 09:44, Jonathan Wakely wrote: > >> > >> On Wed, 10 Sept 2025 at 07:49, Luc Grosheintz > >> wrote: > >>> > >>> In libstdc++ the prefix _S is used for static member

[PATCH v6] RISC-V: Fix can_find_related_mode_p for VLS types

2025-09-10 Thread Kito Cheng
can_find_related_mode_p incorrectly handled VLS (Vector Length Specific) types by using TARGET_MIN_VLEN directly, which is in bits, instead of converting it to bytes as required. This patch fixes the issue by dividing TARGET_MIN_VLEN by 8 to convert from bits to bytes when calculating the number o

Re: [PATCH] compare_tests: Improve non-unique tests report

2025-09-10 Thread Iain Sandoe
> On 10 Sep 2025, at 11:12, Richard Earnshaw (lists) > wrote: > > On 10/09/2025 10:54, Christophe Lyon wrote: >> If the results include several configurations (schedule of >> variations), do not report summary lines as duplicates. Indeed with >> several configurations, it's likely that the r

[PATCH] RISC-V: Add pattern for vector-scalar single widening floating-point sub

2025-09-10 Thread Paul-Antoine Arras
This pattern enables the combine pass (or late-combine, depending on the case) to merge a float_extend'ed vec_duplicate into a minus RTL instruction. The other minus operand is already wide. Before this patch, we have four instructions, e.g.: fcvt.d.sfa0,fa0 vsetvli a5,zero,e64

[PATCH v2] libstdc++: Rename _S-prefixed identifiers in .

2025-09-10 Thread Luc Grosheintz
In libstdc++ the prefix _S is used for static members only. In there's several type aliases that also used the prefix _S. They now use a single leading underscore follow by a capital letter instead. libstdc++-v3/ChangeLog: * include/std/mdspan (_ExtentsStorage::_Base): New name for

Re: [PATCH] Bail out early during gimplify_asm_expr [PR121391]

2025-09-10 Thread Stefan Schulze Frielinghaus
On Wed, Sep 10, 2025 at 02:20:58AM -0700, Andrew Pinski wrote: > On Tue, Aug 26, 2025 at 10:42 PM Stefan Schulze Frielinghaus > wrote: > > > > Bootstrapped and regtested on x86_64 and s390. Ok for mainline? > > > > -- >8 -- > > > > In case an asm operand is an error node, constraints etc. are sti

Re: [PATCH] bitint: Fix up lowering optimization of .*_OVERFLOW ifns [PR121828]

2025-09-10 Thread Richard Biener
> Am 10.09.2025 um 09:50 schrieb Jakub Jelinek : > > Hi! > > THe lowering of .{ADD,SUB,MUL}_OVERFLOW ifns is optimized, so that we don't > in the common cases uselessly don't create a large _Complex _BitInt > temporary with the first (real) part being the result and second (imag) part > just

Re: [PATCH v2] Ignore tls_model attribute in TLS access optimization

2025-09-10 Thread Alexander Monakov
On Wed, 10 Sep 2025, Alexander Monakov wrote: > Sorry, I think this comment is more confusing than helpful. As mentioned > before, > decl_default_tls_model does not scan the attribute list, and may return a > weaker > model than the attribute. If there was no attribute, we can expect that > r

Re: [PATCH] testsuite: Only scan for known file extensions in lto.exp

2025-09-10 Thread Richard Biener
> Am 10.09.2025 um 10:01 schrieb Jakub Jelinek : > > Hi! > > This is something that has bothered me for a few years but I've only found > time for it now. > The glob used for finding *_1.* etc. counterparts to the *_0.* tests is too > broad, so if one has say next to *_1.c file also *_1.c~ or

Re: [PATCH, V4] Add -mcpu=future to the PowerPC

2025-09-10 Thread Surya Kumari Jangala
Hi Mike, On 24/07/25 12:47 am, Michael Meissner wrote: > diff --git a/gcc/config/rs6000/rs6000-cpus.def > b/gcc/config/rs6000/rs6000-cpus.def > index 4a1037616d7..df833e3d54b 100644 > --- a/gcc/config/rs6000/rs6000-cpus.def > +++ b/gcc/config/rs6000/rs6000-cpus.def > @@ -83,6 +83,8 @@ > #defin

Re: [PATCH] ifcvt: Clarify if_info.original_cost.

2025-09-10 Thread Robin Dapp
Robin, given the time since submission, I would suggest a fresh bootstrap and regression test on x86. Given the V4 passed on x86 and aarch64 in the past and earlier versions tested well on s390, I think just the sanity check on x86 is needed. There are a few regressions on riscv which are all

Re: [PATCH v5 2/2] RISC-V: Allow VLS types using up to LMUL 8

2025-09-10 Thread Kito Cheng
Hi Robin: The document is written down in psABI: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/418/files Related wording for that is: A fixed-length vector argument is passed in one vector argument register if the size of the vector is less than or equal to ABI_VLEN bit. A fixed-len

[pushed] wwwdocs: gcc-12: Drop link to ctfstd.org

2025-09-10 Thread Gerald Pfeifer
ctfstd.org has certificate issue, ignoring which redirects to a GitHub project and after two links one gets to the ctfstd standard. There does not appear to be a good, permanent fit for our news list. Pushed. Gerald --- htdocs/gcc-12/changes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH] c++, v3: Change mangling of Intel/Motorola extended long double literals

2025-09-10 Thread Jason Merrill
On 9/10/25 10:18 AM, Jakub Jelinek wrote: On Wed, Sep 10, 2025 at 10:06:07AM +0200, Jason Merrill wrote: It looks like these tests won't run on m68k, can you make at least the -2 test run (and pass) there? Sure, tested there just with a cross (and only on those 2 new tests). OK, thanks. 20

Re: [PATCH] libstdc++: Use _Drop_iter<_CharT> for formattable concept checking [PR121765]

2025-09-10 Thread Jonathan Wakely
On Wed, 10 Sept 2025 at 09:52, Jonathan Wakely wrote: > > On Thu, 4 Sept 2025 at 14:39, Tomasz Kaminski wrote: > >> + if constexpr (is_same_v<_Out, _Iter_for_t<_CharT>>) > > > > This would be better if we use _Drop_iter here. This is result of me doing > > some other tests. > > Yes, I agree

Re: [PATCH v2] s390: Implement clz and ctz for SI mode

2025-09-10 Thread Stefan Schulze Frielinghaus
On Wed, Sep 10, 2025 at 10:06:35AM +0200, Juergen Christ wrote: > To properly implement __builtin_ffs for SI mode, implement clz and > (for >= z17) ctz for SI mode. Otherwise, gcc falls back to a libcall > which causes problems for Linux kernel code. > > Also adjust the C?Z_DEFINED_VALUE_AT_ZERO

Re: [PATCH] s390: fix vec_extract_plus define insn

2025-09-10 Thread Stefan Schulze Frielinghaus
On Tue, Sep 09, 2025 at 04:21:14PM +0200, Maximilian Immanuel Brandtner wrote: > Because of a wrong define_insn for vec_extract_plus a vector access wasn't > combined with a preceeding plus operation which set the offset at which > to perform the vector access even though the instruction offers tha

Re: [PATCH v1] libstdc++: Apply LWG4351 to CTAD of span/mdspan.

2025-09-10 Thread Jonathan Wakely
On Sun, 7 Sept 2025 at 16:34, Jonathan Wakely wrote: > > On Sat, 6 Sept 2025 at 14:12, Luc Grosheintz wrote: > > > > The concept __integral_constant_like doesn't consider traits with a > > boolean member `value` as an integer constant. This is done to reject > > various completely unrelated traits

[PATCH] c++, v3: Change mangling of Intel/Motorola extended long double literals

2025-09-10 Thread Jakub Jelinek
On Wed, Sep 10, 2025 at 10:06:07AM +0200, Jason Merrill wrote: > It looks like these tests won't run on m68k, can you make at least the -2 > test run (and pass) there? Sure, tested there just with a cross (and only on those 2 new tests). 2025-09-10 Jakub Jelinek * mangle.cc (write_rea

Re: [PATCH v5 2/2] RISC-V: Allow VLS types using up to LMUL 8

2025-09-10 Thread Robin Dapp
Hi Kito, we discussed this in yesterday's patchwork sync. Would you mind sharing what the current LLVM implementation does and if this is written down/documented somewhere? In particular the chunk size we split large vectors. Like for a 1024b vector with the "128b ABI", does LLVM use LMUL8

[PATCH v2] s390: Implement clz and ctz for SI mode

2025-09-10 Thread Juergen Christ
To properly implement __builtin_ffs for SI mode, implement clz and (for >= z17) ctz for SI mode. Otherwise, gcc falls back to a libcall which causes problems for Linux kernel code. Also adjust the C?Z_DEFINED_VALUE_AT_ZERO macros to return 2. Since the optabs now return exactly the value set by

[PATCH] testsuite: Only scan for known file extensions in lto.exp

2025-09-10 Thread Jakub Jelinek
Hi! This is something that has bothered me for a few years but I've only found time for it now. The glob used for finding *_1.* etc. counterparts to the *_0.* tests is too broad, so if one has say next to *_1.c file also *_1.c~ or *_1.c.~1~ or *_1.c.orig or *_1.c.bak etc. files, lto.exp will repor

[PATCH] bitint: Fix up lowering optimization of .*_OVERFLOW ifns [PR121828]

2025-09-10 Thread Jakub Jelinek
Hi! THe lowering of .{ADD,SUB,MUL}_OVERFLOW ifns is optimized, so that we don't in the common cases uselessly don't create a large _Complex _BitInt temporary with the first (real) part being the result and second (imag) part just being a huge 0 or 1, although we still do that if it can't be done.

[committed v2] libstdc++: Document remaining C++20 implementation-defined behavior.

2025-09-10 Thread Tomasz Kamiński
I have double checked that implementation-defined behavior in the [compliance] (whether the implementation is freestanding) and [stringbuf.const] (initialization of sequence pointers) are indeed null, and there are no corresponding entires in earlier standards. libstdc++-v3/ChangeLog: *

[PATCH] expr: Handle RAW_DATA_CST in store_constructor [PR121831]

2025-09-10 Thread Jakub Jelinek
Hi! I thought this wouldn't be necessary because RAW_DATA_CST can only appear inside of (array) CONSTRUCTORs within DECL_INITIAL of TREE_STATIC vars, so there shouldn't be a need to expand it. Except that we have an optimization when reading ARRAY_REF from such a CONSTRUCTOR which will try to exp

[PATCH] RISC-V: Add pattern for vector-scalar widening floating-point add

2025-09-10 Thread Paul-Antoine Arras
This pattern enables the combine pass (or late-combine, depending on the case) to merge a float_extend'ed vec_duplicate into a plus RTL instruction. Before this patch, we have four instructions, e.g.: fcvt.d.sfa0,fa0 vsetvli a5,zero,e64,m1,ta,ma vfmv.v.fv3,fa0 vfwad