[PATCH v4 1/3] gomp: Various fixes for SVE types [PR101018]

2025-03-17 Thread Tejas Belagod
From: Richard Sandiford Various parts of the omp code checked whether the size of a decl was an INTEGER_CST in order to determine whether the decl was variable-sized or not. If it was variable-sized, it was expected to have a DECL_VALUE_EXPR replacement, as for VLAs. This patch uses poly_int_tr

Re: [PATCH v3 3/3] AArch64: Diagnose OpenMP offloading when SVE types involved.

2025-03-17 Thread Tejas Belagod
On 3/7/25 5:33 PM, Jakub Jelinek wrote: On Fri, Mar 07, 2025 at 11:49:37AM +, Richard Sandiford wrote: +case TCTX_OMP_DEVICE_ADDR: + if (!silent_p) + error_at (loc, "SVE type %qT not allowed in target device clauses", type); Is the final error message accurate? This TCTX v

[PATCH v4 3/3] AArch64: Diagnose OpenMP offloading when SVE types involved.

2025-03-17 Thread Tejas Belagod
The target clause in OpenMP is used to offload loop kernels to accelarator peripeherals. target's 'map' clause is used to move data from and to the accelarator. When the data is SVE type, it may not be suitable because of various reasons i.e. the two SVE targets may not agree on vector size or so

[PATCH v4 2/3] Add function to strip pointer type and get down to the actual pointee type.

2025-03-17 Thread Tejas Belagod
Add a function to traverse down the pointer layers to the pointee type. gcc/ChangeLog: * tree.h (strip_pointer_types): New. --- gcc/tree.h | 9 + 1 file changed, 9 insertions(+) diff --git a/gcc/tree.h b/gcc/tree.h index 6f45359f103..77eddc4515c 100644 --- a/gcc/tree.h +++ b/gcc/

Re: Re: [PATCH] cobol: Fifteen new cobol.dg testscases.

2025-03-17 Thread Simon Sobisch
Is there a compelling reason for all this output? As a rule of thumb I'd suggest to only output if the data has an unexpected value or if the test is about DISPLAY. ... maybe the compiler is expected (and already capable?) to know the data values and optimize all comparisons away - in this case

Patch about Bug 119222 - Conversion of inf to integer is not diagnosed [Classifier] a single patch [Tags] conversion warning ;c++; inf to integer [Brief Summary ]Add a judgement in the RDIV_EXPR case

2025-03-17 Thread Gwen Fu
Patch about Bug 119222 - Conversion of inf to integer is not diagnosed [Classifier] a single patch [Tags] conversion warning ;c++; inf to integer [Brief Summary] Add a judgement in the RDIV_EXPR case [Remark] This patch does not support -Wall -Wextra to capture inf to integer warnings . The

[RISC-V] Fix another unreported code quality regression

