RE: [PATCH] ira: Remove the issue code in improve_allocation. [PR117838]

2025-08-31 Thread Cui, Lili
> -Original Message- > From: Vladimir Makarov > Sent: Saturday, August 30, 2025 1:38 AM > To: Cui, Lili ; gcc-patches@gcc.gnu.org > Cc: rdsandif...@googlemail.com > Subject: Re: [PATCH] ira: Remove the issue code in improve_allocation. > [PR117838] > > > On 8/22/25 3:25 AM, yes wrote:

Re: [Patch] Address compile time issues for locality cloning pass

2025-08-31 Thread Prachi Godbole
Ping Thanks, Prachi From: Prachi Godbole Sent: Wednesday, July 30, 2025 6:48 PM To: gcc-patches@gcc.gnu.org Cc: hubi...@ucw.cz Subject: [Patch] Address compile time issues for locality cloning pass This patch attempts to reduce compile time for locality c

[PATCH v1 1/2] Match: Add form 5 of unsigned SAT_MUL for widen-mul

2025-08-31 Thread pan2 . li
From: Pan Li This patch would like to try to match the the unsigned SAT_MUL form 4, aka below: #define DEF_SAT_U_MUL_FMT_5(NT, WT) \ NT __attribute__((noinline))\ sat_u_mul_##NT##_from_##WT##_fmt_5 (NT a, NT b) \ {

RE: [v2] PR81358: Enable automatic linking of libatomic

2025-08-31 Thread Prathamesh Kulkarni
> -Original Message- > From: Prathamesh Kulkarni > Sent: 18 August 2025 16:18 > To: Prathamesh Kulkarni ; Matthew Malcomson > ; gcc-patches@gcc.gnu.org > Cc: Joseph Myers ; Thomas Schwinge > ; Sam James > Subject: RE: [v2] PR81358: Enable automatic linking of libatomic > > > > >

[PATCH v1 2/2] RISC-V: Add test case of unsigned scalar SAT_MUL form 5 for widen-mul

2025-08-31 Thread pan2 . li
From: Pan Li The form 5 of unsigned scalar SAT_MUL is covered in middle-expand alreay, add test case here to cover form 5. gcc/testsuite/ChangeLog: * gcc.target/riscv/sat/sat_arith.h: Add test helper macros. * gcc.target/riscv/sat/sat_u_mul-6-u16-from-u128.c: New test. *

Re: [PATCH] x86-64: mingw: Pass and return _Float16 in vector registers [PR115054]

2025-08-31 Thread LIU Hao
在 2025-9-1 11:12, Jonathan Yong 写道: On 8/31/25 9:58 PM, Trevor Gross wrote: For MinGW on x86-64, GCC currently passes and returns `_Float16` in GPRs. Microsoft does not specify an official ABI for this type, but the Windows x86-64 calling convention [1] does state the following: Any floati

[PATCH] RISC-V: Update Zba 'shNadd.uw' testcase.

2025-08-31 Thread Jiawei
This patch update RISC-V Zba extension 'shNadd.uw' instruction generation. Supplemented the instruction generation detection of 'sh1add.uw' and 'sh3add.uw'. gcc/testsuite/ChangeLog: * gcc.target/riscv/zba-shadd.c: New test functions. --- gcc/testsuite/gcc.target/riscv/zba-shadd.c | 20 +

Re: [PATCH] [x86] Fix ICE due to wrong operand is passed to ix86_vgf2p8affine_shift_matrix.

2025-08-31 Thread Andi Kleen
liuhongt writes: > 1) Fix predicate of operands[3] in cond_ since only > const_vec_dup_operand is excepted for masked operations, and pass real > count to ix86_vgf2p8affine_shift_matrix. > > 2) Pass operands[2] instead of operands[1] to > gen_vgf2p8affineqb__mask which excepted the operand to shi

Re: [PATCH] Fortran: truncate constant string passed to character,value dummy [PR121727]

2025-08-31 Thread Jerry D
On 8/31/25 11:58 AM, Harald Anlauf wrote: Dear all, the attached fixes a missed optimization passing a constant character string to a scalar dummy with value attribute and shorter than the actual by truncating the latter at compile time. Regtested on x86_64-pc-linux-gnu.  OK for mainline? Than

