[patch, libgfortran] PR119502

2025-04-12 Thread Jerry D
The attached patch fixes this bug by adding checks for negative unit numbers in CLOSE and OPEN statements. Regression tested on x86_64_linux_gnu. OK for trunk Author: Jerry DeLisle Date: Sat Apr 12 19:51:23 2025 -0700 Fortran: Fix runtime segfault closing negative unit Whe

Re: [PATCH v2] c++/modules: More fixes for merging DECL_MAYBE_DELETED functions

2025-04-12 Thread Jason Merrill
On 4/10/25 5:35 PM, Nathaniel Shead wrote: On Thu, Apr 10, 2025 at 12:19:57PM -0400, Jason Merrill wrote: On 4/10/25 8:46 AM, Nathaniel Shead wrote: Regression raised with my by private correspondance. Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? -- >8 -- My change in r15-

Re: [PATCH] c++: improve constexpr call caching [PR115639]

2025-04-12 Thread Jason Merrill
On 4/12/25 12:20 PM, Patrick Palka wrote: On Sat, 12 Apr 2025, Jason Merrill wrote: On 4/11/25 4:36 PM, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for GCC 15 perhaps? -- >8 -- Here checking static_assert(0 == big_calc()); takes twice as mu

[PATCH] Wbuiltin-declaration-mismatch-4.c: accept long long in warning for llp64

2025-04-12 Thread Jonathan Yong
Attached patch OK for master branch? Will push soon if there are no objections. From a74ce95293fc310557047fa5da6fb9d55e760f61 Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10wa...@gmail.com> Date: Sun, 13 Apr 2025 02:41:36 + Subject: [PATCH] Wbuiltin-declaration-mismatch-4.c: accept long long

Re: Documentation for the REDUCE intrinsic

2025-04-12 Thread Sandra Loosemore
On 4/12/25 01:10, Paul Richard Thomas wrote: Hi All, Now that the reduce intrinsic seems to be OK on all platforms, I thought that it was time to catch up with the documentation. The attached produces good .html without any additional warnings or errors using texi2any and ~/share/info/gfortr

[committed] d: Fix -fonly= argument only matches when including full path [PR119758]

2025-04-12 Thread Iain Buclaw
Hi, This patch fixes a couple issues with the `-fonly=' option in the D front-end driver. Using `strcmp' to match the `-fonly=' argument with the input source file made the feature inflexible to use. By mistake, the driver was also found to omit all other modules on the command line as well, whi

[committed] d: Add option to include imported modules in the compilation [PR109023]

2025-04-12 Thread Iain Buclaw
Hi, This patch adds the ability to include imported modules in the compilation, as if they were given on the command line. When this option is enabled, all imported modules are compiled except those that are part of libphobos. Bootstrapped and regression tested on x86_64-linux-gnu/-m32, and comm

[PATCH] testsuite: unxfail ira-shrinkwrap-prep-[12].c for x86_64 [PR117706]

2025-04-12 Thread Andrew Pinski
When late combine was enabled for x86_64 (r15-1735-ge62ea4fb8ffcab), these 2 testcases start to xpass in a similar fashion as when late combine was added and the testcase was updated for aarch64 not to xfail them there. Pushed as obvious after a test to make sure the testcase no longer xpass.

Re: [PATCH] c++: improve constexpr prvalue folding [PR116416]

2025-04-12 Thread Patrick Palka
On Sat, 12 Apr 2025, Jason Merrill wrote: > On 4/11/25 4:36 PM, Patrick Palka wrote: > > Boostrapped and regtested on x86_64-pc-linux- gnu, does this look OK > > for GCC 15 perhaps? > > > > -- >8 -- > > > > This patch improves upon r15-6052-g12de1942a0a673 by performing prvalue > > folding with

Re: [PATCH] c++: improve constexpr call caching [PR115639]

