Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}.cc rules

2025-04-05 Thread Iain Sandoe
Hi Jakub Thanks for doing this... > On 28 Mar 2025, at 14:39, Jakub Jelinek wrote: > > +cobol/charmaps.cc cobol/valconv.cc: cobol/%.cc: $(LIB_SOURCE)/%.cc > + -l='ec\|common-defs\|io\|gcobolio\|libgcobol\|gfileio\|charmaps'; \ > + l=$$l'\|valconv\|exceptl'; \ > + sed -e '/^#include/

RE: [PATCH] change cbl_field_data_t::etc_t::value from _Float128 to tree

2025-04-05 Thread Robert Dubner
I am enclosing a patch to be applied on top of yours. (Your patch got us down to zero errors in the "Coughlan" tests, 2 UAT errors, and 4 errors in the NIST tests. Well done!) This one passes all of my tests, in both ASCII and EBCDIC forms. It also passes "make check-cobol". That's on my x_86_

Re: [pushed] c++: lambda in requires outside template [PR99546]

2025-04-05 Thread Patrick Palka
On Fri, 4 Apr 2025, Patrick Palka wrote: > On Fri, 4 Apr 2025, Jason Merrill wrote: > > > On 4/4/25 4:35 PM, Patrick Palka wrote: > > > On Fri, 4 Apr 2025, Jason Merrill wrote: > > > > > > > Tested x86_64-pc-linux-gnu, applying to trunk. > > > > > > > > -- 8< -- > > > > > > > > Since r10-7441

Re: [PATCH] c++: Rename -fmodules-ts to -fmodules in diagnostics

2025-04-05 Thread Jason Merrill
On 4/1/25 7:49 AM, Nathaniel Shead wrote: Tested on x86_64-pc-linux-gnu, OK for trunk if full bootstrap + regtest succeeds? OK. -- >8 -- This replaces some usages of the old -fmodules-ts flag with the new -fmodules flag made in r15-5112-gd9c3c3c85665b2. gcc/cp/ChangeLog: * parser.c

[COMMITTED 046/141] gccrs: ast-builder: Add new methods for functions, traits and tuples.

2025-04-05 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * ast/rust-ast-builder.cc: New methods. * ast/rust-ast-builder.h: Declare them. --- gcc/rust/ast/rust-ast-builder.cc | 62 gcc/rust/ast/rust-ast-builder.h | 36 +-- 2 files changed, 96 inser

Re: [RFC] [C]New syntax for the argument of counted_by attribute for C language

2025-04-05 Thread Martin Uecker
Am Montag, dem 31.03.2025 um 13:59 -0700 schrieb Bill Wendling: > > I'd like to offer up this to solve the issues we're facing. This is a > > combination of everything that's been discussed here (or at least that > > I've been able to read in the centi-thread :-). Thanks! I think this proposal

Re: [PATCH] gimple: sccopy: Prune removed statements from SCCs [PR117919]

2025-04-05 Thread Filip Kastl
On Mon 2025-03-17 21:31:13, Mikael Morin wrote: > Le 28/02/2025 à 17:01, Filip Kastl a écrit : > > diff --git a/gcc/gimple-ssa-sccopy.cc b/gcc/gimple-ssa-sccopy.cc > > index 9f25fbaff36..7ffb5718ab6 100644 > > --- a/gcc/gimple-ssa-sccopy.cc > > +++ b/gcc/gimple-ssa-sccopy.cc > > @@ -568,6 +568,19 @

[COMMITTED 010/146] rust: Desugar IfLet* into MatchExpr