Re: [PATCH] x86-64: mingw: Pass and return _Float16 in vector registers [PR115054]

2025-08-31 Thread Jonathan Yong
On 8/31/25 9:58 PM, Trevor Gross wrote: For MinGW on x86-64, GCC currently passes and returns `_Float16` in GPRs. Microsoft does not specify an official ABI for this type, but the Windows x86-64 calling convention [1] does state the following: Any floating-point and double-precision argumen

[PATCH] x86-64: mingw: Pass and return _Float16 in vector registers [PR115054]

2025-08-31 Thread Trevor Gross
For MinGW on x86-64, GCC currently passes and returns `_Float16` in GPRs. Microsoft does not specify an official ABI for this type, but the Windows x86-64 calling convention [1] does state the following: Any floating-point and double-precision arguments in the first four parameters are pas

Re: [PATCH] gcc: m68k soft float to preserve NaNs and Infs

2025-08-31 Thread Sam James
Nathanial Sloss writes: > Hi > > There are issues with m68k softfloat (fpgnulib.c) not perserving NaNs and Inf > when converting from (long) double and float types. > > This issue has been documented in a NetBSD PR: > > http://gnats.netbsd.org/59616 > > Addressed by the attached patch which sets

Re: [PATCH] gas: m68k M680LC040 F-LINE NOP insertion fixing emulation of fpu instructions

2025-08-31 Thread Sam James
Nathanial Sloss writes: > Hi, > > The m68k m68lc040 (early revisions) have an issue after executing f-line (co > processor mmu/fpu) instructions and executing a trap in the case of fpu > emulation. > > Unfornately due to time passed the processor errata as to how to address the > issue has bee

Re: [PATCH] gcc: m68k soft float to preserve NaNs and Infs

2025-08-31 Thread Nathanial Sloss
Hi There are issues with m68k softfloat (fpgnulib.c) not perserving NaNs and Inf when converting from (long) double and float types. This issue has been documented in a NetBSD PR: http://gnats.netbsd.org/59616 Addressed by the attached patch which sets the value correctly for NaN and +/- Infi

Re: [PATCH] xtensa: Optimize branch whether (reg:SI) is within/out the range handled by CLAMPS instruction