2025-04-12 Thread Patrick Palka
On Sat, 12 Apr 2025, Jason Merrill wrote: > On 4/11/25 4:36 PM, Patrick Palka wrote: > > Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for > > GCC 15 perhaps? > > > > -- >8 -- > > > > Here checking > > > >static_assert(0 == big_calc()); > > > > takes twice as much ti

Re: [PATCH] c++: improve constexpr prvalue folding [PR116416]

2025-04-12 Thread Jason Merrill
On 4/11/25 4:36 PM, Patrick Palka wrote: Boostrapped and regtested on x86_64-pc-linux- gnu, does this look OK for GCC 15 perhaps? -- >8 -- This patch improves upon r15-6052-g12de1942a0a673 by performing prvalue folding with mce_false rather than mce_unknown when it's safe to do so (i.e. the cal

Re: [PATCH] c++: improve constexpr call caching [PR115639]

2025-04-12 Thread Jason Merrill
On 4/11/25 4:36 PM, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for GCC 15 perhaps? -- >8 -- Here checking static_assert(0 == big_calc()); takes twice as much time as constexpr int ret = big_calc(); static_assert(0 == ret); ultimately b

[PATCH] Add a bootstrap-native build config

2025-04-12 Thread Andi Kleen
From: Andi Kleen ... that uses -march=native -mtune=native to build a compiler optimized for the host. config/ChangeLog: * bootstrap-native.mk: New file. gcc/ChangeLog: * doc/install.texi: Document bootstrap-native. --- config/bootstrap-native.mk | 1 + gcc/doc/install.texi

[COMMITTED] Doc: Explicitly document extensions implied by -march=x86_64 [PR97585]

2025-04-12 Thread Sandra Loosemore
gcc/ChangeLog PR target/97585 * doc/invoke.texi (x86 Options): Document list of extensions supported by -march=x86_64, according to the declaration of PTA_X86_64_BASELINE in config/i386/i386.h. --- gcc/doc/invoke.texi | 3 ++- 1 file changed, 2 insertions(+), 1 dele

Re: [PATCH] [riscv] vec_dup immediate constants in pred_broadcast expand [PR118182]

2025-04-12 Thread Jeff Law
On 4/12/25 12:41 AM, Alexandre Oliva wrote: pr118182-2.c fails on gcc-14 because it lacks the late_combine passes, particularly the one that runs after register allocation. Even in the trunk, the predicate broadcast for the add reduction is expanded and register-allocated as _zvfh, taking up

[PATCH] libstdc++: Fix std::string construction from volatile char* [PR119748]

2025-04-12 Thread Jonathan Wakely
My recent r15-9381-g648d5c26e25497 change assumes that a contiguous iterator with the correct value_type can be converted to a const charT* but that's not true for volatile charT*. The optimization should only be done if it can be converted to the right pointer type. Additionally, the generic loop

[Ada] Fix PR ada/119643

2025-04-12 Thread Eric Botcazou
The language says that the profile of a subprogram renaming-as-declaration must be mode conformant with that of the renamed subprogram, and that the parameter subtypes are taken from the renamed subprogram. GNAT implements the rule, except when Natural and Positive are involved, which may lead

[PUSHED] Fortran: Add code gen for do, concurrent's LOCAL/LOCAL_INIT: Fix 'static_assert' [PR101602]

2025-04-12 Thread Thomas Schwinge
Fix-up for commit 2d7e1d6e40a13a5f160b584336795b80f193ec3b "Fortran: Add code gen for do,concurrent's LOCAL/LOCAL_INIT [PR101602]": ../../source-gcc/gcc/fortran/trans-stmt.cc: In function ‘void gfc_trans_concurrent_locality_spec(bool, stmtblock_t*, std::vector*, gfc_expr_list**)’: ../../

Documentation for the REDUCE intrinsic

2025-04-12 Thread Paul Richard Thomas
Hi All, Now that the reduce intrinsic seems to be OK on all platforms, I thought that it was time to catch up with the documentation. The attached produces good .html without any additional warnings or errors using texi2any and ~/share/info/gfortran.info is as intended. OK for mainline? Paul di