[PATCH v2] arm: Fix constraints in MVE asrl and lsll patterns [PR122858]

2025-11-30 Thread Christophe Lyon
The second alternative for operand 1 needs a new constraint which does not overlap with Pg, except that it can handle 32 to generate an optimal mov. This patch introduces a new Ph constraint which has the [32..255] range. This fixes a lot of regressions when running the testsuite for an MVE targe

Re: [PATCH] middle-end: Optimize reversed CRC table-based implementation

2025-11-30 Thread Kito Cheng
Hi Jeff: > I'd suggest deferring to gcc-17. Yeah, I am OK with that, actually, I expected to receive this response :P And I'm going to merge that to our downstream to make sure we have a more stable version when GCC 17 is open. Hi Andrew: > That makes sense so my question about -Os is withdr

[PATCH v2] fortran: Honor array constructor type-spec during folding [PR107721]

2025-11-30 Thread Christopher Albert
Reformatted and minor changes On Sun, 30 Nov 2025 15:57:51 +0100 Christopher Albert wrote: > When an array constructor has an explicit type-spec, all elements must > be converted to that type and character elements must be > padded/truncated to the specified length. This was working for simple

Re: [PATCH] loongarch: LoongArch backend, meet C++20

2025-11-30 Thread Lulu Cheng
在 2025/11/29 上午4:40, Jakub Jelinek 写道: Hi! C++20, in particular https://wg21.link/P1120R0 paper voted into it, deprecates various operations between enumerators from different enumeration types etc., and as we've switched to -std=gnu++20 by default, this now results in warnings or errors durin

Re: [PATCH] x86/aarch64: Fix compile time hog with ccmp [PR99782]

2025-11-30 Thread Hongtao Liu
On Fri, Oct 24, 2025 at 12:21 PM Andrew Pinski wrote: > > diff --git a/gcc/config/i386/i386-expand.cc b/gcc/config/i386/i386-expand.cc > index a1f1b26f78a..3196d4b600b 100644 > --- a/gcc/config/i386/i386-expand.cc > +++ b/gcc/config/i386/i386-expand.cc > @@ -26377,18 +26377,17 @@ ix86_gen_ccmp_n

Re: [PATCH] libcc1: Check for libgen.h header

2025-11-30 Thread Andrew Pinski
On Sun, Nov 30, 2025 at 3:09 PM Jeff Law wrote: > > > > On 11/30/25 11:15 AM, John David Anglin wrote: > > Okay? > > > > Dave > > --- > > > > libcc1: Check for libgen.h header > > > > The basename() function is declared in libgen.h. > > > > 2025-11-30 John David Anglin > > > > libcc1/ChangeLog:

[gccrs COMMIT] Improve feature handling

2025-11-30 Thread gerris . rs
From: Owen Avery This fixes a false positive with undefined features, improves the implementation of Feature::as_name, and configures the testsuite to check further stages of libcore compilation. gcc/rust/ChangeLog: * ast/rust-macro.h (MetaNameValueStr::get_name): New function.

Re: [PATCH 1/3] [AutoFDO] Implement streaming of file names from GCOV profile

2025-11-30 Thread Dhruv Chawla
On 01/12/25 04:11, Jan Hubicka wrote: External email: Use caution opening links or attachments + /* For a given index, returns the symbol name. */ + const char *get_symbol_name (int index) const; + + /* For a given index, returns the filename. */ + const char *get_filename (int index) co

Re: [PATCH] x86: Emit the TLS call after deleted instructions

2025-11-30 Thread Hongtao Liu
On Mon, Dec 1, 2025 at 10:31 AM H.J. Lu wrote: > > For a basic block with only deleted instructions: > > (code_label 348 23 349 45 3 (nil) [0 uses]) > (note 349 348 436 45 [bb 45] NOTE_INSN_BASIC_BLOCK) > (note 436 349 362 45 NOTE_INSN_DELETED) > > emit the TLS call after deleted instructions. > >