2025-08-31 Thread Max Filippov
On Fri, Aug 29, 2025 at 3:19 AM Takayuki 'January June' Suwa wrote: > > The CLAMPS instruction in Xtensa ISA, provided when the TARGET_CLAMPS > configuration is enabled (and also requires TARGET_MINMAX), returns a > value clamped the number in the specified register to between -(1< (1< > Therefore

[pushed] wwwdocs: git: Prefer https:// over git://

2025-08-31 Thread Gerald Pfeifer
Jonny suggested this a while ago, when originally I didn't fully understand; now I do. :-) Pushed. Gerald git:// is a legacy protocol that lacks authentication and encryption. --- htdocs/git.html | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/htdocs/git.html b/htdoc

[PATCH] Fortran: truncate constant string passed to character,value dummy [PR121727]

2025-08-31 Thread Harald Anlauf
Dear all, the attached fixes a missed optimization passing a constant character string to a scalar dummy with value attribute and shorter than the actual by truncating the latter at compile time. Regtested on x86_64-pc-linux-gnu. OK for mainline? Thanks, Harald From 378e6ee5fc20a2648940e80e5a

Re: [Patch, fortran] PR99709 - [PDT] VALUE attribute for an object with nonconstant length parameter

2025-08-31 Thread Paul Richard Thomas
Pushed as r16-3481. Thanks for your help in getting it over the line! Paul On Sun, 31 Aug 2025 at 12:45, Paul Richard Thomas < paul.richard.tho...@gmail.com> wrote: > Hi Harald and Jerry, > > As it happens, I had done the regtesting, caught the failures of > value_optional_[1-2].f90 but failed

[PATCH] testsuite: Add a smoke test for _FloatN ABI

2025-08-31 Thread Trevor Gross
Introduce a test that exercises various ABI aspects of C23 float types. This is based on existing tests such as `float16-basic.c`. 2025-08-31 Trevor Gross gcc/testsuite/ * gcc.dg/torture/float128-abi.c: New test. * gcc.dg/torture/float128x-abi.c: New test. * gcc.dg/tor

Re: [PATCH] doc: Fix sort order for counted_by attribute

2025-08-31 Thread Sandra Loosemore
On 8/31/25 03:56, Jonathan Wakely wrote: On Sun, 31 Aug 2025 at 10:48 +0100, Jonathan Wakely wrote: Grr, we also have: unavailable unused used retain uninitialized I can kinda understand unused, used, and retain being grouped together (although cross-references are a thing) but they should not a

[RISC-V][PR target/121213] Avoid unnecessary constant load in amoswap

2025-08-31 Thread Jeff Law
This is Austin's work to remove the redundant sign extension seen in pr121213. -- The .w form of amoswap will sign extend its result from 32 to 64 bits, thus any explicit sign extension insn doing the same is redundant. This uses Jivan's approach of allocating a DI temporary for an extended

Re: [PATCH] libbid: Set rounding mode to round-to-nearest for _Decimal128 arithmetic

2025-08-31 Thread H.J. Lu
On Sun, Aug 31, 2025 at 6:21 AM Hongtao Liu wrote: > > On Sun, Aug 31, 2025 at 11:15 AM H.J. Lu wrote: > > > > Since _Decimal128 arithmetic requires the round-to-nearest rounding > > mode, define DFP_INIT_ROUNDMODE and DFP_RESTORE_ROUNDMODE, similar to > > FP_INIT_ROUNDMODE in sfp-machine.h, to s

[PATCH] Move the folding of memcmpy to memcmpy_eq to fold all builtins

2025-08-31 Thread Andrew Pinski
This is a small cleanup by moving the optimization of memcmp to memcmp_eq to fab from strlen pass. Since the copy of the other part of the memcmp strlen optimization to forwprop, this was the only thing left that strlen can do memcmp. Note this move will cause memcmp_eq to be used for -Os too. It

Re: [PATCH] doc: Fix sort order for counted_by attribute

2025-08-31 Thread Sandra Loosemore
On 8/31/25 03:57, Gerald Pfeifer wrote: On Sun, 31 Aug 2025, Jonathan Wakely wrote: gcc/ChangeLog: * doc/extend.texi (Common Variable Attributes): Put counted_by in alphabetical order. --- https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/Common-Variable-Attributes.html currently h

[PATCH] c++/modules: Support ADL on non-discarded GM entities [PR121705]

2025-08-31 Thread Nathaniel Shead
Note: the tests in this patch depend on https://gcc.gnu.org/pipermail/gcc-patches/2025-August/693810.html. Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? -- >8 -- [basic.lookup.argdep] p4 says that ADL also finds declarations of functions or function templates from a point of l

Re: [PATCH] libbid: Set rounding mode to round-to-nearest for _Decimal128 arithmetic

2025-08-31 Thread Hongtao Liu
On Sun, Aug 31, 2025 at 11:15 AM H.J. Lu wrote: > > Since _Decimal128 arithmetic requires the round-to-nearest rounding > mode, define DFP_INIT_ROUNDMODE and DFP_RESTORE_ROUNDMODE, similar to > FP_INIT_ROUNDMODE in sfp-machine.h, to set the rounding mode to > round-to-nearest at _Decimal128 relate

Re: [PATCH] c++/modules: Fix ADL [PR117658]

2025-08-31 Thread Nathaniel Shead
On Fri, Aug 29, 2025 at 12:33:23PM +0200, Jason Merrill wrote: > On 8/24/25 9:04 AM, Nathaniel Shead wrote: > > Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? > > > > -- >8 -- > > > > On looking again at [basic.lookup.argdep] p4, I believe GCC hasn't fully > > implemented the wo

Re: [Patch, fortran] PR99709 - [PDT] VALUE attribute for an object with nonconstant length parameter

2025-08-31 Thread Paul Richard Thomas
Hi Harald and Jerry, As it happens, I had done the regtesting, caught the failures of value_optional_[1-2].f90 but failed to update the .diff for submission. Mea culpa for not checking the submission. More importantly, I forgot to deallocate the parameterized components - see the attachment. Unli

[PATCH] config-ml.in: Filter out --disable-static and --disable-shared

2025-08-31 Thread Esteve Varela Colominas
Currently, --enable-static and --enable-shared are filtered by this script. Trying to override a build system's wishes by appending --enable-shared, resulted in the following command-line: ./configure --disable-shared --enable-shared Due to the current behavior of the script, this causes the

Re: [PATCH] doc: Fix sort order for counted_by attribute

2025-08-31 Thread Jonathan Wakely
On Sun, 31 Aug 2025 at 10:48 +0100, Jonathan Wakely wrote: gcc/ChangeLog: * doc/extend.texi (Common Variable Attributes): Put counted_by in alphabetical order. --- https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/Common-Variable-Attributes.html currently has this order: alias alig

[pushed] install: Drop MinGW binaries download link

2025-08-31 Thread Gerald Pfeifer
This has been unavailable for well over a year. gcc: * doc/install.texi (Binaries): Drop MinGW. --- gcc/doc/install.texi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index f404a922d40..cb48e248186 100644 --- a/gcc/doc/in

Re: [PATCH] doc: Fix sort order for counted_by attribute

2025-08-31 Thread Gerald Pfeifer
On Sun, 31 Aug 2025, Jonathan Wakely wrote: > gcc/ChangeLog: > > * doc/extend.texi (Common Variable Attributes): Put counted_by > in alphabetical order. > --- > > https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/Common-Variable-Attributes.html > currently has this order: > > alias > ali

[PATCH] doc: Fix sort order for counted_by attribute

2025-08-31 Thread Jonathan Wakely
gcc/ChangeLog: * doc/extend.texi (Common Variable Attributes): Put counted_by in alphabetical order. --- https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/Common-Variable-Attributes.html currently has this order: alias aligned counted_by alloc_size cleanup common copy deprecated Thi

Re: [committed v5] libstdc++: Implement C++26 features [PR119670]

2025-08-31 Thread Jonathan Wakely
On Sat, 30 Aug 2025 at 10:44, Iain Sandoe wrote: > I wonder if the long-term maintenance of this feature would be made easier > (and a small amount of impl. divergence removed) by adding a > ` __builtin_debugtrap()` to GCC lowered on a target hook, with a fallback to > `__builtin_trap()` ? That m

Re: [committed v5] libstdc++: Implement C++26 features [PR119670]

2025-08-31 Thread Jonathan Wakely
On Fri, 29 Aug 2025 at 19:45, Iain Sandoe wrote: > > > > > On 29 Aug 2025, at 15:55, Jonathan Wakely wrote: > > > > On Fri, 29 Aug 2025 at 15:19, Rainer Orth > > wrote: > >> > >> Hi Jonathan, > >>> > The src/c++26/debugging.cc file defines a global volatile int which can > be set by

[committed] libstdc++: Fix bootstrap failures in src/c++26/debugging.cc

2025-08-31 Thread Jonathan Wakely
ptrace on Darwin requires . The inline x86 asm doesn't work with the Solaris assembler. libstdc++-v3/ChangeLog: * src/c++26/debugging.cc [_GLIBCXX_HAVE_SYS_PTRACE_H]: Include . (breakpoint) [__i386__ || __x86_64__]: Use "int 0x03" instead of "int3". --- Tested x8

[pushed] wwwdocs: gcc-4.7: Use primary site for Fedora mail archive

2025-08-31 Thread Gerald Pfeifer
Google brought up fedorahosted.org; everywhere else we have fedoraproject.org, so use that. --- htdocs/gcc-4.7/porting_to.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/gcc-4.7/porting_to.html b/htdocs/gcc-4.7/porting_to.html index 2387b87b..fbb940a6 100644 --- a/h

[pushed] wwwdocs: testing: Simplify link to LAPACK site

2025-08-31 Thread Gerald Pfeifer
Pushed. Gerald --- htdocs/testing/testing-lapack.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/testing/testing-lapack.html b/htdocs/testing/testing-lapack.html index 3262d69c..d6d8c604 100644 --- a/htdocs/testing/testing-lapack.html +++ b/htdocs/testing/testing-