2025-03-17 Thread Jeff Law
[ The more verbose explanation than usual is primarily for Daniel and Shreya's benefit. ] -- So here's the other case I was just looking at. This is a slightly modified version of some code from 500.perlbench which shows another nop logical operation: void frob (void); typedef struct av

[COMMITTED 142/145] gccrs: Added options for ParseMode

2025-03-17 Thread arthur . cohen
From: badumbatish gcc/rust/ChangeLog: * ast/rust-fmt.cc (Pieces::collect): Added options for ParseMode * ast/rust-fmt.h (collect_pieces): Likewise. (struct Pieces): Likewise. * expand/rust-macro-builtins-format-args.cc (MacroBuiltin::format_args_handler):

Re: [PATCH] c++: ICE when substituting packs into type aliases [PR118104]

2025-03-17 Thread Patrick Palka
On Mon, 17 Mar 2025, Marek Polacek wrote: > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk/14/13? > > -- >8 -- > r12-1094 mentions that adding the assert didn't lead to any regressions > in the testsuite, but this test case demonstrates that we can reach it > with valid code. > > He

RE: [PATCH] cobol: Do not include C++ headers after system.h.

2025-03-17 Thread Robert Dubner
Iain, I tried it in my local test suite, and everything worked. So, it looks good to me. You'll probably notice that you misspelled "system" as "sytem", so I won't mention it. > -Original Message- > From: Iain Sandoe > Sent: Monday, March 17, 2025 19:52 > To: rdub...@symas.com; gcc-patc

[PATCH] cobol: Fifteen new cobol.dg testscases.

2025-03-17 Thread Robert Dubner
These tests have been curated for relative shortness of output. The worst case has 61 lines. I am hoping that this one is... Okay for trunk? >From 457d94c65047856123185716e882af18833c67ee Mon Sep 17 00:00:00 2001 From: Bob Dubner mailto:rdub...@symas.com Date: Mon, 17 Mar 2025 21:47:05 -0400 S

[Pushed] Fix r15-8073 (Pass -macos_version_min to the linker)

2025-03-17 Thread Andrew Pinski
So what is happening is gcc_cv_ld64_macosx_version_min is being used for the replacement and being set in a few locations but gcc_cv_ld64_macos_version_min is set in others. Since the auto-host.h variable is named LD64_HAS_MACOS_VERSION_MIN, I changed over to remove the x from the name. Committed

[PATCH] cobol: Do not include C++ headers after system.h.

2025-03-17 Thread Iain Sandoe
tested on x86_64-darwin, linux and aarch64-linux, OK for trunk? thanks Iain --- 8< --- The headers mentioned in parse.y are already unconditionally included by system.h (via cobol-system.h). gcc/cobol/ChangeLog: * parse.y: Remove c++ header includes appearing after sytem.h. Si

Re: [PATCH] c: Fix ICE in error recovery when checking struct compatibility [PR118061]

2025-03-17 Thread Joseph Myers
On Sun, 16 Mar 2025, Martin Uecker wrote: > > Here is a small patch fixing an error recovery issue. > > Bootstrapped and regression tested on x86_64. > > > commit 465773af2bdd552184b935e5dc6b3db9e0e4e327 > Author: Martin Uecker > Date: Sat Mar 1 17:21:25 2025 +0100 > > c: Fix ICE in er

[PATCH] c++: fix reporting routines re-entered [PR119303]

2025-03-17 Thread Marek Polacek
Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- We crash while we call warning_at ("inline function used but never defined") since it invokes dump_template_bindings -> tsubst -> ... -> convert_like -> ... -> c_common_truthvalue_conversion -> warning_at ("enum constant in bool

Re: [PATCH] Fortran: check type-spec in ALLOCATE of dummy with assumed length [PR119338]

2025-03-17 Thread Jerry D
On 3/17/25 2:47 PM, Harald Anlauf wrote: Dear all, F2003:C626 was only partly implemented: we missed the case of ALLOCATE of character dummy arguments with assumed length, where the type-spec must use asterisk, i.e. (*). Regtesting found one testcase that had a previously undetected error and n

Re: [PATCH] gcc.dg/pr90838-2.c: Replace long with long long

2025-03-17 Thread Jakub Jelinek
On Mon, Mar 17, 2025 at 03:04:48PM -0700, H.J. Lu wrote: > Since gcc.dg/pr90838-2.c is only for 64-bit integer, replace long with > long long for ILP32 targets. > > * gcc.dg/pr90838-2.c (ctz4): Replace long with long long. > > Signed-off-by: H.J. Lu > --- > gcc/testsuite/gcc.dg/pr90838-2.

Re: [PATCH] c: Fix tagname confusion for typedef redefinitions [PR118765]

2025-03-17 Thread Joseph Myers
On Sun, 16 Mar 2025, Martin Uecker wrote: > This is a workaround for another issue related to PR118765. > I do not yet understand what goes wrong in merge_decls in > this case (somehow we end up with TYPE_DECLS where > DECL_ORIGINAL_TYPE is not set correctly, so we can not > determine the correct

Re: [PATCH] c: Fix bug in typedef redefinitions of tagged types [PR118765]

2025-03-17 Thread Joseph Myers
On Sun, 16 Mar 2025, Martin Uecker wrote: > This is a partial fix for PR118765. > > > Bootstrapped and regression tested on x86_64. > > > commit 84ba284a14bb5249d923affbf3f0f95a993c3a29 > Author: Martin Uecker > Date: Sat Mar 1 21:32:21 2025 +0100 > > c: Fix bug in typedef redefinition

[COMMITTED] libgcobol: Remove unused headers from shared sources.

2025-03-17 Thread Robert Dubner
With thanks to Iain for determining those #includes were unnecessary. Bob D. >From c7bba243fc0feea42f4be864e8bf73bc9249d9d5 Mon Sep 17 00:00:00 2001 From: Bob Dubner mailto:rdub...@symas.com Date: Mon, 17 Mar 2025 16:45:17 -0400 Subject: [PATCH] libgcobol: Remove unused headers from shared sourc

[PATCH] SCC-Copy: Add More Debug dumps

2025-03-17 Thread Andrew Pinski
While debugging a failure, I noticed that SCC copy didn't print out what it was doing, e.g. replacing name1 with name 2. This adds that dump. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * gimple-ssa-sccopy.cc (scc_copy_prop::replace_scc_by_value): Dump what is bei

[PATCH 1/4] rust: Use REAL_TYPE_P instead of manual checking

2025-03-17 Thread Andrew Pinski
This moves is_floating_point over to using REAL_TYPE_P instead of manually checking. Note before it would return true for all COMPLEX_TYPE but complex types' inner type could be integral. Also fixes up the comment to be in more of the GNU style. Bootstrapped and tested on x86_64-linux-gnu. gcc/r

[PATCH 3/4] rust: use range for inside rust-gcc.cc [PR119341]

2025-03-17 Thread Andrew Pinski
There are some places inside rust-gcc.cc which are candidates to use range for instead of iterators directly. This changes the locations I saw and makes the code slightly more readable. gcc/rust/ChangeLog: PR rust/119341 * rust-gcc.cc (function_type): Use range fors. (func

[PATCH 2/4] rust: Use error_operand_p in rust-gcc.cc

2025-03-17 Thread Andrew Pinski
Just a simple cleanupof the code to use error_operand_p instead of directly comparing against error_mark_node. This also moves some cdoe around when dealing with error_operand_p just to be faster and/or slightly tighten up the code slightly. gcc/rust/ChangeLog: * rust-gcc.cc (Bvariable::

[PATCH 4/4] rust: Add comment inside block [PR119342]

2025-03-17 Thread Andrew Pinski
Inside a BLOCK node, all of the variables of the scope/block are chained together and that connects them to the block. This just adds a comment to that effect as reading the code it is not so obvious why they need to be chained together. gcc/rust/ChangeLog: PR rust/119342 * rust-g

[PATCH 1/4] rust: Use REAL_TYPE_P instead of manual checking

2025-03-17 Thread Andrew Pinski
This moves is_floating_point over to using REAL_TYPE_P instead of manually checking. Note before it would return true for all COMPLEX_TYPE but complex types' inner type could be integral. Also fixes up the comment to be in more of the GNU style. Bootstrapped and tested on x86_64-linux-gnu. gcc/r

[PATCH 2/4] rust: Use error_operand_p in rust-gcc.cc

2025-03-17 Thread Andrew Pinski
Just a simple cleanupof the code to use error_operand_p instead of directly comparing against error_mark_node. This also moves some cdoe around when dealing with error_operand_p just to be faster and/or slightly tighten up the code slightly. gcc/rust/ChangeLog: * rust-gcc.cc (Bvariable::

[PATCH 3/4] rust: use range for inside rust-gcc.cc [PR119341]

2025-03-17 Thread Andrew Pinski
There are some places inside rust-gcc.cc which are candidates to use range for instead of iterators directly. This changes the locations I saw and makes the code slightly more readable. gcc/rust/ChangeLog: PR rust/119341 * rust-gcc.cc (function_type): Use range fors. (func

[PATCH 4/4] rust: Add comment inside block [PR119342]

2025-03-17 Thread Andrew Pinski
Inside a BLOCK node, all of the variables of the scope/block are chained together and that connects them to the block. This just adds a comment to that effect as reading the code it is not so obvious why they need to be chained together. gcc/rust/ChangeLog: PR rust/119342 * rust-g

Re: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

2025-03-17 Thread Jakub Jelinek
On Mon, Mar 17, 2025 at 03:26:45PM -0500, Robert Dubner wrote: > > > > -Original Message- > > From: Jakub Jelinek > > Sent: Monday, March 17, 2025 16:05 > > To: Iain Sandoe > > Cc: Robert Dubner ; GCC Patches > patc...@gcc.gnu.org> > > Subject: Re: [PATCH] cobol: Eliminate CPPFLAGS ass

[PATCH] gcc.dg/pr90838-2.c: Replace long with long long

2025-03-17 Thread H.J. Lu
Since gcc.dg/pr90838-2.c is only for 64-bit integer, replace long with long long for ILP32 targets. * gcc.dg/pr90838-2.c (ctz4): Replace long with long long. Signed-off-by: H.J. Lu --- gcc/testsuite/gcc.dg/pr90838-2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

RE: [PATCH] cobol: Eighteen new testcases to cobol.dg/group1.

2025-03-17 Thread Robert Dubner
> -Original Message- > From: Jakub Jelinek > Sent: Monday, March 17, 2025 12:46 > To: Robert Dubner > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] cobol: Eighteen new testcases to cobol.dg/group1. > > On Mon, Mar 17, 2025 at 11:34:36AM -0500, Robert Dubner wrote: > > > This woul

Re: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

2025-03-17 Thread Jakub Jelinek
On Mon, Mar 17, 2025 at 09:50:53PM +0100, Jakub Jelinek wrote: > https://www.gnu.org/prep/standards/html_node/Change-Logs.html > contains some of the reasons and something about the formatting etc. > When you repeat the same description over and over, normally one just writes > * cdf.y: Modif

RE: [PATCH] COBOL v3: 3/14 80K bld: config and build machinery

2025-03-17 Thread Robert Dubner
> -Original Message- > From: Andreas Schwab > Sent: Monday, March 17, 2025 04:13 > To: James K. Lowden > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] COBOL v3: 3/14 80K bld: config and build machinery > > On Mär 13 2025, James K. Lowden wrote: > > > On Tue, 11 Mar 2025 11:18:22 +

RE: [PATCH] COBOL v3: 3/14 80K bld: config and build machinery

2025-03-17 Thread Robert Dubner
> -Original Message- > From: Andreas Schwab > Sent: Monday, March 17, 2025 04:13 > To: James K. Lowden > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] COBOL v3: 3/14 80K bld: config and build machinery > > On Mär 13 2025, James K. Lowden wrote: > > > On Tue, 11 Mar 2025 11:18:22 +

[PATCH] c++: memfn pointer as NTTP argument considered unused [PR119233]

2025-03-17 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk/backports? -- >8 -- This is just the member function pointer version of PR c++/105848, wherein our non-dependent call pruning may cause us to not mark an otherwise unused function pointer template argument as used.

[COMMITTED] cobol: Eliminate CPPFLAGS assignment from Make-lang.in

2025-03-17 Thread Robert Dubner
I'll close out PR119213. And next time I'll use "Likewise." >From 8d6c8efdd9495259cc5ed1d6537c694791bd4661 Mon Sep 17 00:00:00 2001 From: Bob Dubner mailto:rdub...@symas.com Date: Mon, 17 Mar 2025 13:13:50 -0400 Subject: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

RE: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

2025-03-17 Thread Robert Dubner
> -Original Message- > From: Jakub Jelinek > Sent: Monday, March 17, 2025 17:04 > To: Robert Dubner ; Iain Sandoe > ; GCC Patches > Subject: Re: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make- > lang.in [PR119213]. > > On Mon, Mar 17, 2025 at 09:50:53PM +0100, Jakub Jelinek wr

[COMMITTED 144/145] gccrs: [gccrs#2987] Patch ICE when deriving Clone and Copy

2025-03-17 Thread arthur . cohen
From: Liam Naddell gcc/rust/ChangeLog: * expand/rust-expand-visitor.cc: Fix ICE caused by unique_ptr UB and buggy iterator use gcc/testsuite/ChangeLog: * rust/compile/issue-2987.rs: Add test for deriving Clone and Copy at the same time Signed-off-by: Liam Naddell

Re: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

2025-03-17 Thread Andreas Schwab
On Mär 17 2025, Robert Dubner wrote: > I did it, reflexively, because I think that lining stuff like that up iss > easier to understand and more clear than. > > PR cobol/119213 > * Make-lang.in: Eliminate CPPFLAGS= assignment. > * cdf.y: Modify #includes that reference libgcobol.

RE: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

2025-03-17 Thread Robert Dubner
> -Original Message- > From: Jakub Jelinek > Sent: Monday, March 17, 2025 16:05 > To: Iain Sandoe > Cc: Robert Dubner ; GCC Patches patc...@gcc.gnu.org> > Subject: Re: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make- > lang.in [PR119213]. > > On Mon, Mar 17, 2025 at 07:57:43PM

[PATCH v2 03/10] Testsuite: Modify the gcc.dg/memcpy-4.c test

2025-03-17 Thread Aleksandar Rakic
From: Andrew Bennett gcc/testsuite/ * gcc.dg/memcpy-4.c: Remove the MIPS specific bit of the test. * gcc.target/mips/memcpy-2.c: New MIPS specific version of the test. This will only execute for a MIPS ISA less than R6. Cherry-picked c8b051cdbb1d5b166293513b0360d3d67cf31e

[PATCH v2 11/12] fmadd.w should be restricted to mipsr6

2025-03-17 Thread Aleksandar Rakic
From: "dragan.mladjenovic" This patch prevents middle-end from using MSA fma on pre-r6 targets in order to avoid subtle inconsistencies with auto-vectorized code that might mix MSA fma with unfused scalar multiply-add. There might be Loongson targets that support MSA while having scalar multiply

[PATCH] c, c++, v4: Support musttail attribute even using __attribute__ form [PR116545]

2025-03-17 Thread Jakub Jelinek
On Mon, Mar 17, 2025 at 09:41:49AM -0400, Jason Merrill wrote: > On 3/13/25 4:10 PM, Jakub Jelinek wrote: > > I know, but we've never allowed GNU attributes on most of those, neither > > does clang, we don't allow it in C and with the exception of > > fallthrough/assume on empty statement and mustt

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

2025-03-17 Thread Mikael Morin
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 @@ scc_copy_prop::propagate () { vec scc = worklist.pop

[PATCH v2 04/10] Add offset shrinking pass (-mshrink-offsets)

2025-03-17 Thread Aleksandar Rakic
From: mfortune This is derived from code produced by Steve Ellcey. This approach is slightly diverged from the original concept. It tries to adjust the base pointer to a common value and keep the costing lower than original by trying to find the best common value to trigger more 16-bit instruct

Re: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

2025-03-17 Thread Iain Sandoe
Hello Robert, > On 17 Mar 2025, at 17:45, Robert Dubner wrote: > > If this is deemed OK, then we can close out PR119213 > > It compiles and runs my both check-cobol and my more comprehensive > tests on x86_64 This looks a reasonable approach to me; it has the advantage of making the shared h

Re: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

2025-03-17 Thread Jakub Jelinek
On Mon, Mar 17, 2025 at 07:57:43PM +, Iain Sandoe wrote: > > PR cobol/119213 > > * Make-lang.in: Eliminate CPPFLAGS= assignment. > > * cdf.y: Modify #includes that reference libgcobol. > > * cobol1.cc: Modify #includes that reference libgcobol. > > * except.c

[pushed][PR119285][IRA]: Use an additional way of reg equiv invariant substitution correctness

2025-03-17 Thread Vladimir Makarov
The following patch fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119285 The patch was successfully bootstrapped and tested on x86_64 and aarch64. I've checked the patch for SPEC2017 lbm_s on Zen4 and i5-13600k and don't see performance or code size change anymore. I also checked whole

Re: [PATCH v2] libstdc++: Add P1206R7 from_range members to ordered sets [PR111055]

2025-03-17 Thread Jonathan Wakely
On Mon, 17 Mar 2025, 18:49 François Dumont, wrote: > > On 17/03/2025 09:21, Tomasz Kamiński wrote: > > This is another piece of P1206R7, adding new members to std::set > > and std::multiset. > > > > PR libstdc++/111055 > > > > libstdc++-v3/ChangeLog: > > > > * include/bits/stl_multise

[COMMITTED 137/145] gccrs: Introduce new class to handle borrow errors

2025-03-17 Thread arthur . cohen
From: Kushal Pal gcc/rust/ChangeLog: * Make-lang.in: Compile new file. * checks/errors/borrowck/rust-borrow-checker.cc (BorrowChecker::go): Use new class to report errors. * checks/errors/borrowck/rust-borrow-checker-diagnostics.cc: New file. * checks/erro

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

2025-03-17 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 Ukrainian team of translators. The file is available at: https://translationproject.org/latest/cpplib/uk.po (This file, 'cpplib-15.1-b2025

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

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

Re: cobol: flags for choosing reference-format

2025-03-17 Thread Simon Sobisch
Am 17.03.2025 um 18:25 schrieb James K. Lowden: On Sun, 16 Mar 2025 21:07:39 +0100 Simon Sobisch wrote: This gives three reference-formats: "fixed" "free" and "extended". For two of those we have seen the flags -ffixed-form and -ffree-form, so I'd _guess_ the last one would be -fextended-fo

Re: [PATCH] cobol: Eighteen new testcases to cobol.dg/group1.

2025-03-17 Thread Jakub Jelinek
On Mon, Mar 17, 2025 at 11:34:36AM -0500, Robert Dubner wrote: > > This would be a major problem. > > Generally, we want to allow even cross-testing from 32-bit > architectrures, > > so they'd better fit into 3GB of memory at most. > > At the present time, the executables cannot be compiled for 32

[PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

2025-03-17 Thread Robert Dubner
If this is deemed OK, then we can close out PR119213 It compiles and runs my both check-cobol and my more comprehensive tests on x86_64 >From 8d6c8efdd9495259cc5ed1d6537c694791bd4661 Mon Sep 17 00:00:00 2001 From: Bob Dubner mailto:rdub...@symas.com Date: Mon, 17 Mar 2025 13:13:50 -0400 Subject

Re: [PATCH] c++: Perform immediate invocation evaluation separately from cp_fold_r [PR118068]

2025-03-17 Thread Jakub Jelinek
On Wed, Mar 12, 2025 at 05:39:46PM -0400, Jason Merrill wrote: > On 3/7/25 11:54 AM, Jakub Jelinek wrote: > > Hi! > > > > The r14-4140 change moved consteval evaluation from build_over_call to > > cp_fold_r. > > > > The following testcase is a regression caused by that change. There > > is a cas

[PATCH] libstdc++: Add P1206R7 from_range members to unordered sets [PR111055]

2025-03-17 Thread Tomasz Kamiński
This is another piece of P1206R7, adding new members to std::unordered_set and std::unordered_multiset. PR libstdc++/111055 libstdc++-v3/ChangeLog: * include/bits/hashtable.h (_M_rehash_insert) (_M_insert_range_multi): Extracted rehashing for range insertion to se

RE: [PATCH] Populate -original dump for Cobol

2025-03-17 Thread Robert Dubner
> -Original Message- > From: Richard Biener > Sent: Monday, March 17, 2025 05:10 > To: gcc-patches@gcc.gnu.org > Cc: jklow...@schemamania.org; rdub...@symas.com > Subject: Re: [PATCH] Populate -original dump for Cobol > > On Tue, 11 Mar 2025, Richard Biener wrote: > > > The following imp

Re: [PATCH v2] libstdc++: Add P1206R7 from_range members to ordered sets [PR111055]

2025-03-17 Thread François Dumont
On 17/03/2025 09:21, Tomasz Kamiński wrote: This is another piece of P1206R7, adding new members to std::set and std::multiset. PR libstdc++/111055 libstdc++-v3/ChangeLog: * include/bits/stl_multiset.h: (inser_range) (multiset(from_range_t, _Rg&&, const _Compare&, con

[PATCH 0/2] Add ldirname to libiberty and make cobol to use it

2025-03-17 Thread Jose E. Marchesi
This little series adds a ldirname function to libiberty and makes the COBOL front-end to use it so it doesn't have to include the host's libgen.h. The ldirname implementation doesn't exactly implement the same semantics than the POSIX dirname. In particular, it returns the empty string rather

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

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

[PATCH 2/2] cobol: use ldirname in cdf-copy.cc

2025-03-17 Thread Jose E. Marchesi
This patch changes gcc/cobol/cdf-copy.cc to use the new ldirname from libibertay rather than the host's dirname. This removes an include for libgen.h. Regtested in x86_64-linux-gnu by running make check-cobol. gcc/cobol/ChangeLog * cdf-copy.cc (copybook_elem_t::open_file): Use ldirname

[COMMITTED 140/145] gccrs: [gccrs#3046] ICE on failing to find enum variant

2025-03-17 Thread arthur . cohen
From: Liam Naddell gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-expr.cc: Fix ICE caused by not finding enum variant by adding new error message gcc/testsuite/ChangeLog: * rust/compile/issue-3046.rs: Add test for new error message Signed-off-by: Lia

[COMMITTED 133/145] gccrs: [gccrs#3051] Remove unnecessary #include from rust-expr.h

2025-03-17 Thread arthur . cohen
From: Liam Naddell gcc/rust/ChangeLog: * ast/rust-expr.h: Remove unnecessary include. Signed-off-by: Liam Naddell --- gcc/rust/ast/rust-expr.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index 8fc89d87878..25afe235e4e

[PATCH] c++: ICE when substituting packs into type aliases [PR118104]

2025-03-17 Thread Marek Polacek
Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk/14/13? -- >8 -- r12-1094 mentions that adding the assert didn't lead to any regressions in the testsuite, but this test case demonstrates that we can reach it with valid code. Here we arrive in use_pack_expansion_extra_args_p with t whic

[PATCH v2 1/1] Ensure _UNDER_TEST executables are target based

2025-03-17 Thread Aleksandar Rakic
From: Matthew Fortune This fixes an issue where some G++ tests need to use a C compiler as well as C++ to build an LTO test. contrib/ * test_installed: Use target to select default gcc/g++ etc. under test. Cherry-picked fc330482ef0a8f93d44b9ff4c458691d7785cc77 from https://githu

[COMMITTED 136/145] gccrs: Fix nightly rustc warnings

2025-03-17 Thread arthur . cohen
From: Kushal Pal libgrust/ChangeLog: * libformat_parser/Cargo.toml: Used crate-type instead of depricated crate_type. * libformat_parser/generic_format_parser/src/lib.rs: Remove dead code. * libformat_parser/src/lib.rs: Likewise. Signed-off-by: Kushal Pal

[PATCH 1/2] libiberty: add ldirname function

2025-03-17 Thread Jose E. Marchesi
This patch adds a function ldirname to libiberty. It is implemented in terms of lbasename. Basically, given a given pathname, the dirname part is what is not the basename minus the last directory separator separating the dirname with the basename. include/ChangeLog * libiberty.h (ldirna

Re: rs6000: Add -msplit-patch-nops (PR112980)

2025-03-17 Thread Michael Matz
Hey, On Thu, 20 Feb 2025, Richard Biener wrote: > > > +@opindex msplit-patch-nops > > > +@item -msplit-patch-nops > > > +When adding NOPs for a patchable area via the > > > +@option{-fpatchable-function-entry} option emit the "before" NOPs in > > > front > > > +of the global entry point and the

[COMMITTED 128/145] gccrs: Add WARN_UNUSED_RESULT parse error

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.h (enum InlineAsmParseError): Add WARN_UNUSED_RESULT parse error (enum WARN_UNUSED_RESULT): Likewise. Signed-off-by: badumbatish --- gcc/rust/expand/rust-macro-builtins-asm.h | 3 ++- 1 file changed, 2

[COMMITTED 126/145] gccrs: Added tl::expected to parse_operand

2025-03-17 Thread arthur . cohen
From: jjasmine Added tl::expected to parse_operand by implementing the validation inside the parse_reg_operand function. gcc/rust/ChangeLog: * ast/rust-expr.h: Added tl::expected to parse_operand * expand/rust-macro-builtins-asm.cc (parse_reg): Likewise. (parse_r

[COMMITTED 143/145] gccrs: Fix ffi and enum conventions

2025-03-17 Thread arthur . cohen
From: badumbatish gcc/rust/ChangeLog: * ast/rust-fmt.h (enum ParseMode): Drop typedef in Cpp libgrust/ChangeLog: * libformat_parser/generic_format_parser/src/lib.rs: Remove repr(C) * libformat_parser/src/bin.rs: Use ffi * libformat_parser/src/lib

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

2025-03-17 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 Romanian team of translators. The file is available at: https://translationproject.org/latest/cpplib/ro.po (This file, 'cpplib-15.1-b20250

New template for 'cpplib' made available

2025-03-17 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. (If you have any questions, send them to .) A new POT file for textual domain 'cpplib' has been made available to the language teams for translation. It is archived as: https://translationproject.org/POT-files/

[COMMITTED 134/145] rust: fix HIR dump for MatchExpr

2025-03-17 Thread arthur . cohen
From: Marc Poulhiès The visitor was still using the as_string() method. gcc/rust/ChangeLog: * hir/rust-hir-dump.cc (Dump::do_matcharm): New. (Dump::do_matchcase): New. (Dump::visit(MatchExpr)): Adjust, don't use as_string. * hir/rust-hir-dump.h (Dump::do_matcharm

[committed] testsuite: Add -gno-strict-dwarf option to dwarf2 inline[26].c tests

2025-03-17 Thread John David Anglin
Tested on hppa64-hp-hpux11.11 and hppa-unknown-linux-gnu. Committed to trunk. Dave --- testsuite: Add -gno-strict-dwarf option to dwarf2 inline[26].c tests Some targets default to strict dwarf. 2025-03-17 John David Anglin gcc/testsuite/ChangeLog: PR testsuite/119220 * gcc

[COMMITTED 109/145] gccrs: Fix visitor-related warnings

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Fix visitor-related warnings * ast/rust-ast-collector.h: Likewise. * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Likewise. * ast/rust-ast-visitor.h: Likewise.

New template for 'gcc' made available

2025-03-17 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. (If you have any questions, send them to .) A new POT file for textual domain 'gcc' has been made available to the language teams for translation. It is archived as: https://translationproject.org/POT-files/gcc

[COMMITTED] doc: Regenerate common.opt.urls

2025-03-17 Thread Michal Jires
Regenerated common.opt.urls, which I missed until autobuilder noticed. Committed as obvious. gcc/ChangeLog: * common.opt.urls: Regenerate. --- gcc/common.opt.urls | 6 ++ 1 file changed, 6 insertions(+) diff --git a/gcc/common.opt.urls b/gcc/common.opt.urls index 79c322bed2b..ac602

[COMMITTED 139/145] gccrs: Update pattern with \r* for dg-output tests

2025-03-17 Thread arthur . cohen
From: badumbatish First scan with "rg -v '\\r' gcc/testsuite/rust | rg 'dg-output'" gcc/testsuite/ChangeLog: * rust/execute/torture/issue-2187.rs: Update pattern with \r* for dg-output tests * rust/execute/xfail/macro1.rs: Likewise --- gcc/testsuite/rust/execute/torture

[RISC-V] Fix unreported code quality regression with single bit manipulations

2025-03-17 Thread Jeff Law
I was reviewing some code recently and spotted an oddity. In a few places we were emitting andi dst,src,-1 and in others [x]ori dst,src,0. Those are obviously nops and we should get rid of them. Most of these are coming from a split part of a couple define_insn_and_split patterns added back i

[COMMITTED 122/145] gccrs: Add RAW_STRING_LITERAL

2025-03-17 Thread arthur . cohen
From: ansh gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Handle case for RAW_STRING_LITERAL. * ast/rust-ast.cc (AttributeParser::parse_meta_item_inner): Likewise. (AttributeParser::parse_literal): Likewise. * ast/rust-ast

[COMMITTED 141/145] gccrs: Change assertion of constructor

2025-03-17 Thread arthur . cohen
From: badumbatish Change the assert of (expr != nullptr) to (this->expr != nullptr) because we assigned (std::move(expr)) to this->expr, no need to assert expr gcc/rust/ChangeLog: * ast/rust-expr.h (struct AnonConst): Change assertion of constructor (struct InlineAsmOper

[COMMITTED 138/145] gccrs: Improve error messages for operator expressions

2025-03-17 Thread arthur . cohen
From: Antonio Gomes gcc/rust/ChangeLog: * hir/tree/rust-hir-expr.h: Add new get_operator_str method in ArithmeticOrLogicalExpr and CompoundAssignmentExpr * hir/tree/rust-hir.cc: Likewise * typecheck/rust-hir-type-check-expr.cc: Improve error message for ope

RE: [PATCH] cobol: Eighteen new testcases to cobol.dg/group1.

2025-03-17 Thread Robert Dubner
> -Original Message- > From: Jakub Jelinek > Sent: Monday, March 17, 2025 03:07 > To: Robert Dubner > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] cobol: Eighteen new testcases to cobol.dg/group1. > > On Sun, Mar 16, 2025 at 08:55:39PM -0500, Robert Dubner wrote: > > And if you lik

[COMMITTED 127/145] gccrs: Added a test that is expected to fail

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_clobber_abi): added comments (parse_options): Likewise (parse_asm_arg): Likewise (parse_asm): Likewise * expand/rust-macro-builtins-asm.h: Likewise gcc/testsuite/ChangeL

[COMMITTED 112/145] gccrs: Scaffolding validation of asm!

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_asm): Scaffolding validation of asm! (validate): Likewise * expand/rust-macro-builtins-asm.h (validate): Likewise --- gcc/rust/expand/rust-macro-builtins-asm.cc | 31 +--

[COMMITTED 113/145] gccrs: Update parser to parse strings in the first stage

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_reg_operand): Update parser to parse strings in the first stage (parse_label): not needed right now --- gcc/rust/expand/rust-macro-builtins-asm.cc | 62 +- 1 file changed, 1

[COMMITTED 117/145] gccrs: Fix optional trait parsing

2025-03-17 Thread arthur . cohen
From: dave gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-item.cc (TypeCheckItem::visit): Check for ?Trait in visitor gcc/testsuite/ChangeLog: * rust/compile/issue-2725.rs: New test. Signed-off-by: Dave Evans --- gcc/rust/typecheck/rust-hir-type-check-item.cc | 18

[COMMITTED 094/145] gccrs: Safegaurd InlineAsm's clone_expr_...

2025-03-17 Thread arthur . cohen
From: jjasmine Safegaurd InlineAsm's clone_expr_... with unreachable since we would never use them. gcc/rust/ChangeLog: * ast/rust-expr.h: Safegaurd InlineAsm's clone_expr_... with unreachable. --- gcc/rust/ast/rust-expr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc

[COMMITTED 120/145] gccrs: Add test case for using asm! outside of unsafe {}

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/testsuite/ChangeLog: * rust/compile/inline_asm_outside_unsafe.rs: New test. --- .../rust/compile/inline_asm_outside_unsafe.rs | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 gcc/testsuite/rust/compile/inline_asm_outside_unsafe.rs diff -

[COMMITTED 121/145] gccrs: Added ExprType::InlineAsm

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * hir/tree/rust-hir-expr.h: Added ExprType::InlineAsm * hir/tree/rust-hir.h: Added ExprType::InlineAsm --- gcc/rust/hir/tree/rust-hir-expr.h | 3 +-- gcc/rust/hir/tree/rust-hir.h | 1 + 2 files changed, 2 insertions(+), 2 d

[COMMITTED 107/145] gccrs: Successful parse of in and inout, albeit with str

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_reg_operand): Successful parse of in and inout, albeit with str (check_identifier): Likewise. (parse_asm_arg): Likewise. * expand/rust-macro-builtins-asm.h (parse_format_string):

[COMMITTED 135/145] gccrs: Added FFIVector to get Polonius output on C++ side

2025-03-17 Thread arthur . cohen
From: Kushal Pal gcc/rust/ChangeLog: * Make-lang.in: Compile new file, rust-polonius.cc * checks/errors/borrowck/ffi-polonius/src/gccrs_ffi.rs: Opaque type to represent FFIVector from C++. * checks/errors/borrowck/ffi-polonius/src/gccrs_ffi_generated.rs: C

[COMMITTED 044/145] gccrs: Change lookup_hir_pattern return type

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry Wrap the function's return type within an optional in order to differentiate between a null pointer and a missing value. gcc/rust/ChangeLog: * util/rust-hir-map.cc (Mappings::insert_hir_pattern): Change call site in order to accomodate new return type

[COMMITTED 125/145] gccrs: Scaffold expected on parse_options and asm_arg

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (check_and_set): Scaffold expected on parse_options and asm_arg (parse_options): Likewise (parse_asm_arg): Likewise * expand/rust-macro-builtins-asm.h (check_and_set): Likewise

[COMMITTED 118/145] gccrs: expand: Keep track of semicoloned builtin macros

2025-03-17 Thread arthur . cohen
From: Arthur Cohen This is quite a rough fix (like a lot of the macro expansion code...) but it allows built-in macros to be treated as statements. I *think* asm!() might be the only one where it really matters, but also doing something like { line!(); } will now work, whereas before the ma

[COMMITTED 111/145] gccrs: Partial support for operand

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * ast/rust-expr.h (struct InlineAsmOperand): Partial support for operand * expand/rust-macro-builtins-asm.cc (parse_reg_operand): Likewise. (parse_label): Likewise. * expand/rust-macro-builtins-asm.h (parse_label): Likewi

[COMMITTED 106/145] gccrs: Scaffolding HIRFullVisitor for inline asm

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * ast/rust-ast-visitor.h: Scaffolding HIRFullVisitor for inline asm * ast/rust-ast.cc (InlineAsm::accept_vis): Likewise. * hir/tree/rust-hir-visitor.h (RUST_HIR_VISITOR_H): Likewise. * hir/tree/rust-hir.cc (InlineAsm::acc

  1   2   3   4   >