Re: [PATCH v2] GCC Driver : Enable very long gcc command-line option

2024-12-10 Thread Dora, Sunil Kumar
Hi Andrew, "Apologies, I just realized that my previous reply may not have gone through. I'm resending it for your reference." Thank you for your response. I just wanted to clarify the issue I’m facing. The concern is not that new files are being generated, but rather that the LTO debug files a

Re: [PATCH] aarch64: Extend SVE2 bit-select instructions for Neon modes.

2024-12-10 Thread Soumya AR
> On 10 Dec 2024, at 7:09 PM, Richard Sandiford > wrote: > > External email: Use caution opening links or attachments > > > Soumya AR writes: >> @@ -1815,6 +1849,42 @@ >> } >> ) >> >> +(define_insn "*aarch64_sve2_bsl2n_unpred" >> + [(set (match_operand:VDQ_I 0 "register_operand") >> +

Re: [PATCH] aarch64: Use SVE ASRD instruction with Neon modes.

2024-12-10 Thread Soumya AR
> On 10 Dec 2024, at 7:03 PM, Richard Sandiford > wrote: > > External email: Use caution opening links or attachments > > > Soumya AR writes: >> Hi Richard, >> >> Thanks for reviewing this! >> >> I’ve made the suggested changes and added the aarch64_ptrue_reg overload. > > The updated pa

Re: [PATCH v4] fold fold_truth_andor field merging into ifcombine

2024-12-10 Thread Richard Biener
On Mon, Dec 9, 2024 at 8:55 PM Alexandre Oliva wrote: > > This patch introduces various improvements to the logic that merges > field compares, while moving it into ifcombine. > > Before the patch, we could merge: > > (a.x1 EQNE b.x1) ANDOR (a.y1 EQNE b.y1) > > into something like: > > (((ty

RE: [PATCH 6/7]middle-end: add vec_init support for variable length subvector concatenation.

2024-12-10 Thread Richard Biener
On Mon, 9 Dec 2024, Tamar Christina wrote: > > >> So I think we can simply set const_n_elts to CONSTRUCTOR_NELTS > > >> for vector_typed_elts_p? > > >> > > > > > Done, > > gcc/ChangeLog: > > PR target/96342 > * expr.cc (store_constructor): add support for variable-length > vec

RE: [PATCH 5/7]middle-end: Add initial support for poly_int64 BIT_FIELD_REF in expand pass [PR96342]

2024-12-10 Thread Richard Biener
On Mon, 9 Dec 2024, Tamar Christina wrote: > > > if (need_to_clear && maybe_gt (size, 0) && !vector) > > > @@ -8058,9 +8058,9 @@ store_constructor (tree exp, rtx target, int > > > cleared, > > poly_int64 size, > > >element of TARGET, determined by counting the elements. */ >

Mark const parameters passed by invisible reference as readonly in the function body

2024-12-10 Thread Jan Hubicka
Hi, int: struct foo { int a; void bar() const; ~foo() { if (a != 42) __builtin_abort (); } }; __attribute__ ((noinline)) void test(const struct foo a) { int b = a.a; a.bar(); if (a.a != b) __builtin_printf ("optimize me away"); } struct foo is p

[PATCH] libstdc++: Enable memcpy relocation for more allocators [PR87604]

2024-12-10 Thread Jonathan Wakely
Currently the __relocate_a function implementing in-place relocation for std::vector only optimizes to memcpy for std::allocator, which is safe because we know the precise effects of std::allocator::construct and std::allocator::destroy. We could extend the optimization to other allocators which do

Re: [patch, libgfortran] Bug 117819 - Formatted READ with BZ in format fails

2024-12-10 Thread Jerry D
Pushed r15-6090-gcf406a6c Thanks for the review! Jerry On 12/10/24 12:15 AM, Andre Vehreschild wrote: Hi Jerry, patch looks good. Ok for mainline and backport after grace period. Thanks for the patch, Andre On Mon, 9 Dec 2024 20:31:08 -0800 Jerry D wrote: Hi all, The attached p

Re: [PATCH] driver: -fhardened and -z lazy/-z norelro [PR117739]

2024-12-10 Thread Dimitri John Ledkov
On Thu, 28 Nov 2024 at 15:12, Marek Polacek wrote: > > On Thu, Nov 28, 2024 at 11:27:32AM +, Dimitri John Ledkov wrote: > > Did bootstrap with gcc-14 (clean cherrypick, minor offsets). > > Built and tested on arm64 & x86_64. > > It resolved the reported problem. > > Thank you for this patch. >

[committed] libstdc++: Use feature test macro for pmr::polymorphic_allocator<>

2024-12-10 Thread Jonathan Wakely
Check the __glibcxx_polymorphic_allocator macro instead of just checking whether __cplusplus > 201703L. libstdc++-v3/ChangeLog: * include/bits/memory_resource.h (polymoprhic_allocator): Use feature test macro for P0339R6 features. --- Tested x86_64-linux. Pushed to trunk. libst

[PATCHv4 0/3] ada: Add GNU/Hurd x86_64 support

2024-12-10 Thread Samuel Thibault
Difference with v3: Refresh Samuel Thibault (3): ada: Factorize bsd signal definitions ada: Fix GNU/Hurd priority range ada: Add GNU/Hurd x86_64 support gcc/ada/Makefile.rtl | 52 +- ...-intnam__freebsd.ads => a-intnam__bsd.ads} | 2 +- gcc/ada/libgnarl/a-in

[PATCHv4 2/3] ada: Fix GNU/Hurd priority range

2024-12-10 Thread Samuel Thibault
GNU/Mach currently uses a 0..63 range. gcc/ada/ChangeLog: * libgnat/system-gnu.ads: New file. * Makefile.rtl (x86-gnuhurd): Use libgnat/system-gnu.ads instead of libgnat/system-freebsd.ads. Signed-off-by: Samuel Thibault --- gcc/ada/Makefile.rtl | 2 +- gcc/

[PATCHv4 1/3] ada: Factorize bsd signal definitions

2024-12-10 Thread Samuel Thibault
They are all the same on all BSD-like systems (including GNU/Hurd). gcc/ada/ChangeLog: * libgnarl/a-intnam__freebsd.ads: Rename to... * libgnarl/a-intnam__bsd.ads: ... new file. * libgnarl/a-intnam__dragonfly.ads: Remove file. * Makefile.rtl (x86-kfreebsd, x86-gnuh

[pushed: r15-6095] sarif-replay: fix missing URLs [PR117944]

2024-12-10 Thread David Malcolm
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r15-6095-gf102b82d3da6dd. gcc/ChangeLog: PR sarif-replay/117944 * libsarifreplay.cc (sarif_replayer::handle_result_obj): Get any helpUri from the rule_obj and pass it to add_rule. Signed-off-

Re: [PATCH] libstdc++: Avoid unnecessary copies in ranges::min/max [PR112349]

2024-12-10 Thread Jonathan Wakely
On Tue, 29 Oct 2024 at 13:20, Patrick Palka wrote: > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk and perhaps > 14? OK for both, thanks. > > -- >8 -- > > Use a local reference for the (now possibly lifetime extended) result of > *__first to avoid making unnecessary copies of it.

[r15-6091 Regression] FAIL: gcc.target/i386/pr117946.c (test for excess errors) on Linux/x86_64

2024-12-10 Thread haochen.jiang
On Linux/x86_64, 6fc3da8fa2af1d4ee154ea803636eabde358b553 is the first bad commit commit 6fc3da8fa2af1d4ee154ea803636eabde358b553 Author: Vladimir N. Makarov Date: Tue Dec 10 12:50:27 2024 -0500 [PR117946][LRA]: When assigning hard reg use biggest mode to check ira_prohibited_class_mode_r

[pushed] contrib: add 'libgdiagnostics' and 'sarif-replay' to bug_components

2024-12-10 Thread David Malcolm
contrib/ChangeLog: * gcc-changelog/git_commit.py (bug_components): Add 'libgdiagnostics' and 'sarif-replay'. Signed-off-by: David Malcolm --- contrib/gcc-changelog/git_commit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/g

Re: [PATCH 1/2] c++: print z candidate count and number them

2024-12-10 Thread David Malcolm
On Sat, 2024-12-07 at 10:19 -0500, Jason Merrill wrote: > On 11/15/24 8:02 PM, David Malcolm wrote: > > This patch is a followup to: > >    "c++: use diagnostic nesting [PR116253]" > > > > Following Sy Brand's UX suggestions in P2429R0 for example 1, this > > patch > > tweaks print_z_candidates to

Re: [PATCH 1/3] testsuite: RISC-V: Explicitly specify ABI when adding V and Zvbb options

2024-12-10 Thread Dimitar Dimitrov
On Mon, Dec 09, 2024 at 09:40:41AM -0800, Palmer Dabbelt wrote: > On Mon, 09 Dec 2024 09:05:10 PST (-0800), Robin Dapp wrote: > > > +/* { dg-additional-options "-mabi=lp64d" { target { rv64 } } } */ > > > +/* { dg-additional-options "-mabi=ilp32d" { target { rv32 } } } */ > > > > Wouldn't skipping

Re: [PATCH v4 1/1] C++: Add flag to generate resolver at default version implementation.

2024-12-10 Thread Richard Sandiford
writes: > This patch adds the TARGET_CREATE_FMV_DISPATCHER_AT_DEFAULT_IMPL flag > which changes FMV behavior for target_version functions to match the Arm > C Language Extension. > > The functional differences consist of: > 1. Generating the resolver for the dispatched symbol at the site of the >

Re: [PATCH] Remove vcond{,u,eq} optabs

2024-12-10 Thread Richard Biener
On Mon, Dec 9, 2024 at 11:54 PM Richard Sandiford wrote: > > This patch removes the remaining traces of the vcond{,u,eq} optabs. > Earlier patches removed the target-independent uses and I couldn't > find any direct references to either the *_optabs or the ifns > in target-specific code. > > Teste

Re: [PATCH] Remove vcond{,u,eq} optabs

2024-12-10 Thread Richard Sandiford
Richard Biener writes: > On Mon, Dec 9, 2024 at 11:54 PM Richard Sandiford > wrote: >> >> This patch removes the remaining traces of the vcond{,u,eq} optabs. >> Earlier patches removed the target-independent uses and I couldn't >> find any direct references to either the *_optabs or the ifns >> i

Re: [PATCH] testsuite: Mark gcc.c-torture/execute/memcpy-a?.c tests expensive

2024-12-10 Thread Maciej W. Rozycki
On Tue, 3 Dec 2024, Mike Stump wrote: > > These tests can take several seconds per compilation to complete, taking > > total elapsed time measured in minutes. Mark them as expensive so as to > > let people skip them where they want to save on testing time. > > > > gcc/testsuite/ > > *

Re: [PATCH] aarch64: Extend SVE2 bit-select instructions for Neon modes.

2024-12-10 Thread Richard Sandiford
Soumya AR writes: > @@ -1815,6 +1849,42 @@ >} > ) > > +(define_insn "*aarch64_sve2_bsl2n_unpred" > + [(set (match_operand:VDQ_I 0 "register_operand") > + (ior:VDQ_I > + (and:VDQ_I > + (match_operand:VDQ_I 1 "register_operand") > + (match_operand:VDQ_I 2 "register_

Re: [PATCH] simplify-rtx: Limit number of elts in when encoding.

2024-12-10 Thread Robin Dapp
Gentle ping. Any guidance on how to continue here? -- Regards Robin

Re: [PATCH v1 1/1] aarch64: fix fp8 cpuinfo feature names

2024-12-10 Thread Richard Earnshaw (lists)
On 03/12/2024 10:41, Claudio Bantaloukas wrote: On 12/3/2024 10:24 AM, Kyrylo Tkachov wrote: Hi Claudio, On 2 Dec 2024, at 19:14, Claudio Bantaloukas wrote: The previous version of the patch was based on the mistaken assumption that features in /proc/cpuinfo had matching names to the fe

Re: [PATCH] testsuite/gcc.dg/tree-ssa/pr117973-1.c: New test

2024-12-10 Thread Richard Biener
On Mon, Dec 9, 2024 at 8:38 PM Hans-Peter Nilsson wrote: > > I could probably assume that this is what you had in mind, > but anyway: Ok to commit? OK. > -- >8 -- > PR117973 covers the aspect of > non-LOGICAL_OP_NON_SHORT_CIRCUIT targets for PR111456, for > which the test-case gcc.dg/tree-ssa/pr

[committed] testsuite: Fix cpp0x/trivial1.C for std::is_trivial deprecation in C++26

2024-12-10 Thread Jonathan Wakely
std::is_trivial is deprecated in C++26, so this test needs to use -Wno-deprecated now. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/trivial1.C: Add -Wno-deprecated for C++26. --- Tested x86_64-linux. Pushed to trunk. gcc/testsuite/g++.dg/cpp0x/trivial1.C | 1 + 1 file changed, 1 insertion(+

[PATCH] libstdc++: Disable __gnu_debug::__is_singular(T*) in constexpr [PR109517]

2024-12-10 Thread Jonathan Wakely
Because of PR c++/85944 we have several bugs where _GLIBCXX_DEBUG causes errors for constexpr code. Although Bug 117966 could be fixed by avoiding redundant debug checks in std::span, and Bug 106212 could be fixe by avoiding redundant debug checks in std::array, there are many more cases where the

Re: [PATCH 2/2] c++/coroutines: handle (new-)extended alignment [PR104177]

2024-12-10 Thread Arsen Arsenović
Jason Merrill writes: > On 9/18/24 4:36 PM, Arsen Arsenović wrote: >> This patch implements support for frames and promises with new-extended >> alignment. >> There are two kinds of alignment to worry about here: >> - Promise alignment, which causes "internal" padding inside the frame >>struc

Re: [PATCH 2/2] c++/coroutines: handle (new-)extended alignment [PR104177]

2024-12-10 Thread Jason Merrill
On 12/10/24 10:58 AM, Arsen Arsenović wrote: Jason Merrill writes: On 9/18/24 4:36 PM, Arsen Arsenović wrote: This patch implements support for frames and promises with new-extended alignment. There are two kinds of alignment to worry about here: - Promise alignment, which causes "internal" p

Re: [PATCH] c++: ICE with -Wduplicated-branches in template [PR117880]

2024-12-10 Thread Jason Merrill
On 12/9/24 6:28 PM, Marek Polacek wrote: Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk/14? OK. -- >8 -- In a template, for things like void() we'll create a CAST_EXPR with a null operand. That causes a crash with -Wduplicated-branches on: false ? void() : void(); because w

Re: [PATCH 2/2] c++/coroutines: handle (new-)extended alignment [PR104177]

2024-12-10 Thread Iain Sandoe
> On 10 Dec 2024, at 16:20, Arsen Arsenović wrote: > > Trimmed sending this email by accident. Reposting the latter section: > > WRT the question of Clang compatibility: the layout of the frame is > changed when internal padding is present (i.e. when the promise type has > an alignment great

Re: [PATCH 3/6] libstdc++: port bitwise relocatable away from is_trivial

2024-12-10 Thread Jonathan Wakely
On Mon, 9 Dec 2024 at 13:21, Jonathan Wakely wrote: > > On 09/12/24 13:22 +0100, Giuseppe D'Angelo wrote: > >Hello, > > > >This aligns __is_bitwise_relocatable with its modern meaning, that is, > >checking for trivial move construction and destruction. > > Looks good, thanks. > > >Thanks, > >-- >

Re: [PATCH] aarch64: Use SVE ASRD instruction with Neon modes.

2024-12-10 Thread Soumya AR
Hi Richard, Thanks for reviewing this! I’ve made the suggested changes and added the aarch64_ptrue_reg overload. Thank you for providing the implementation for this, I have added you as a co-author for the patch, hope that works :) Best, Soumya > On 5 Dec 2024, at 10:08 PM, Richard Sandiford

Re: [PATCH 3/6] libstdc++: port bitwise relocatable away from is_trivial

2024-12-10 Thread Jonathan Wakely
On Tue, 10 Dec 2024 at 09:56, Jonathan Wakely wrote: > > On Mon, 9 Dec 2024 at 13:21, Jonathan Wakely wrote: > > > > On 09/12/24 13:22 +0100, Giuseppe D'Angelo wrote: > > >Hello, > > > > > >This aligns __is_bitwise_relocatable with its modern meaning, that is, > > >checking for trivial move const

Re: [PATCH 2/2] Integrate scev-cprop into DCE [PR90594]

2024-12-10 Thread Feng Xue OS
Thanks, and please see my comments as below: >> Currently, if could, scev-cprop unconditionally replaces loop closed ssa with >> an expression built from loop initial value and loop niter, which might cause >> redundant code-gen when all interior computations related to IV inside loop >> are also

Re: [PATCH V2] Fix inaccuracy in cunroll/cunrolli when considering what's innermost loop.

2024-12-10 Thread Richard Biener
On Mon, 9 Dec 2024, liuhongt wrote: > > Please pass 'sbitmap' instead of auto_sbitmap&, it should properly > > decay to that.  Applies everywhere I think. > > > > Changed. > > > In fact I wonder whether we should simply populate the bitmap > > from a > > > > for (auto loop : loops_list (cfun,

[PATCH v3 1/2] Fix type compatibility for types with flexible array member [PR113688,PR114713,PR117724]

2024-12-10 Thread Martin Uecker
As requested, I split up into one part for the TYPE_MODE and  another one for the array size to help with git bisecting. This is the first part. Bootstrapped and regression tested on x86_64. Allow the TYPE_MODE of a type with an array as last member to differ from another compatible type.

[PATCH v3 2/2] Fix type compatibility for types with flexible array member [PR113688,PR114713,PR117724]

2024-12-10 Thread Martin Uecker
The second part now only contains the changes for array size. I added back a special case for this instead of having the 'ignore_size' flag (which I would nevertheless assume might be needed in the future when matching pointer types). In this version, I added an exception to the special case t

Re: [Patch, fortran] PR117797 - [13/14/15 Regression] ICE in gfc_get_array_span

2024-12-10 Thread Paul Richard Thomas
Hi Andre, I don't think that's possible but I am prepared to be proven wrong :-) Do you have an example in mind, where this might happen? Regards Paul On Tue, 10 Dec 2024 at 10:52, Andre Vehreschild wrote: > Hi Paul, > > in principle the patch looks sound, but is the vptr_size always the sam

Re: [Patch, fortran] PR117797 - [13/14/15 Regression] ICE in gfc_get_array_span

2024-12-10 Thread Andre Vehreschild
Hi Paul, no, I don't have an example in mind out of the box. May be something like: type :: T character :: s(:) character :: c end type class(T) :: foo(2) But that is just a guess. I was triggered only by the first condition your patch removes, where span was used instead of the of element

[pushed][PR117946][LRA]: When assigning hard reg use biggest mode to check ira_prohibited_class_mode_regs

2024-12-10 Thread Vladimir Makarov
The following patch fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117946 The patch was successfully tested and bootstrapped on x86_64, ppc64le, aarch64. commit 6fc3da8fa2af1d4ee154ea803636eabde358b553 Author: Vladimir N. Makarov Date: Tue Dec 10 12:50:27 2024 -0500 [PR117946][LRA

Re: [PATCH 3/6] libstdc++: port bitwise relocatable away from is_trivial

2024-12-10 Thread Giuseppe D'Angelo
Hi, On 10/12/2024 10:56, Jonathan Wakely wrote: We need this to depend on is_trivially_copyable too, so we can use memcpy. I'm testing a fix now to fix bootstrap. There's a broader question I think, which is how much we want to "bend" the language rules. [basic] isn't really super-explicit

Re: [Patch, fortran] PR117797 - [13/14/15 Regression] ICE in gfc_get_array_span

2024-12-10 Thread Andre Vehreschild
Hi Paul, in principle the patch looks sound, but is the vptr_size always the same as a descriptor->span? Can't the later be larger because of padding? If that is the case, then the first `else if (UNLIMITED...` you removed in `gfc_get_array_span ()` would return a larger number. Regards,

[PATCH] Fix some more is_trivial C++26 deprecation warnings

2024-12-10 Thread Giuseppe D'Angelo
Hello, This patch fixes a C++26 deprecation warning in g++'s (not libstdc++) autotests. Thanks, -- Giuseppe D'Angelo From c1abe8e7a219e6218478249b93945c96ac81a78a Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Tue, 10 Dec 2024 10:49:10 +0100 Subject: [PATCH] Fix some more is_trivial C

Re: [PATCH 2/2] Integrate scev-cprop into DCE [PR90594]

2024-12-10 Thread Richard Biener
On Tue, Dec 10, 2024 at 11:04 AM Feng Xue OS wrote: > > Thanks, and please see my comments as below: > > >> Currently, if could, scev-cprop unconditionally replaces loop closed ssa > >> with > >> an expression built from loop initial value and loop niter, which might > >> cause > >> redundant co

Re: [PATCH] aarch64: Use SVE ASRD instruction with Neon modes.

2024-12-10 Thread Richard Sandiford
Soumya AR writes: > Hi Richard, > > Thanks for reviewing this! > > I’ve made the suggested changes and added the aarch64_ptrue_reg overload. The updated patch is OK, thanks. > Thank you for providing the implementation for this, I have added you > as a co-author for the patch, hope that works :

Re: [PATCH 1/3] testsuite: RISC-V: Explicitly specify ABI when adding V and Zvbb options

2024-12-10 Thread Dimitar Dimitrov
On Mon, Dec 09, 2024 at 06:05:10PM +0100, Robin Dapp wrote: > > +/* { dg-additional-options "-mabi=lp64d" { target { rv64 } } } */ > > +/* { dg-additional-options "-mabi=ilp32d" { target { rv32 } } } */ > > Wouldn't skipping those tests also be reasonable? > I.e. adding a target to the compile dir

Re: [Patch, fortran] PR117901 - [15 regression] class_transformational_1.f90 with -O3 and -fcheck=bounds gives ICE in make_ssa_name_fn

2024-12-10 Thread Andre Vehreschild
Hi Paul, the patch looks ok to me, but one questions remains: You are doing this for all character arrays. Would it not be sufficient to create the DECL only for deferred chararrays? Ok for mainline and with a grace period for backporting. Thanks for the patch, Andre On Tue, 10 Dec 202

Re: [PATCH] AArch64: Cleanup alignment macros

2024-12-10 Thread Richard Sandiford
Wilco Dijkstra writes: > Hi Richard, > >>> A common case is a constant string which is compared against some >>> argument. Most string functions work on 8 or 16-byte quantities. If we >>> ensure the whole array fits in one aligned load, we save time in the >>> string function. >>> >>> Runtime data

[Patch, fortran] PR117797 - [13/14/15 Regression] ICE in gfc_get_array_span

2024-12-10 Thread Paul Richard Thomas
Hi All, This was yet another regression that I caused, which was backported and so I am rather anxious to fix it promptly. The modifications that I made to gfc_get_array_span caused unlimited polymorphic array components to be missed, when contained in a dummy. Instead, the dummy was taken to be

Re: [patch, libgfortran] Bug 117819 - Formatted READ with BZ in format fails

2024-12-10 Thread Andre Vehreschild
Hi Jerry, patch looks good. Ok for mainline and backport after grace period. Thanks for the patch, Andre On Mon, 9 Dec 2024 20:31:08 -0800 Jerry D wrote: > Hi all, > > The attached patch fixes this bug by checking for the case of a short > READ that should be padded with blanks and if

[Patch, fortran] PR117901 - [15 regression] class_transformational_1.f90 with -O3 and -fcheck=bounds gives ICE in make_ssa_name_fn

2024-12-10 Thread Paul Richard Thomas
Hi All, This was a rather vexatious bug to track down and squash. I was led astray by the appearance of the bug in the tests for the implementation of intrinsic transformational functions with class arguments. It turns out to be an incipient bug in the handling of character(*) array associate name

Re: [PATCH] aarch64: Extend SVE2 bit-select instructions for Neon modes.

2024-12-10 Thread Soumya AR
> On 5 Dec 2024, at 10:25 PM, Richard Sandiford > wrote: > > External email: Use caution opening links or attachments > > > Soumya AR writes: >> NBSL, BSL1N, and BSL2N are bit-select intructions on SVE2 with certain >> operands >> inverted. These can be extended to work with Neon modes. >>

Re: [patch, libgfortran] Bug 117819 - Formatted READ with BZ in format fails

2024-12-10 Thread FX Coudert
Hi Jerry, This looks okay to me, but maybe leave 48 hours for others to comment? Best, FX

[committed] libstdc++: Revert change to __bitwise_relocatable

2024-12-10 Thread Jonathan Wakely
This reverts r15-6060-ge4a0157c2397c9 so that __is_bitwise_relocatable depends only on is_trivial. To avoid the deprecation warnings for C++26, use the __is_trivial built-in directly instead of std::is_trivial. We need to be sure that the type is trivially copyable, not just trivially constructibl

Re: [PATCH 3/6] libstdc++: port bitwise relocatable away from is_trivial

2024-12-10 Thread Jonathan Wakely
On Tue, 10 Dec 2024 at 10:48, Giuseppe D'Angelo wrote: > > Hi, > > On 10/12/2024 10:56, Jonathan Wakely wrote: > > We need this to depend on is_trivially_copyable too, so we can use memcpy. > > > > I'm testing a fix now to fix bootstrap. > > There's a broader question I think, which is how much we

Re: [PATCH v4] arm: [MVE intrinsics] Fix support for predicate constants [PR target/114801]

2024-12-10 Thread Richard Earnshaw (lists)
On 09/12/2024 21:11, Christophe Lyon wrote: In this PR, we have to handle a case where MVE predicates are supplied as a const_int, where individual predicates have illegal boolean values (such as 0xc for a 4-bit boolean predicate). To avoid the ICE, fix the constant (any non-zero value is conver

Re: [PATCH v3 2/2] Fix type compatibility for types with flexible array member [PR113688,PR114713,PR117724]

2024-12-10 Thread Richard Biener
On Tue, 10 Dec 2024, Martin Uecker wrote: > > The second part now only contains the changes for array size. > > I added back a special case for this instead of having the > 'ignore_size' flag (which I would nevertheless assume might be > needed in the future when matching pointer types). I see

[PATCH V2] RISC-V: Update Xsfvqmacc and Xsfvfnrclip extension's testcases.

2024-12-10 Thread Liao Shihua
Update Sifive Xsfvqmacc and Xsfvfnrclip extension's testcases. Co-Authored by: Jiawei Chen Co-Authored by: Yulong Shi Co-Authored by: Yixuan Chen gcc/ChangeLog: * config/riscv/vector.md: Add sf_vqmacc and sf_vfnrclip to the has_vtype_op,ta,ma. gcc/testsuite/ChangeLog: * gcc

Re: [PATCH v3 1/2] Fix type compatibility for types with flexible array member [PR113688,PR114713,PR117724]

2024-12-10 Thread Richard Biener
On Tue, 10 Dec 2024, Martin Uecker wrote: > > As requested, I split up into one part for the TYPE_MODE and  > another one for the array size to help with git bisecting. This > is the first part. > > > Bootstrapped and regression tested on x86_64. OK. Thanks, Richard. > > > Allow the TYPE

Re: [PATCH 1/3] testsuite: RISC-V: Explicitly specify ABI when adding V and Zvbb options

2024-12-10 Thread Jeff Law
On 12/10/24 12:48 PM, Dimitar Dimitrov wrote: On Mon, Dec 09, 2024 at 06:05:10PM +0100, Robin Dapp wrote: +/* { dg-additional-options "-mabi=lp64d" { target { rv64 } } } */ +/* { dg-additional-options "-mabi=ilp32d" { target { rv32 } } } */ Wouldn't skipping those tests also be reasonable?

[PATCHv4 3/3] ada: Add GNU/Hurd x86_64 support

2024-12-10 Thread Samuel Thibault
This is essentially the same as the i386-pc-gnu section, the differences are the same as between freebsd i386 and freebsd x86_64. gcc/ada/ChangeLog: * Makefile.rtl: Add x86_64-pc-gnu section. Signed-off-by: Samuel Thibault --- gcc/ada/Makefile.rtl | 36 +

Re: [PATCHv3 0/3] ada: Add GNU/Hurd x86_64 support

2024-12-10 Thread Samuel Thibault
Hello, Ping on this? Samuel Samuel Thibault, le mar. 12 nov. 2024 21:45:19 +0100, a ecrit: > Difference with v2: dropped the ChangeLog changes > > Samuel Thibault (3): > ada: Factorize bsd signal definitions > ada: Fix GNU/Hurd priority range > ada: Add GNU/Hurd x86_64 support > > gcc/a

Re: [PATCH 1/2] c++: print z candidate count and number them

2024-12-10 Thread Jason Merrill
On 12/10/24 6:05 PM, David Malcolm wrote: On Sat, 2024-12-07 at 10:19 -0500, Jason Merrill wrote: On 11/15/24 8:02 PM, David Malcolm wrote: This patch is a followup to:    "c++: use diagnostic nesting [PR116253]" Following Sy Brand's UX suggestions in P2429R0 for example 1, this patch tweaks

Re: [PATCHv3 3/3] ada: Add GNU/Hurd x86_64 support

2024-12-10 Thread Eric Botcazou
> This is essentially the same as the i386-pc-gnu section, the differences > are the same as between freebsd i386 and freebsd x86_64. > > gcc/ada/ChangeLog: > > * Makefile.rtl: Add x86_64-pc-gnu section. It is outdated and probably needs to have $(TRASYM_DWARF_UNIX_PAIRS) and the associ