[PATCH] mmix: Define MAX_FIXED_MODE_SIZE

2025-07-18 Thread Hans-Peter Nilsson
For master, let's change the default; see other recent patch. Committed to gcc-15 branch. Pietro, thanks again for the patch that led up to this. This is in a different place and with different contents, but you made the first move in this direction so IMHO attribution is in order. -- >8 -- Be

[PATCH] defaults.h: Default MAX_FIXED_MODE_SIZE to MAX (BITS_PER_WORD * 2, 64)

2025-07-18 Thread Hans-Peter Nilsson
From: Hans-Peter Nilsson This has an effect only for MMIX and BPF. All other targets are either 32-bits-or-less BITS_PER_WORD (and will now get 64 just by a more obvious expression), or they don't use the default MAX_FIXED_MODE_SIZE. I can't build a complete toolchain for BPF (fails building li

[committed] libstdc++: Qualify addressof calls in inplace_vector [PR119137]

2025-07-18 Thread Tomasz Kamiński
PR libstdc++/119137 libstdc++-v3/ChangeLog: * include/std/inplace_vector (inplace_vector::operator=): Qualify call to std::addressof. --- Thank's Patrick for pointing this out. Pushed to trunk. libstdc++-v3/include/std/inplace_vector | 4 ++-- 1 file changed, 2 insertion

[commited v4] libstdc++: Fixed localized empty-spec formatting for months/weekdays [PR121154]

2025-07-18 Thread Tomasz Kamiński
Previously for localized output, if _M_debug option was set, the _M_check_ok completed succesfully and _M_locale_fmt was called for months/weekdays that are !ok(). This patch lifts debug checks from each conversion function into _M_check_ok, that in case of !ok() values return a string_view contai

Re: [PATCH v3] libstdc++: Fixed localized empty-spec formatting for months/weekdays [PR121154]

2025-07-18 Thread Tomasz Kaminski
On Fri, Jul 18, 2025 at 3:04 PM Jonathan Wakely wrote: > On 18/07/25 14:01 +0200, Tomasz Kamiński wrote: > >Previously for localized output, if _M_debug option was send, the > _M_check_ok > >completed succesfully and _M_locale_fmt was called for months/weekdays > that > >are !ok(). > > > >This pa

Re: [PATCH 2/2] aarch64: Allow CPU tuning to avoid INS-(W|X)ZR instructions

2025-07-18 Thread Remi Machet
On 7/18/25 05:39, Kyrylo Tkachov wrote: > External email: Use caution opening links or attachments > > > Hi all, > > For inserting zero into a vector lane we usually use an instruction like: > ins v0.h[2], wzr > > This, however, has not-so-great performance on some CPUs. > On Grace, f

RE: [PATCH] RISC-V: Add testcase for unsigned scalar SAT_ADD form 8 and form 9

2025-07-18 Thread Li, Pan2
Thanks Ciyan, a nit for asm check. +/* { dg-do compile } */ +/* { dg-options "-march=rv64gc -mabi=lp64d -fdump-tree-optimized" } */ + +#include "sat_arith.h" + +DEF_SAT_U_ADD_FMT_8(uint16_t) + +/* { dg-final { scan-tree-dump-times ".SAT_ADD " 1 "optimized" } } */ Can we add /* { dg-final { scan-a

Re: [PATCH v3] libstdc++: Fixed localized empty-spec formatting for months/weekdays [PR121154]

2025-07-18 Thread Jonathan Wakely
On 18/07/25 14:01 +0200, Tomasz Kamiński wrote: Previously for localized output, if _M_debug option was send, the _M_check_ok completed succesfully and _M_locale_fmt was called for months/weekdays that are !ok(). This patch lifts debug checks from each conversion function into _M_check_ok, that

RE: [PATCH v1] RISC-V: Support RVVDImode for avg3_ceil auto vect

2025-07-18 Thread Li, Pan2
> OK. Curious if you've seen this show up in practice and is using the > vaaddu and similar instructions actually profitable? I remember avg will be presented in somewhere else but not for DImode. I tried to add vaadd related vx combine and notice we don't have DImode for rvv, so make it availa

[Fortran, Patch, PR119106, v1] Allow iterator substitution in array constructors

2025-07-18 Thread Andre Vehreschild
Hi all, hi Harald, attached patch fixes a runtime out-of-bounds error when an iterator of an implied do-loop was not substituted as expected. The resulting code would still use the uninitialized iterator variable which then lead to out-of-bounds accesses. Harald, I did not look at the patch you p

[PATCH] [RFC] Move STMT_VINFO_TYPE to SLP_TREE_TYPE

2025-07-18 Thread Richard Biener
I am at a point where I want to store additional information from analysis (from loads and stores) to re-use them at transform stage without repeating the analysis. I do not want to add to stmt_vec_info at this point, so this starts adding kind specific sub-structures by moving the STMT_VINFO_TYPE

[PATCH v3] libstdc++: Fixed localized empty-spec formatting for months/weekdays [PR121154]

2025-07-18 Thread Tomasz Kamiński
Previously for localized output, if _M_debug option was send, the _M_check_ok completed succesfully and _M_locale_fmt was called for months/weekdays that are !ok(). This patch lifts debug checks from each conversion function into _M_check_ok, that in case of !ok() values return a string_view conta

[ARM EABI] Adjust 'libgomp.c++/target-cdtor-{1,2}.C' for 'targetm.cxx.use_aeabi_atexit' [PR119853, PR119854] (was: [Linaro-TCWG-CI] gcc-16-130-gaafe942227b: 10 regressions on arm)

2025-07-18 Thread Thomas Schwinge
Hi! On 2025-04-26T00:09:21+, ci_notify--- via Gcc-regression wrote: > Our automatic CI has detected problems related to your patch(es). Please find > some details below. > > In gcc_check master-arm, after: > | commit gcc-16-130-gaafe942227b > | Author: Thomas Schwinge > | Date: Wed

[PATCH v2] libstdc++: Fixed localized empty-spec formatting for months/weekdays [PR121154]

2025-07-18 Thread Tomasz Kamiński
Previously for localized output, if _M_debug option was send, the _M_check_ok completed succesfully and _M_locale_fmt was called for months/weekdays that are !ok(). This patch lifts debug checks from each conversion function into _M_check_ok, that in case of !ok() values return a string_view conta

Re: [PATCHv2] libstdc++: Add NTTP bind_front, -back, not_fn (P2714) [PR119744]

2025-07-18 Thread Tomasz Kaminski
On Fri, Jul 18, 2025 at 12:52 PM Nathan Myers wrote: > * I rewrote the implementation to more closely resemble the > non-NTTP version, and fix the various noexcept and requires > omissions. > I have a task to adjust them later, so the alignment may not be desired. > > * I don't understand wh

[committed 1/7] amdgcn, libgomp: Remove unused variable (PR121156)

2025-07-18 Thread Andrew Stubbs
There's a new compiler warning breaking the build. This fixes it. The variable appears to be genuinely vestigial. libgomp/ChangeLog: PR target/121156 * config/gcn/bar.c (gomp_team_barrier_wait_end): Remove unused "generation" variable. (gomp_team_barrier_wait_can

[PATCH] Record vect_check_gather_scatter analysis result and re-use it

2025-07-18 Thread Richard Biener
The following is a start to how we handle gather/scatter, in particular at this point we are re-doing stmt-based analysis at many points but with SLP we're doing that only on the representative for later analyses. The following does a first step in trying to remember the dataref analysis result (a

[PATCHv2] libstdc++: Add NTTP bind_front, -back, not_fn (P2714) [PR119744]

2025-07-18 Thread Nathan Myers
* I rewrote the implementation to more closely resemble the non-NTTP version, and fix the various noexcept and requires omissions. * I don't understand what "a separate type for single argument case, that correspond to function_ref nontype, ptr/ref constructor" means, but I did make no-boun

Re: [PATCH] libstdc++: Fixed localized empty-spec formatting for months/weekdays [PR121154]

2025-07-18 Thread Jonathan Wakely
On Fri, 18 Jul 2025 at 11:04, Tomasz Kamiński wrote: > > Previously for localized output, if _M_debug option was send, the _M_check_ok > completed succesfully and _M_locale_fmt was called for months/weekdays that > are !ok(). > > This patch lifts debug checks from each conversion function into _M_

[PATCH] libstdc++: Fixed localized empty-spec formatting for months/weekdays [PR121154]

2025-07-18 Thread Tomasz Kamiński
Previously for localized output, if _M_debug option was send, the _M_check_ok completed succesfully and _M_locale_fmt was called for months/weekdays that are !ok(). This patch lifts debug checks from each conversion function into _M_check_ok, that in case of !ok() values return a string_view conta

[PATCH 2/2] aarch64: Allow CPU tuning to avoid INS-(W|X)ZR instructions

2025-07-18 Thread Kyrylo Tkachov
Hi all, For inserting zero into a vector lane we usually use an instruction like: ins v0.h[2], wzr This, however, has not-so-great performance on some CPUs. On Grace, for example it has a latency of 5 and throughput 1. The alternative sequence: moviv31.8b, #0 ins

[PATCH 1/2] aarch64: NFC - Make vec_* rtx costing logic consistent

2025-07-18 Thread Kyrylo Tkachov
Hi all, The rtx costs logic for CONST_VECTOR, VEC_DUPLICATE and VEC_SELECT sets the cost unconditionally to the movi, dup or extract fields of extra_cost, when the normal practice in that function is to use extra_cost only when speed is set. When speed is false the function should estimate the si

[committed v2] libstdc++: Implement reverse iteration for _Utf_view

2025-07-18 Thread Jonathan Wakely
This implements the missing functions in _Utf_iterator to support reverse iteration. All existing tests pass when the view is reversed, so that the same code units are seen when iterating forwards or backwards. libstdc++-v3/ChangeLog: * include/bits/unicode.h (_Utf_iterator::operator--):

[committed] libstdc++: Fix hash<__int128> test for x32 [PR121150]

2025-07-18 Thread Jonathan Wakely
I incorrectly assumed that all targets that support __int128 use the LP64 ABI, so size_t is a 64-bit type. But x32 uses ILP32 and still supports __int128 (because it's an ILP32 target on 64-bit hardware). Add casts to the tests so that we get the correct expected values using size_t type. libstdc

[PATCH] Remove non-SLP path from vectorizable_live_operation

2025-07-18 Thread Richard Biener
This removes paths gated by !slp_node and propagates out ncopies == 1, thereby reducing the vectorizable_live_operation_1 API. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. * tree-vect-loop.cc (vectorizable_live_operation_1): Remove stmt_info and ncopies parameters.

[pushed-15] [PATCH] PR modula2/120912: Request for a procedure to obtain a file from an IOChan

2025-07-18 Thread Gaius Mulley
This patch introduces the procedure GetFile into the supplementary ISO style library IOChanUtils. gcc/m2/ChangeLog: PR modula2/120912 * gm2-libs-iso/IOChanUtils.def (GetFile): New procedure function. * gm2-libs-iso/IOChanUtils.mod (GetFile): New procedure function. (che

[PATCH v3] libstdc++: Implement Philox Engine [PR119794]

2025-07-18 Thread 1nfocalypse
Implements Philox Engine (P2075R6) and associated tests. Additionally implements changes based on feedback from Patrick Palka and jwakely on v2. Regarding the question posed by Patrick on why some things are defined inline and some out of line, things were either defined inline either due to bein

Re: [PATCH v2] config/rs6000/t-float128: Don't encode full build paths into headers

2025-07-18 Thread Harish Sadineni
Hi Segher, On 7/18/2025 1:36 PM, Segher Boessenkool wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. Hi! On Fri, Jul 18, 2025 at 01:29:07PM +0530, Harish Sadineni wrote:

Re: [PATCH 2/2] libstdc++: Implement reverse iteration for _Utf_view

2025-07-18 Thread Jonathan Wakely
On Fri, 18 Jul 2025 at 07:59, Tomasz Kaminski wrote: > > > > On Thu, Jul 17, 2025 at 7:02 PM Jonathan Wakely wrote: >> >> This implements the missing functions in _Utf_iterator to support >> reverse iteration. All existing tests pass when the view is reversed, so >> that the same code units are s

Re: [PATCH] [contrib] Add process_make.py

2025-07-18 Thread Filip Kastl
> Hi, > > Thanks for the review! No, there is no reason for it being CamelCase. I had > written > the code in CamelCase originally then 'sed s/CamelCase/snake_case/g'd the > functions. > I forgot to update this one :) > > Looks like I also forgot to update the Colors class as well. I'd actuall

Re: [PUSHED] GCN, nvptx offloading: Restrain 'WARNING: program timed out.' while in 'dynamic_cast' only for effective-target 'offload_device' [PR119692]

2025-07-18 Thread Rainer Orth
Hi Thomas, > In PR119692 "C++ 'typeinfo', 'vtable' vs. OpenACC, OpenMP 'target' > offloading": > >> --- Comment #8 from Rainer Orth --- >> The last commit made things worse on sparc-sun-solaris2.11: since that one >> (dg-timeout 10) I regularly get >> >> WARNING: libgomp.c++/target-exceptions-ba

[COMMITTED 3/6] ada: Incorrect resolution of prefixed calls with overriding private subprogram

2025-07-18 Thread Marc Poulhiès
From: Gary Dismukes The compiler incorrectly treats an overriding private subprogram that should not be visible outside a package (because it only overrides in the private part) as a possible interpretation for a call using prefixed notation outside of the package. This can result in an ambiguity

[COMMITTED 1/6] ada: Array aggregates of mutably tagged objects (part 2)

2025-07-18 Thread Marc Poulhiès
From: Javier Miranda gcc/ada/ChangeLog: * exp_aggr.adb (Gen_Assign): Code cleanup. (Initialize_Component): Do not adjust the tag when the type of the aggregate components is a mutably tagged type. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/exp_aggr

Re: [PATCH] [contrib] Add process_make.py

2025-07-18 Thread Dhruv Chawla
On 18/07/25 13:22, Filip Kastl wrote: External email: Use caution opening links or attachments Hi, I've tried running it and quickly looked through the code. Looks good to me! I'm not a mantainer, though. Just two nitpicks from me inline... On Wed 2025-07-16 21:47:00, dhr...@nvidia.com wrot

[COMMITTED 6/6] ada: Spurious actual/formal matching check failure for formal derived type.

2025-07-18 Thread Marc Poulhiès
From: Steve Baird In some cases involving a generic with two formal parameters, a formal package and a formal derived type that is derived from an interface type declared in the formal package, a legal instantiation of that generic is rejected with a message incorrectly stating that the second ac

[COMMITTED 5/6] ada: Back out change to Tbuild.Unchecked_Convert_To

2025-07-18 Thread Marc Poulhiès
From: Bob Duff ...because it breaks one test that uses --RTS=light. "Is_Composite_Type" is needed; "not Is_Scalar_Type" was wrong. gcc/ada/ChangeLog: * tbuild.adb (Unchecked_Convert_To): Back out change. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/tbuild.a

[COMMITTED 4/6] ada: Do not inline function returning on the secondary stack

2025-07-18 Thread Marc Poulhiès
When inlining function calls that return on the secondary stack used as function actual or in a return statement, the compiler creates an invalid GNAT Tree with a variable of an unconstrained type without an initializer. Also add an extra assertion to catch problematic cases directly in Expand_Inl

[COMMITTED 2/6] ada: Elaboration entity must not be ghost in ghost generic instances

2025-07-18 Thread Marc Poulhiès
From: Piotr Trojanek For non-instance units GNAT builds elaboration entities before the ghost mode is inherited from those units. However, for generic instances GNAT was building elaboration entities with ghost mode inherited from those instances, which effectively caused elaboration entities to

[PATCH] testsuite: Skip check-function-bodies sometimes

2025-07-18 Thread Stefan Schulze Frielinghaus
Added changelog entries. -- >8 -- If a check-function-bodies test is compiled using -fstack-protector*, -fhardened, -fstack-check*, or -fstack-clash-protection, but the test is not asking explicitly for those via dg-options or dg-additional-options, then mark the test as unsupported. Since these

Re: [PATCH v2] config/rs6000/t-float128: Don't encode full build paths into headers

2025-07-18 Thread Segher Boessenkool
Hi! On Fri, Jul 18, 2025 at 01:29:07PM +0530, Harish Sadineni wrote: > > Okay for trunk (with the commit message improved). Thank you! > Thank you for the review. > I have updated the commit message as you suggested and sent a v3. Which I pre-approved, eh :-) And it does look good, please commi

Re: [PATCH v2] config/rs6000/t-float128: Don't encode full build paths into headers

2025-07-18 Thread Harish Sadineni
Hi Segher, On 7/17/2025 10:20 PM, Segher Boessenkool wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. Hi! On Thu, Jul 17, 2025 at 05:58:47AM -0700, harish.sadin...@windriv

[PATCH v3] config/rs6000/t-float128: Don't encode full build paths into headers

2025-07-18 Thread Harish . Sadineni
From: Harish Sadineni Avoid encoding full build paths into file headers, use only the basename of the source file. This improves build reproducibility, particularly in environments where build paths vary and source files are saved for debugging. For example, in addkf3-sw.c the file header previo

Re: [PATCH] [aarch64] Stop using sys/ifunc.h header in libatomic and libgcc

2025-07-18 Thread Yury Khrustalev
* Andrew On Mon, Jul 14, 2025 at 08:51:01AM -0700, Andrew Pinski wrote: > On Mon, Jul 14, 2025 at 5:32 AM Yury Khrustalev > wrote: > > > > ... > > > > Regression has been checked on AArch64 and no regression has been > > found. OK for trunk? > > I think this is ok. I assume you tested it with b

Re: [PATCH] [contrib] Add process_make.py

2025-07-18 Thread Filip Kastl
Hi, I've tried running it and quickly looked through the code. Looks good to me! I'm not a mantainer, though. Just two nitpicks from me inline... On Wed 2025-07-16 21:47:00, dhr...@nvidia.com wrote: > From: Dhruv Chawla > > This is a script that makes it easier to visualize the output from ma

Contents of PO file 'cpplib-15.1-b20250316.sr.po'

2025-07-18 Thread Translation Project Robot
cpplib-15.1-b20250316.sr.po.gz Description: Binary data The Translation Project robot, in the name of your translation coordinator.

New Serbian PO file for 'cpplib' (version 15.1-b20250316)

2025-07-18 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'cpplib' has been submitted by the Serbian team of translators. The file is available at: https://translationproject.org/latest/cpplib/sr.po (This file, 'cpplib-15.1-b202503

Re: [PATCH] tree-optimization/120924 - up --param uninit-max-chain-len

2025-07-18 Thread Jakub Jelinek
On Fri, Jul 18, 2025 at 09:07:35AM +0200, Richard Biener wrote: > The PR shows that the uninit analysis limits are set too low in > cases we lower switches to ifs as happens on s390x for a linux > kernel TU. This causes false positive uninit diagnostics as we > abort the attempt to prove that a va

[PATCH] tree-optimization/120924 - up --param uninit-max-chain-len

2025-07-18 Thread Richard Biener
The PR shows that the uninit analysis limits are set too low in cases we lower switches to ifs as happens on s390x for a linux kernel TU. This causes false positive uninit diagnostics as we abort the attempt to prove that a value is initialized on all paths. The new testcase only would require up

[pushed-15] [PATCH] [modula2] Comment tidyup in gm2-compiler/M2GCCDeclare.mod

2025-07-18 Thread Gaius Mulley
This patch reformats three comments in the GNU GCC style. gcc/m2/ChangeLog: * gm2-compiler/M2GCCDeclare.mod (StartDeclareModuleScopeSeparate): Reformat statement comments. (StartDeclareModuleScopeWholeProgram): Ditto. (cherry picked from commit 7a7cc65b8987b9b05fb8fb758

Re: [PATCH] gimple-fold: Fix up big endian _BitInt adjustment [PR121131]

2025-07-18 Thread Richard Biener
On Thu, 17 Jul 2025, Jakub Jelinek wrote: > Hi! > > The following testcase ICEs because SCALAR_INT_TYPE_MODE of course > doesn't work for large BITINT_TYPE types which have BLKmode. > native_encode* as well as e.g. r14-8276 use in cases like these > GET_MODE_SIZE (SCALAR_INT_TYPE_MODE ()) and TRE

Re: [PATCH] tree-sra: Fix grp_covered flag computation when totally scalarizing (PR117423)

2025-07-18 Thread Richard Biener
On Thu, 17 Jul 2025, Martin Jambor wrote: > Hi, > > testcase of PR 117423 shows a flaw in the fancy way we do "total > scalarization" in SRA now. We use the types encountered in the > function body and not in type declaration (allowing us to totally > scalarize when only one union field is ever

Re: [PATCH 2/2] libstdc++: Implement reverse iteration for _Utf_view

2025-07-18 Thread Tomasz Kaminski
On Thu, Jul 17, 2025 at 7:02 PM Jonathan Wakely wrote: > This implements the missing functions in _Utf_iterator to support > reverse iteration. All existing tests pass when the view is reversed, so > that the same code units are seen when iterating forwards or backwards. > > libstdc++-v3/ChangeLo