2025-04-05 Thread arthur . cohen
From: Marc Poulhiès Replace the "regular" AST->HIR lowering for IfLet* with a desugaring into a MatchExpr. Desugar a simple if let: if let Some(y) = some_value { bar(); } into: match some_value { Some(y) => {bar();}, _ => () } Same applies for IfLetExprConseqElse (

Re: [PATCH] [testsuite] [riscv] xfail ssa-dom-cse-2 on riscv64

2025-04-05 Thread Jeff Law
On 3/31/25 12:59 PM, Alexandre Oliva wrote: For the same reasons that affect alpha and other targets, gcc.dg/tree-ssa/ssa-dom-cse-2.c fails to be optimized to the expected return statement: the array initializer is vectorized into pairs, and DOM cannot see through that. Add riscv*-*-* to the

[pushed] c++: constexpr ref template arg [PR119194]

2025-04-05 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, applying to trunk/14. -- 8< -- Here we were assuming that a constant variable appearing in a template argument is used for its value. We also need to handle seeing its address taken. PR c++/119194 gcc/cp/ChangeLog: * decl2.cc (min_vis_expr_r) [ADDR_

[Committed] Doc: make regenerate-opt-urls

2025-04-05 Thread Sandra Loosemore
I keep forgetting to do this :-( gcc/c-family/ChangeLog * c.opt.urls: Regenerate. gcc/d/ChangeLog * lang.opt.urls: Regenerate. --- gcc/c-family/c.opt.urls | 3 +++ gcc/d/lang.opt.urls | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gcc/c-family/c.opt.urls b/gcc/c

[COMMITTED] Doc: Document -Wpsabi [PR81831]

2025-04-05 Thread Sandra Loosemore
Per the issue, there were a couple places in the manual where -Wno-psabi was mentioned, but the option itself was not documented. gcc/c-family/ChangeLog PR c/81831 * c.opt (Wpsabi): Remove "Undocumented" modifier and add a documentation string. gcc/ChangeLog PR c/8

Re: [RFC] [C]New syntax for the argument of counted_by attribute for C language

2025-04-05 Thread Bill Wendling
On Fri, Apr 4, 2025, 12:23 PM Qing Zhao wrote: > > > > On Apr 4, 2025, at 13:09, Martin Uecker wrote: > > > > Am Freitag, dem 04.04.2025 um 18:51 +0200 schrieb Michael Matz: > >> Hello, > >> > >> On Fri, 4 Apr 2025, Qing Zhao wrote: > >> > >>> So, a different attribute name “counted_by_exp” migh

Re: [PATCH] OpenMP: 'interop' construct - add ME support + target-independent libgomp

2025-04-05 Thread Tobias Burnus
Paul-Antoine Arras wrote: Thanks Sandra and Jakub for your comments. Likewise thanks to them and to you for the patch. Minor comments: include/ChangeLog: * gomp-constants.h (GOMP_DEVICE_DEFAULT_OMP_61): Define. (GOMP_INTEROP_FLAG_TARGET): Define. (GOMP_INTEROP_FLAG_TA

[COMMITTED 106/141] gccrs: expansion: Expand generic args in generic type path segments

2025-04-05 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * expand/rust-expand-visitor.cc (ExpandVisitor::visit): Correctly visit the generic args of a generic type path segment. gcc/testsuite/ChangeLog: * rust/compile/issue-2015.rs: New test. --- gcc/rust/expand/rust-expand-visitor.cc

[PATCH v2 0/4] Libsanitizer improvements

2025-04-05 Thread Aleksandar Rakic
From: Aleksandar Rakic Chao-ying Fu (2): Fix libsanitizer linkage options for cross toolchains Enable LSAN and TSAN for mips with the 64-bit abi Faraz Shahbazker (1): Add shadow-map for n32 ABI Jean Lee (1): Add uclibc support gcc/gcc.cc| 20 ---

Re: [PATCH] cobol: Do not overload int64_t, overload long and long long.

2025-04-05 Thread Iain Sandoe
> On 20 Mar 2025, at 19:28, Robert Dubner wrote: > > Although I am confused about how _int64_t can be anything but a 64-bit > signed integer, and because it is my understanding that long and long long > really *do* change from platform to platform, 32b Darwin/macOS had 64b integers as “long l

[COMMITTED 090/146] gccrs: Fix NR2.0 compiler ICE caused by Generics in Enums

2025-04-05 Thread arthur . cohen
From: Liam Naddell gcc/rust/ChangeLog: * resolve/rust-late-name-resolver-2.0.cc: Change the late name resolver to enter proper lexical scope during typechecking * resolve/rust-late-name-resolver-2.0.h: Add needed prototype to header * resolve/rust-toplevel

[PATCH v3] Don't instrument exit edges after musttail

2025-04-05 Thread Andi Kleen
When -fprofile-generate is used musttail often fails because the compiler adds instrumentation after the tail calls. This patch prevents adding exit extra edges after musttail because for a tail call the execution leaves the function and can never come back even on a unwind or exception. This is

Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}.cc rules

2025-04-05 Thread Jakub Jelinek
On Sat, Mar 29, 2025 at 04:03:07PM +, Iain Sandoe wrote: > > > > On 29 Mar 2025, at 15:56, Jakub Jelinek wrote: > > > > On Sat, Mar 29, 2025 at 03:50:54PM +, Iain Sandoe wrote: > >>> I'm not sure if sed -E is portable enough (sure, I know it is in POSIX, > >>> but > >>> that is not eno

<    1   2   3