Re: [PATCH v5 5/5] libgomp: Add AArch64 SVE target tests to libgomp.

2025-04-07 Thread Tejas Belagod
On 4/7/25 3:33 PM, Jakub Jelinek wrote: On Mon, Apr 07, 2025 at 03:28:29PM +0530, Tejas Belagod wrote: Add AArch64 SVE target exectute tests to test various workshare constructs and clauses with SVE types. libgomp/ChangeLog: * testsuite/libgomp.c-target/aarch64/aarch64.exp: Test driver

Re: [PATCH] libstdc++: Fix use-after-free in std::format [PR119671]

2025-04-07 Thread Tomasz Kaminski
On Tue, Apr 8, 2025 at 1:25 AM Jonathan Wakely wrote: > When formatting floating-point values to wide strings there's a case > where we invalidate a std::wstring buffer while a std::wstring_view is > still referring to it. > > libstdc++-v3/ChangeLog: > > PR libstdc++/119671 > * in

Re: [Stage1][Middle-end][object-size][PATCH v1] Evaluate the object size by the size of the pointee type

2025-04-07 Thread Siddhesh Poyarekar
On 2025-04-07 14:53, Qing Zhao wrote: Is there a reason to do this at the very end like this and not in the GIMPLE_ASSIGN case in the switch block? Something like this: tree rhs = gimple_assign_rhs1 (stmt); tree counted_by_ref = NULL_TREE; if (gimple_assign_rhs_code

[PATCH] deref-before-check-pr113253.c: Fix bogus warnings on lp32

2025-04-07 Thread Jonathan Yong
Attached patch OK for master branch? Will push soon if there are no objections. From 66c30c0db9560af4f61ebda0742d0eb7da45f474 Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10wa...@gmail.com> Date: Mon, 7 Apr 2025 15:40:05 + Subject: [PATCH] deref-before-check-pr113253.c: Fix bogus warnings on

Re:[pushed] [PATCH v3] LoongArch: Add LoongArch architecture detection to __float128 support in libgfortran and libquadmath [PR119408].

2025-04-07 Thread Lulu Cheng
Pushed to r15-9245 and r14-11538. 在 2025/4/7 下午3:44, Lulu Cheng 写道: In GCC14, LoongArch added __float128 as an alias for _Float128. In commit r15-8962, support for q/Q suffixes for 128-bit floating point numbers. This will cause the compiler to automatically link libquadmath when compiling Fort

Re: [PATCH] c: fix checking for a tag for variably modified tagged types [PR119612]

2025-04-07 Thread Joseph Myers
On Sat, 5 Apr 2025, Martin Uecker wrote: > > > The checking assertion added for PR118765 > > https://gcc.gnu.org/cgit/gcc/commit/?id=accbc1b90bd942aa36ac1485a21056b774ce02df > > did indeed catch some case I hadn't considered. I think there > might be other cases in the C FE where we test for

[PATCH] libstdc++: Fix use-after-free in std::format [PR119671]

2025-04-07 Thread Jonathan Wakely
When formatting floating-point values to wide strings there's a case where we invalidate a std::wstring buffer while a std::wstring_view is still referring to it. libstdc++-v3/ChangeLog: PR libstdc++/119671 * include/std/format (__formatter_fp::format): Do not invalidate _

Re: [PATCH] cobol: Address some iconv issues.

2025-04-07 Thread Iain Sandoe
> On 22 Mar 2025, at 23:13, Robert Dubner wrote: > But, by all means, if you have a fix for something I am not seeing, a fix > that doesn't mess with the status quo ante, then by all means, apply it. I applied the simplest fix possible - which was to remove the trailling // from the conversion

vsetvl abormal edge (was Re: [PATCH v2] RISC-V: vsetvl: skip abnormal edge on vsetvl insertion [PR119533])

2025-04-07 Thread Vineet Gupta
On 3/31/25 21:54, Jeff Law wrote: > And if that's the case then you can't simply skip an abnormal edge. You > have to do something sensible. > > That "something sensible" has traditionally been to ensure there is > never a need propagated to an edge since you can't insert on an abnormal > criti

[PATCH v2] x86: Update memcpy/memset inline strategies for -mtune=generic

2025-04-07 Thread H.J. Lu
Simplify memcpy and memset inline strategies to avoid branches for -mtune=generic: 1. With MOVE_RATIO and CLEAR_RATIO == 17, GCC will use integer/vector load and store for up to 16 * 16 (256) bytes when the data size is fixed and known. 2. Inline only if data size is known to be <= 256. a

Re: [PATCH] c-family: Improve location for -Wunknown-pragmas in a _Pragma [PR118838]

2025-04-07 Thread Marek Polacek
On Wed, Feb 12, 2025 at 08:27:37PM -0500, Lewis Hyatt wrote: > Hello- > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118838 > > This patch addresses the issue mentioned in the PR (another instance of > _Pragma string location issues). bootstrap + regtest all languages on > aarch64 looks good. I

Re: [Stage1][Middle-end][object-size][PATCH v1] Evaluate the object size by the size of the pointee type

2025-04-07 Thread Siddhesh Poyarekar
On 2025-04-07 11:56, Qing Zhao wrote: when the type is a structure with flexible array member. Not just when the structure has a flexible array member, also when the FAM size is recorded in a __counted_by__, isn't it? In tree-object-size.cc, if the size is UNKNOWN after evaluating use-def c

[Stage1][Middle-end][object-size][PATCH v1] Evaluate the object size by the size of the pointee type

2025-04-07 Thread Qing Zhao
when the type is a structure with flexible array member. In tree-object-size.cc, if the size is UNKNOWN after evaluating use-def chain, We can evaluate the SIZE of the pointee TYPE ONLY when this TYPE is a structure type with flexible array member, since a structure with FAM can not be an element

[committed] libstdc++: Remove stray pragma in new header [PR119642]

2025-04-07 Thread Jonathan Wakely
libstdc++-v3/ChangeLog: PR libstdc++/119642 * include/bits/formatfwd.h: Remove stray pragma. --- Tested x86_64-linux. Pushed to trunk. libstdc++-v3/include/bits/formatfwd.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libstdc++-v3/include/bits/formatfwd.h b/libstdc++-v3/

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

2025-04-07 Thread Michael Matz
Hello, On Mon, 7 Apr 2025, Martin Uecker wrote: > > So, what specifically would the two attributes do different? FWIW: what > > worries me about accepting a generic expression in counted_by, that isn't > > prefixed by a (possibly empty) decl, is that after seeing a non-type > > identifier the

[Stage 1][Middle-end][PATCH v5 3/3] Provide more contexts for -Warray-bounds, -Wstringop-* warning messages due to code movements from compiler transformation (Part 3) [PR109071, PR85788, PR88771, PR1

2025-04-07 Thread Qing Zhao
[PR109071,PR85788,PR88771,PR106762,PR108770,PR115274,PR117179] Add debugging for move history. PR tree-optimization/109071 PR tree-optimization/85788 PR tree-optimization/88771 PR tree-optimization/106762 PR tree-optimization/108770 PR tree-optimiza

[committed] libstdc++: Add new headers to for PCH

2025-04-07 Thread Jonathan Wakely
This adds the new C23 headers to the PCH, and also removes the __has_include check for because we provide that unconditionally now. libstdc++-v3/ChangeLog: * include/precompiled/stdc++.h: Include and . Include unconditionally. --- Tested x86_64-linux. Pushed to trunk. libst

[Stage 1][Middle-end][PATCH v5 2/3] Provide more contexts for -Warray-bounds, -Wstringop-*warning messages due to code movements from compiler transformation (Part 2) [PR109071, PR85788, PR88771, PR10

2025-04-07 Thread Qing Zhao
[PR109071,PR85788,PR88771,PR106762,PR108770,PR115274,PR117179] During array out-of-bound checking or -Wstringop-* warning checking, the "move_history" that was attached to the gimple statement is used to form a sequence of diagnostic events that are added to the corresponding rich location to be u

[committed] libstdc++: Add new headers to Doxygen config file

2025-04-07 Thread Jonathan Wakely
libstdc++-v3/ChangeLog: * doc/doxygen/user.cfg.in (INPUT): Add flat_map, flat_set, text_encoding, stdbit.h and stdckdint.h. --- Pushed to trunk. libstdc++-v3/doc/doxygen/user.cfg.in | 5 + 1 file changed, 5 insertions(+) diff --git a/libstdc++-v3/doc/doxygen/user.cfg.in b/

[Stage 1][Middle-end][PATCH v5 1/3] Provide more contexts for -Warray-bounds, -Wstringop-*warning messages due to code movements from compiler transfromaton (Part 1) [PR109071, PR85788, PR88771, PR106

2025-04-07 Thread Qing Zhao
[PR109071,PR85788,PR88771,PR106762,PR108770,PR115274,PR117179] Control this with a new option -fdiagnostics-details. $ cat t.c extern void warn(void); static inline void assign(int val, int *regs, int *index) { if (*index >= 4) warn(); *regs = val; } struct nums {int vals[4];}; void spar

Re: [ping^2] [PATCH] includes, Darwin: Handle modular use for macOS SDKs [PR116827].

2025-04-07 Thread Rainer Orth
Hi Iain, >>> diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h >>> index 0d53103ce20..bf9c6e609dc 100644 >>> --- a/gcc/ginclude/stddef.h >>> +++ b/gcc/ginclude/stddef.h >>> @@ -89,6 +89,17 @@ see the files COPYING3 and COPYING.RUNTIME respectively. >>> If not, see >>> #undef _PTRDIFF_T_

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

2025-04-07 Thread Qing Zhao
> On Apr 7, 2025, at 10:31, Michael Matz wrote: > > Hello, > > On Mon, 7 Apr 2025, Martin Uecker wrote: > >>> So, what specifically would the two attributes do different? FWIW: what >>> worries me about accepting a generic expression in counted_by, that isn't >>> prefixed by a (possibly e

[ping^2] [PATCH] includes, Darwin: Handle modular use for macOS SDKs [PR116827].

2025-04-07 Thread Iain Sandoe
Hi Folks this has more than 2 weeks without comment, (it is darwin-local) thanks Iain > On 29 Mar 2025, at 15:23, Iain Sandoe wrote: > > C++ modules are not really usable on latest Darwin without resolving this, > thanks > Iain > >> On 23 Mar 2025, at 12:29, Iain Sandoe wrote: >> >> From: Ia

Re: GCN, nvptx libstdc++: Force use of '__atomic' builtins [PR119645]

2025-04-07 Thread Jonathan Wakely
On Mon, 7 Apr 2025 at 12:38, Andrew Stubbs wrote: > Otherwise LGTM. At least GCN certainly does support atomics, so the > configure test must be broken somehow. I'm very curious why they fail.

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

2025-04-07 Thread Martin Uecker
Am Montag, dem 07.04.2025 um 14:44 +0200 schrieb Michael Matz: > Hello, > > On Sat, 5 Apr 2025, Bill Wendling wrote: > > > > > > > So, a different attribute name “counted_by_exp” might be better? > > > > > > > > > > I would prefer Martins empty-decl idea to that: "counted_by(;len+0)" > > > > > (

[PUSHED] GCN, nvptx libstdc++: Force use of '__atomic' builtins [PR119645]

2025-04-07 Thread Thomas Schwinge
For both GCN, nvptx, this gets rid of 'configure'-time: configure: WARNING: No native atomic operations are provided for this platform. configure: WARNING: They will be faked using a mutex. configure: WARNING: Performance of certain classes will degrade as a result. ..., and changes:

nvptx: Support '-mfake-ptx-alloca': defer failure to run-time 'alloca' usage (was: [PUSHED] nvptx: Support '-mfake-ptx-alloca')

2025-04-07 Thread Thomas Schwinge
Hi! On 2025-02-27T21:51:11+0100, I wrote: > With '-mfake-ptx-alloca' enabled, the user-visible behavior changes only > for configurations where PTX 'alloca' is not available. Rather than a > compile-time 'sorry, unimplemented: dynamic stack allocation not supported' > in presence of dynamic stack

Re: [PATCH] lto: lto-opts fixes [PR119625]

2025-04-07 Thread H.J. Lu
On Mon, Apr 7, 2025 at 2:53 AM Richard Biener wrote: > > On Fri, 4 Apr 2025, Jakub Jelinek wrote: > > > On Fri, Apr 04, 2025 at 08:52:10PM +0200, Richard Biener wrote: > > > > Or do you want something further (like > > > > switch (global_options.x_flag_cf_protection & ~CF_SET) > > > > )? > > > > >

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

2025-04-07 Thread Michael Matz
Hello, On Sat, 5 Apr 2025, Bill Wendling wrote: > > >>> So, a different attribute name “counted_by_exp” might be better? > > >> > > >> I would prefer Martins empty-decl idea to that: "counted_by(;len+0)" > > >> (looks up 'len' normally, i.e. doesn't look into current struct). It > > >> would nat

[PATCH] riscv: Add support for riscv*-gnu (GNU/Hurd on RISC-V)

2025-04-07 Thread Hakan Candar
This produces a toolchain that can successfully build binaries targeting riscv*-gnu. gcc/ChangeLog: * config.gcc: Recognize riscv*-*-gnu* targets. * config/riscv/gnu.h: New file. Signed-off-by: Hakan Candar --- gcc/config.gcc | 14 ++ gcc/config/riscv/gnu.h |

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

2025-04-07 Thread Jakub Jelinek
On Wed, Apr 02, 2025 at 04:24:30PM -0500, Robert Dubner wrote: > Solutions have been put in place that don't involve modifying the source > code of the copied files. I haven't made an opportunity to understand how > they work, but I am choosing to drop the matter. In order to unbreak Darwin, I'v

Re: [PATCH v2] aarch64, Darwin: Initial implementation of Apple cores [PR113257].

2025-04-07 Thread Kyrylo Tkachov
> On 7 Apr 2025, at 10:21, Tamar Christina wrote: > >> -Original Message- >> From: Kyrylo Tkachov >> Sent: Monday, March 31, 2025 1:43 PM >> To: i...@sandoe.co.uk >> Cc: Tamar Christina ; GCC Patches > patc...@gcc.gnu.org>; Alice Carlotti ; Richard >> Sandiford >> ; s...@gentoo.org >>

Re: [PATCH] cobol: Fix up make html for COBOL [PR119227]

2025-04-07 Thread Richard Biener
On Mon, 7 Apr 2025, Jakub Jelinek wrote: > Hi! > > What make html does for COBOL is quite inconsistent with all > other FEs. Normally make html creates HTML/gcc-15.0.1/ > subdirectory and puts there subdirectories like gcc, cpp, gccint, gfortran > etc. and only those contain *.html files. COBOL

Re: [PATCH] cobol: Fix up update_web_docs_git for COBOL [PR119227]

2025-04-07 Thread Richard Biener
On Mon, 7 Apr 2025, Jakub Jelinek wrote: > Hi! > > As mentioned in the PR, the COBOL documentation is currently not present > in onlinedocs at all. > While the script generates gcobol{,-io}.{pdf,html}, it generates them in > the gcc/gcc/cobol/ subdirectory of the update_web_docs_git temporary > d

Re: GCN, nvptx libstdc++: Force use of '__atomic' builtins [PR119645]

2025-04-07 Thread Andrew Stubbs
On 07/04/2025 09:07, Thomas Schwinge wrote: Hi! On 2025-03-14T11:39:20+0100, I wrote: As the first of a few patches to enable libstdc++ for GCN, nvptx targets, [...] some more fine-tuning is to follow later on.) Any comments before I push the attached "GCN, nvptx libstdc++: Force use of '_

[PATCH] cobol: Fix up update_web_docs_git for COBOL [PR119227]

2025-04-07 Thread Jakub Jelinek
Hi! As mentioned in the PR, the COBOL documentation is currently not present in onlinedocs at all. While the script generates gcobol{,-io}.{pdf,html}, it generates them in the gcc/gcc/cobol/ subdirectory of the update_web_docs_git temporary directory and nothing find it there afterwards, all the p

Re: [PATCH] lto: lto-opts fixes [PR119625]

2025-04-07 Thread Richard Biener
On Fri, 4 Apr 2025, Jakub Jelinek wrote: > On Fri, Apr 04, 2025 at 08:52:10PM +0200, Richard Biener wrote: > > > Or do you want something further (like > > > switch (global_options.x_flag_cf_protection & ~CF_SET) > > > )? > > > > Dunno what that CF_SET is, we’re supposed to record options like th

[PATCH] cobol: Fix up make html for COBOL [PR119227]

2025-04-07 Thread Jakub Jelinek
Hi! What make html does for COBOL is quite inconsistent with all other FEs. Normally make html creates HTML/gcc-15.0.1/ subdirectory and puts there subdirectories like gcc, cpp, gccint, gfortran etc. and only those contain *.html files. COBOL puts gcobol.html and gcobol-io.html into the current

[PATCH] tree-optimization/119640 - ICE with vectorized shift placement

2025-04-07 Thread Richard Biener
When the whole shift is invariant but the shift amount needs to be converted and a vector shift used we can mess up placement of vector stmts because we do not make SLP scheduling aware of the need to insert code for it. The following mitigates this by more conservative placement of such code in v

[patch,avr,applied]: Improve __[u]mulhisi3 on AVRrc

2025-04-07 Thread Georg-Johann Lay
When MUL is not available, then the __umulhisi3 and __mulhisi3 functions can use __mulhisi3_helper. This improves code size, stack footprint and runtime on AVRrc. Applied as obvious. Johann -- AVRrc: Tweak __[u]mulhisi3. When MUL is not available, then the __umulhisi3 and __mulhisi3 functio

[PATCH v5 4/5] AArch64: Add OpenMP target compile error tests

2025-04-07 Thread Tejas Belagod
Add compile-only OpenMP error tests for target clause used with SVE types. gcc/testsuite/ChangeLog: * gcc.target/aarch64/sve/gomp/gomp.exp: Test driver. * gcc.target/aarch64/sve/gomp/target-device.c: New test. * gcc.target/aarch64/sve/gomp/target-link.c: Likewise.

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

2025-04-07 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 | 11 +++ 1 file changed, 11 insertions(+) diff --git a/gcc/tree.h b/gcc/tree.h index 55f97f9f999..99f26177628 100644 --- a/gcc/tree.h +++ b/

[PATCH v5 0/5] [AArch64, OpenMP] Support SVE types with various OpenMP clauses and constructs

2025-04-07 Thread Tejas Belagod
Hi, I've combined the two patchsets https://gcc.gnu.org/pipermail/gcc-patches/2025-March/678086.html and the associated tests in https://gcc.gnu.org/pipermail/gcc-patches/2025-April/680030.html into a single patchset with the review comments incorporated. Thanks Jakub and RichardS for the r

[PATCH v5 5/5] libgomp: Add AArch64 SVE target tests to libgomp.

2025-04-07 Thread Tejas Belagod
Add AArch64 SVE target exectute tests to test various workshare constructs and clauses with SVE types. libgomp/ChangeLog: * testsuite/libgomp.c-target/aarch64/aarch64.exp: Test driver. * testsuite/libgomp.c-target/aarch64/firstprivate.c: New test. * testsuite/libgomp.c-tar

Re: [PATCH v5 5/5] libgomp: Add AArch64 SVE target tests to libgomp.

2025-04-07 Thread Jakub Jelinek
On Mon, Apr 07, 2025 at 03:28:29PM +0530, Tejas Belagod wrote: > Add AArch64 SVE target exectute tests to test various workshare constructs and > clauses with SVE types. > > libgomp/ChangeLog: > > * testsuite/libgomp.c-target/aarch64/aarch64.exp: Test driver. > * testsuite/libgomp.c-t

[PATCH v5 1/5] gomp: Various fixes for SVE types [PR101018]

2025-04-07 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

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

2025-04-07 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

Re: [PATCH] testsuite: arm: Tighten compile options for short-vfp-1.c [PR119556]

2025-04-07 Thread Richard Earnshaw
On 06/04/2025 19:49, Christophe Lyon wrote: The previous version of this test required arch v6+ (for sxth), and the number of vmov depended on the float-point ABI (where softfp needed more of them to transfer floating-point values to and from general registers). With this patch we require arch v

Re: [PATCH] tailc: Extend the IPA-VRP workaround [PR119614]

2025-04-07 Thread Jakub Jelinek
On Mon, Apr 07, 2025 at 11:43:27AM +0200, Richard Biener wrote: > I do wonder with all these patches whether it would be better to > preserve the LHS on musttail calls instead? It can't be instead, because without musttail all those tests regress as well (before IPA-VRP they were successfully tail

Re: [PATCH] tailc: Extend the IPA-VRP workaround [PR119614]

2025-04-07 Thread Richard Biener
On Mon, 7 Apr 2025, Jakub Jelinek wrote: > Hi! > > The IPA-VRP workaround in the tailc/musttail passes was just comparing > the singleton constant from a tail call candidate return with the ret_val. > This unfortunately doesn't work in the following testcase, where we have >[local count: 1522

Re: [PATCH 1/2] testsuite, cobol: Add libquadmath paths.

2025-04-07 Thread Richard Biener
On Sun, Apr 6, 2025 at 10:03 AM Iain Sandoe wrote: > > Even when we are using IEC 128b floating point, the quadmath library can > be pulled in 'as needed'. LGTM. > gcc/testsuite/ChangeLog: > > * lib/cobol.exp: Add libquadmath paths. > > Signed-off-by: Iain Sandoe > --- > gcc/testsuite/

Re: [PATCH v3] LoongArch: Add LoongArch architecture detection to __float128 support in libgfortran and libquadmath [PR119408].

2025-04-07 Thread Lulu Cheng
在 2025/4/7 下午4:02, Jakub Jelinek 写道: On Mon, Apr 07, 2025 at 03:44:52PM +0800, Lulu Cheng wrote: In GCC14, LoongArch added __float128 as an alias for _Float128. In commit r15-8962, support for q/Q suffixes for 128-bit floating point numbers. This will cause the compiler to automatically link

Re: [PATCH] LoongArch: Add LoongArch architecture detection to __float128 support in libgfortran and libquadmath [PR119408].

2025-04-07 Thread Jakub Jelinek
On Mon, Apr 07, 2025 at 03:12:22PM +0800, Lulu Cheng wrote: > In GCC14, LoongArch added __float128 as an alias for _Float128. > In commit r15-8962, support for q/Q suffixes for 128-bit floating point > numbers. This will cause the compiler to automatically link libquadmath > when compiling Fortran

[PATCH v2] LoongArch: Add LoongArch architecture detection to __float128 support in libgfortran and libquadmath [PR119408].

2025-04-07 Thread Lulu Cheng
In GCC14, LoongArch added __float128 as an alias for _Float128. In commit r15-8962, support for q/Q suffixes for 128-bit floating point numbers. This will cause the compiler to automatically link libquadmath when compiling Fortran programs. But on LoongArch `long double` is IEEE quad, so there is

[Ada] Fix wrong 'Access to aliased constrained array of controlled type

2025-04-07 Thread Eric Botcazou
For technical reasons, the recently reimplemented finalization machinery for controlled types requires arrays of controlled types to be allocated with their bounds, including in the case where their nominal subtype is constrained. However, in this case, the type of 'Access for the arrays is po

[PATCH] LoongArch: Add LoongArch architecture detection to __float128 support in libgfortran and libquadmath [PR119408].

2025-04-07 Thread Lulu Cheng
In GCC14, LoongArch added __float128 as an alias for _Float128. In commit r15-8962, support for q/Q suffixes for 128-bit floating point numbers. This will cause the compiler to automatically link libquadmath when compiling Fortran programs. But on LoongArch `long double` is IEEE quad, so there is

Re: [PATCH] sra: Avoid creating TBAA hazards (PR118924)

2025-04-07 Thread Martin Jambor
Hi, On Tue, Apr 01 2025, Richard Biener wrote: > On Mon, 31 Mar 2025, Martin Jambor wrote: > >> Hi, >> >> the testcase in PR 118924, when compiled on Aarch64, contains an >> gimple aggregate assignment statement in between different types which >> are types_compatible_p but behave differently for

RE: [PATCH v2] aarch64, Darwin: Initial implementation of Apple cores [PR113257].

2025-04-07 Thread Tamar Christina
> -Original Message- > From: Kyrylo Tkachov > Sent: Monday, March 31, 2025 1:43 PM > To: i...@sandoe.co.uk > Cc: Tamar Christina ; GCC Patches patc...@gcc.gnu.org>; Alice Carlotti ; Richard > Sandiford > ; s...@gentoo.org > Subject: Re: [PATCH v2] aarch64, Darwin: Initial implementation

Re: ping: COBOL: testsuite and running NIST85

2025-04-07 Thread Richard Biener
On Mon, Apr 7, 2025 at 9:41 AM Simon Sobisch wrote: > > > > Am 07.04.2025 um 09:30 schrieb Richard Biener: > > On Mon, Apr 7, 2025 at 9:00 AM Simon Sobisch wrote: > >> > >> My question stands on integrating COBOLworx' UAT as-is for now > >> (Copyright is all on FSF; built automatically [it is aut

GCN, nvptx libstdc++: Force use of '__atomic' builtins [PR119645] (was: GCN, nvptx: Allow for "hosted" libstdc++ build)

2025-04-07 Thread Thomas Schwinge
Hi! On 2025-03-14T11:39:20+0100, I wrote: > As the first of a few patches to enable libstdc++ for GCN, nvptx targets, > [...] > some more fine-tuning is to follow later on.) Any comments before I push the attached "GCN, nvptx libstdc++: Force use of '__atomic' builtins [PR119645]"? Jonathan, pl

Re: [PATCH v3] LoongArch: Add LoongArch architecture detection to __float128 support in libgfortran and libquadmath [PR119408].

2025-04-07 Thread Jakub Jelinek
On Mon, Apr 07, 2025 at 03:44:52PM +0800, Lulu Cheng wrote: > In GCC14, LoongArch added __float128 as an alias for _Float128. > In commit r15-8962, support for q/Q suffixes for 128-bit floating point > numbers. This will cause the compiler to automatically link libquadmath > when compiling Fortran

Re: ping: COBOL: testsuite and running NIST85

2025-04-07 Thread Simon Sobisch
Am 07.04.2025 um 09:36 schrieb Jakub Jelinek: On Mon, Apr 07, 2025 at 09:30:59AM +0200, Richard Biener wrote: On Mon, Apr 7, 2025 at 9:00 AM Simon Sobisch wrote: My question stands on integrating COBOLworx' UAT as-is for now (Copyright is all on FSF; built automatically [it is autoconf, which

Re: combine: Re-enable 2->2 combinations, with limits [PR116398]

2025-04-07 Thread Richard Sandiford
Sam James writes: > Richard Sandiford writes: > >> This series is an update of: >> >> https://gcc.gnu.org/pipermail/gcc-patches/2025-April/679924.html >> >> As discussed in that thread, the changes since last time are to make >> distribute_links start from the last use, where easy, and to avoid

Re: [PATCH] cobol: Diagnose ignored SECTIONs [PR119632].

2025-04-07 Thread Iain Sandoe
> On 7 Apr 2025, at 01:19, Simon Sobisch wrote: > > As noted in bug #119632, ignored section segments should be a warning, > ideally with an option to raise that to an error, like -Wignored, which > should be included with -Wall (note bug #119329) and is fine to be also > raised by default (

[PATCH v3] LoongArch: Add LoongArch architecture detection to __float128 support in libgfortran and libquadmath [PR119408].

2025-04-07 Thread Lulu Cheng
In GCC14, LoongArch added __float128 as an alias for _Float128. In commit r15-8962, support for q/Q suffixes for 128-bit floating point numbers. This will cause the compiler to automatically link libquadmath when compiling Fortran programs. But on LoongArch `long double` is IEEE quad, so there is

Re: ping: COBOL: testsuite and running NIST85

2025-04-07 Thread Simon Sobisch
Am 07.04.2025 um 09:30 schrieb Richard Biener: On Mon, Apr 7, 2025 at 9:00 AM Simon Sobisch wrote: My question stands on integrating COBOLworx' UAT as-is for now (Copyright is all on FSF; built automatically [it is autoconf, which is a requirement for VCS checkouts], possibly also hooked in

Re: ping: COBOL: testsuite and running NIST85

2025-04-07 Thread Richard Biener
On Mon, Apr 7, 2025 at 9:00 AM Simon Sobisch wrote: > > My question stands on integrating COBOLworx' UAT as-is for now > (Copyright is all on FSF; built automatically [it is autoconf, which is > a requirement for VCS checkouts], possibly also hooked into the current > test target) - with the goal

Re: [PATCH] LoongArch: Add LoongArch architecture detection to __float128 support in libgfortran and libquadmath [PR119408].

2025-04-07 Thread Lulu Cheng
在 2025/4/7 下午3:19, Jakub Jelinek 写道: On Mon, Apr 07, 2025 at 03:12:22PM +0800, Lulu Cheng wrote: The above hunks clearly show that you're regenerating it with some patched autoconf or something like that. Please manually remove those hunks or use vanilla upstream autoconf 2.69. Otherwise the

ping: COBOL: testsuite and running NIST85

2025-04-07 Thread Simon Sobisch
My question stands on integrating COBOLworx' UAT as-is for now (Copyright is all on FSF; built automatically [it is autoconf, which is a requirement for VCS checkouts], possibly also hooked into the current test target) - with the goal to get rid of UAT later (next GCC version, not GCC 15). T

Re: [committed] cobol: Eliminate cobolworx UAT errors when compiling with -Os

2025-04-07 Thread Richard Biener
On Fri, Apr 4, 2025 at 11:50 PM Robert Dubner wrote: > > Anybody who might have gotten interested should stand down. > > As usual, that analysis got me thinking. > > I got focused on where var_decl_return_code was being used. (I was wrong. > I made the mistake because I had just eliminated two se

[committed] libgomp.texi: Add GCN doc for omp_target_memcpy_rect

2025-04-07 Thread Tobias Burnus
omp_target_memcpy_rect uses Nvidia's (CUDA) and AMD's (ROCr/HSA) features to transfer noncontiguous rectangular data efficient. While for CUDA, the wording was already there, it was missing for HSA. (Both landed in GCC 14, albeit HSA half a year later.) This patch adds it also for AMD GPUs; for

Re: [Patch, fortran] PR119460 - gfortran.dg/reduce_1.f90 FAILs

2025-04-07 Thread Christophe Lyon
On Sun, 6 Apr 2025 at 14:39, Paul Richard Thomas wrote: > > Hi All, > > As far as I can tell, the attached patch fixes the problems with the reduce > intrinsic. I would be grateful to the reporters if they would confirm that > this is the case. > > The key to the fix appears in reduce_3.f90, whi