[PATCH] x86: Emit the TLS call after deleted instructions

2025-11-30 Thread H.J. Lu
For a basic block with only deleted instructions: (code_label 348 23 349 45 3 (nil) [0 uses]) (note 349 348 436 45 [bb 45] NOTE_INSN_BASIC_BLOCK) (note 436 349 362 45 NOTE_INSN_DELETED) emit the TLS call after deleted instructions. gcc/ PR target/122906 * config/i386/i386-features.cc (ix86_emit

Re: [RFA][PR target/121778] Improving rotation detection

2025-11-30 Thread Oleg Endo
Hi Jeff, On Sun, 2025-11-30 at 15:33 -0700, Jeff Law wrote: > > We don't bother with the transformation when the XOR is flipping a bit > known to be zero (ie, a high bit of the result of the right shift or a > low bit on the result of the left shift). For those cases we already > figure out t

[PATCH] c++: Fix ODR regressions caused by P2115R0 changes [PR122905]

2025-11-30 Thread Jakub Jelinek
Hi! The following testcase fails due to ODR warnings starting with the r16-3233 change (P2115R0 PR120503 implementation). The problem is that for C++20 we mangle differently the anonymous union at the class scope from C++17, in C++17 the unnamed enumeration that has an enumerator as a name for li

[PATCH] c++: Fix SFINAE for deleted explicit specializations [PR119343]

2025-11-30 Thread Egas Ribeiro
Regtested on x86_64-pc-linux-gnu, OK for trunk? -- >8 -- When checking a deleted explicit specialization in a SFINAE context, we were failing to propagate the error from mark_used. The call to resolve_nondeduced_context in convert_to_void correctly returned error_mark_node, but mark_single_funct

Re: [PATCH] libcc1: Check for libgen.h header

2025-11-30 Thread Jeff Law
On 11/30/25 11:15 AM, John David Anglin wrote: Okay? Dave --- libcc1: Check for libgen.h header The basename() function is declared in libgen.h. 2025-11-30 John David Anglin libcc1/ChangeLog: * configure.ac: Check for libgen.h header. * configure: Regenerate. OK je

Re: [RFC] Enable time profile function reordering with AutoFDO

2025-11-30 Thread Jan Hubicka
> (1) Changes to auto-profile pass: > The patch adds a new field timestamp to function_instance, > and populates it in read_function_instance. > > It maintains a new timestamp_info_map from timestamp -> , > which maps timestamps sorted in ascending order to (1..N), so lowest ordered > timestamp is

Re: [PATCH 3/3] [AutoFDO] Update bootstrap gcov_version to 3 and add testcases

2025-11-30 Thread Jan Hubicka
> From: Dhruv Chawla > > Signed-off-by: Dhruv Chawla > > gcc/c/ChangeLog: > > * Make-lang.in: Bump GCOV version to 3. > > gcc/cp/ChangeLog: > > * Make-lang.in: Bump GCOV version to 3. > > gcc/lto/ChangeLog: > > * Make-lang.in: Bump GCOV version to 3. > - $(CREATE

Re: [PATCH 2/3] [AutoFDO] Use filenames to resolve clashing symbol names

2025-11-30 Thread Jan Hubicka
> From: Dhruv Chawla > > Signed-off-by: Dhruv Chawla > > gcc/ChangeLog: > > * auto-profile.cc (string_table::~string_table): Update to free > original_names_map_. > (string_table::original_names_map_): New member. > (string_table::clashing_names_map_): Likewise. >

Re: [PATCH 1/3] [AutoFDO] Implement streaming of file names from GCOV profile

2025-11-30 Thread Jan Hubicka
> + /* For a given index, returns the symbol name. */ > + const char *get_symbol_name (int index) const; > + > + /* For a given index, returns the filename. */ > + const char *get_filename (int index) const; > + > + /* For a given symbol name index, returns the filename index. */ > + int g

[RFA][PR target/121778] Improving rotation detection

2025-11-30 Thread Jeff Law
In this PR we're getting code like this out of the gimple optimizers: _1 = a_4(D) << 63; _2 = a_4(D) >> 1; _3 = _2 ^ 1; _5 = _1 | _3; Note the XOR in that sequence. It spoils our ability to recognize the rotation. As a result we get code like this for rv64gcb: srli

Re: [PATCH] fortran: Honor array constructor type-spec during folding [PR107721]

2025-11-30 Thread Harald Anlauf
Hi Chris! Am 30.11.25 um 15:57 schrieb Christopher Albert: When an array constructor has an explicit type-spec, all elements must be converted to that type and character elements must be padded/truncated to the specified length. This was working for simple cases but failing when: 1. Elements w

Ping: [PATCH] configure: Support disabling specific languages [PR12407]

2025-11-30 Thread Lewis Hyatt
Ping, any interest in this patch? Thanks! https://gcc.gnu.org/pipermail/gcc-patches/2025-November/700815.html On Sun, Nov 16, 2025 at 12:33 AM Lewis Hyatt wrote: > > Hello- > > This patch makes it easier to disable a specific language, which is a need > that comes up from time to time. I have tes

[COMMITTED] a68: some small a68-diagnostics.cc improvements

2025-11-30 Thread Jose E. Marchesi
This commit fixes a few problems in algol68/a68-diagnostics.cc, reported by David Malcolm in-list. gcc/ChangeLog * algol68/a68-diagnostics.cc (diagnostic): Copypasto "a meek" should be "a firm". Support printing line number for programs longer than 9 lines. Use obstack_a

Re: [COMMITTED V7 05/50] a68: front-end diagnostics

2025-11-30 Thread Jose E. Marchesi
Hi David. > On Sun, 2025-11-30 at 02:06 +0100, Jose E. Marchesi wrote: >> This commit adds the diagnostics infrastructure for the Algol 68 >> front-end. > > Hi Jose, congrats on getting all this merged. Thanks! :) > A few comments inline below: > >> >> Signed-off-by: Jose E. Marchesi >> Co-a

Re: [PATCH,FORTRAN] testsuite: fix matching of language lists in diagnostics [PR fortran/122923]

2025-11-30 Thread Jose E. Marchesi
> On Sun, Nov 30, 2025 at 01:57:38PM +0100, Jose E. Marchesi wrote: >> A few Fortran tests that pass both Fortran and C programs in the same >> compilation check for warnings like: >> >> { dg-warning "command-line option '-fcheck=all' is valid for Fortran but >> not for C" "" { target *-*-* }

[PATCH] libcc1: Check for libgen.h header

2025-11-30 Thread John David Anglin
Okay? Dave --- libcc1: Check for libgen.h header The basename() function is declared in libgen.h. 2025-11-30 John David Anglin libcc1/ChangeLog: * configure.ac: Check for libgen.h header. * configure: Regenerate. diff --git a/libcc1/configure.ac b/libcc1/configure.ac inde

Re: [PATCH, V9, 1 of 2] Add -mcpu=future to the PowerPC

2025-11-30 Thread Surya Kumari Jangala
Hi Mike, This should be a standalone patch, not "1 of 2". The patch to use vector pair load/store should be a separate patch. On 25/11/25 1:50 pm, Michael Meissner wrote: > This patch adds support for a new PowerPC cpu (future). > > The intention of this patch is to provide a testing platform

Re: [PATCH 1/9] c++: C++26 Reflection [PR120775]

2025-11-30 Thread Jason Merrill
On 11/29/25 7:04 PM, Jakub Jelinek wrote: On Sat, Nov 29, 2025 at 06:37:03PM +0530, Jason Merrill wrote: Unfortunately it is not. ATTR_ID here is just the attribute name, so lookup_attribute_spec attempts to find it in the gnu namespace rather than in the "internal " namespace in which it is pr

Re: [PATCH] c++: Handle TARGET_EXPR in tsubst_expr [PR117034]

2025-11-30 Thread Jason Merrill
On 11/30/25 6:02 AM, Egas Ribeiro wrote: On 2025-11-29 15:30, Jason Merrill wrote: Once we enter cp_parser_placeholder_type_specifier with parser->auto_is_implicit_function_template_parm_p we know we're dealing with an abbreviated function template, no need to wait until we actually see the 'au

Re: [COMMITTED V7 05/50] a68: front-end diagnostics

2025-11-30 Thread David Malcolm
On Sun, 2025-11-30 at 02:06 +0100, Jose E. Marchesi wrote: > This commit adds the diagnostics infrastructure for the Algol 68 > front-end. Hi Jose, congrats on getting all this merged. A few comments inline below: > > Signed-off-by: Jose E. Marchesi > Co-authored-by: Marcel van der Veer > >

[no subject]

2025-11-30 Thread Tran van Chien

[PATCH] fortran: Honor array constructor type-spec during folding [PR107721]

2025-11-30 Thread Christopher Albert
When an array constructor has an explicit type-spec, all elements must be converted to that type and character elements must be padded/truncated to the specified length. This was working for simple cases but failing when: 1. Elements were parenthesized: [integer :: ([1.0])] 2. Constructors were n

Re: [PATCH,FORTRAN] testsuite: fix matching of language lists in diagnostics [PR fortran/122923]

2025-11-30 Thread Jakub Jelinek
On Sun, Nov 30, 2025 at 01:57:38PM +0100, Jose E. Marchesi wrote: > A few Fortran tests that pass both Fortran and C programs in the same > compilation check for warnings like: > > { dg-warning "command-line option '-fcheck=all' is valid for Fortran but > not for C" "" { target *-*-* } 0 } > >

RE: [PATCH v1 0/2] RISC-V: Combine vec_duplicate + vmsltu.vv to vmsltu.vx on GR2VR cost

2025-11-30 Thread Li, Pan2
Thanks all. If most of us agree on that, I will commit it and continue the rest part soon. Pan -Original Message- From: Robin Dapp Sent: Monday, November 24, 2025 11:14 PM To: Jeff Law ; Li, Pan2 ; Robin Dapp ; [email protected] Cc: [email protected]; [email protected]; Ch

[PATCH,FORTRAN] testsuite: fix matching of language lists in diagnostics [PR fortran/122923]

2025-11-30 Thread Jose E. Marchesi
A few Fortran tests that pass both Fortran and C programs in the same compilation check for warnings like: { dg-warning "command-line option '-fcheck=all' is valid for Fortran but not for C" "" { target *-*-* } 0 } The problem is that the warning may actually indicate the option is valid for

Re: [PATCH] i386: Generate 3-byte NOP for -mnop-mcount -m16

2025-11-30 Thread Uros Bizjak
On Fri, Nov 28, 2025 at 10:30 AM Mathias Krause wrote: > > When generating 16-bit code via -m16, the NOP mcount code generation > emits a 5-byte NOP. However, that is neither a valid i8086 instruction > (long NOPs are PentiumPro+), nor would it get decoded as a 5-byte > instruction. It's a 4-byte

[r16-5778 Regression] FAIL: gfortran.dg/ISO_Fortran_binding_17.f90 -Os (test for excess errors) on Linux/x86_64

2025-11-30 Thread Haochen Jiang
On Linux/x86_64, 9f1ae12f0ee0d3cebb7a5249b7f741c51c5934a0 is the first bad commit commit 9f1ae12f0ee0d3cebb7a5249b7f741c51c5934a0 Author: Jose E. Marchesi Date: Sat Nov 29 16:57:51 2025 +0100 a68: build system changes caused FAIL: gfortran.dg/c-interop/allocate-errors.f90 -O0 at line