[Bug libstdc++/104928] std::counting_semaphore on Linux can sleep forever

2023-12-09 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104928 --- Comment #2 from Nate Eldredge --- This bug is still present. Tested and reproduced with g++ 13.1.0 (Ubuntu package), and by inspection of the source code, it's still in the trunk as well. Encountered on StackOverflow:

[Bug target/112936] LoongArch: Wrong instruction costs

2023-12-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112936 --- Comment #2 from Xi Ruoyao --- Patch: https://gcc.gnu.org/pipermail/gcc-patches/2023-December/640012.html

[Bug target/112936] LoongArch: Wrong instruction costs

2023-12-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112936 Xi Ruoyao changed: What|Removed |Added Keywords||patch URL|

[Bug target/111867] aarch64: Wrong code for bf16 literal load when the arch support +fp16

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111867 --- Comment #8 from Andrew Pinski --- Created attachment 56842 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56842=edit Patch which I will be submitting soon

RE: [PATCH v7] libgfortran: Replace mutex with rwlock

2023-12-09 Thread Zhu, Lipeng
On 2023/12/9 23:23, Jakub Jelinek wrote: > On Sat, Dec 09, 2023 at 10:39:45AM -0500, Lipeng Zhu wrote: > > This patch try to introduce the rwlock and split the read/write to > > unit_root tree and unit_cache with rwlock instead of the mutex to > > increase CPU efficiency. In the get_gfc_unit

[Bug middle-end/111876] bf16 complex mul/div does not work when the target has +fp16 support or when -fexcess-precision=16 is supplied

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111876 Andrew Pinski changed: What|Removed |Added Component|target |middle-end Keywords|

[Bug libstdc++/112942] swap(variant&, variant&) is incorrectly marked as deleted

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112942 --- Comment #4 from Andrew Pinski --- (In reply to Artem Koton from comment #3) > (In reply to Andrew Pinski from comment #1) > > https://wg21.cmeerw.net/lwg/issue2749 > > Could you elaborate? I understand that this issue discusses the

[Bug libstdc++/112942] swap(variant&, variant&) is incorrectly marked as deleted

2023-12-09 Thread kotonartem at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112942 --- Comment #3 from Artem Koton --- (In reply to Andrew Pinski from comment #1) > https://wg21.cmeerw.net/lwg/issue2749 Could you elaborate? I understand that this issue discusses the constraints in question but a failure to meet them should

[Bug libstdc++/112942] swap(variant&, variant&) is incorrectly marked as deleted

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112942 --- Comment #2 from Andrew Pinski --- https://gcc.gnu.org/pipermail/libstdc++/2016-November/045176.html

[Bug libstdc++/112942] swap(variant&, variant&) is incorrectly marked as deleted

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112942 --- Comment #1 from Andrew Pinski --- https://wg21.cmeerw.net/lwg/issue2749

[Bug libstdc++/112942] New: swap(variant&, variant&) is incorrectly marked as deleted

2023-12-09 Thread kotonartem at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112942 Bug ID: 112942 Summary: swap(variant&, variant&) is incorrectly marked as deleted Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal

[Bug target/111867] aarch64: Wrong code for bf16 literal load when the arch support +fp16

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111867 Andrew Pinski changed: What|Removed |Added Keywords||testsuite-fail

[Bug tree-optimization/112941] during GIMPLE pass: bitintlower ICE: in handle_operand_addr, at gimple-lower-bitint.cc:2126 (gimple-lower-bitint.cc:2134) at -O with _BitInt()

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112941 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/112940] ICE: verify_ssa failed: definition in block 4 does not dominate use in block 8 at -O with _BitInt()

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112940 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[PATCH] aarch64: arm_neon.h - Fix -Wincompatible-pointer-types errors

2023-12-09 Thread Victor Do Nascimento
In the Linux kernel, u64/s64 are [un]signed long long, not [un]signed long. This means that when the `arm_neon.h' header is used by the kernel, any use of the `uint64_t' / `in64_t' types needs to be correctly cast to the correct `__builtin_aarch64_simd_di' / `__builtin_aarch64_simd_df' types when

gcc-13-20231209 is now available

2023-12-09 Thread GCC Administrator via Gcc
Snapshot gcc-13-20231209 is now available on https://gcc.gnu.org/pub/gcc/snapshots/13-20231209/ and on various mirrors, see https://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 13 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

[Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int

2023-12-09 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112758 --- Comment #11 from Eric Botcazou --- > It says those upper bits are well-defined, i.e. whatever MD pattern is used > for it eventually will emit machine code that has the exact same result for > those upper bits. No, that's not true, the set

[Bug libstdc++/109162] C++23 improvements to std::format

2023-12-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109162 Bug 109162 depends on bug 111826, which changed state. Bug 111826 Summary: __cpp_lib_format should be 202110, not 202106 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111826 What|Removed |Added

[Bug libstdc++/111826] __cpp_lib_format should be 202110, not 202106

2023-12-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111826 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/111826] __cpp_lib_format should be 202110, not 202106

2023-12-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111826 --- Comment #2 from GCC Commits --- The releases/gcc-13 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:9f5011f9e6e347e0b91f47a118a0ce58a2c2d99a commit r13-8140-g9f5011f9e6e347e0b91f47a118a0ce58a2c2d99a Author: Jonathan

[Bug middle-end/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #19 from Andrew Pinski --- This patch gets us back to using `&-` rather than shifts/adds for x86_64: ``` diff --git a/gcc/expr.cc b/gcc/expr.cc index 6da51f2aca2..4686cacd22f 100644 --- a/gcc/expr.cc +++ b/gcc/expr.cc @@ -10209,8

[PATCH] Add some new DW_IDX_* constants

2023-12-09 Thread Tom Tromey
I've reimplemented the .debug_names code in GDB -- it was quite far from being correct, and the new implementation is much closer to what is specified by DWARF. However, the new writer in GDB needs to emit some symbol properties, so that the reader can be fully functional. This patch adds a few

[Bug tree-optimization/112887] during GIMPLE pass: phiopt ICE: Floating point exception (SIGFPE) at tree-ssa-phiopt.c:2224 with --param=l1-cache-line-size=0x20000000

2023-12-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112887 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [PATCH] c++/modules: alias CTAD and specializations table

2023-12-09 Thread Jason Merrill
On 11/24/23 13:09, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? OK. -- >8 -- A rewritten guide for alias CTAD isn't really a specialization of the original guide, so we shouldn't register it as such. This avoids an ICE in the below

[Bug tree-optimization/112887] during GIMPLE pass: phiopt ICE: Floating point exception (SIGFPE) at tree-ssa-phiopt.c:2224 with --param=l1-cache-line-size=0x20000000

2023-12-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112887 --- Comment #4 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:c250ff90989a71dff11e9256e99d2fa965ab1295 commit r14-6360-gc250ff90989a71dff11e9256e99d2fa965ab1295 Author: Jakub Jelinek Date:

Re: [PATCH] c++: fix noexcept checking for trivial operations [PR96090]

2023-12-09 Thread Jason Merrill
On 11/27/23 06:07, Nathaniel Shead wrote: Ping for https://gcc.gnu.org/pipermail/gcc-patches/2023-October/634626.html. I've been made aware since constructing this patch of CWG2820, which has a proposed resolution that would change the result of the testcase 'noexcept(yesthrow_t())' (and

[Bug middle-end/112877] TARGET_PROMOTE_PROTOTYPES is not honored consistently, should maybe not apply to builtins

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112877 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug middle-end/112938] ice with -fstrub=internal

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112938 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

Re: [PATCH] c++: End lifetime of objects in constexpr after destructor call [PR71093]

2023-12-09 Thread Jason Merrill
On 11/2/23 21:18, Nathaniel Shead wrote: Bootstrapped and regtested on x86-64_pc_linux_gnu. I'm not entirely sure if the change I made to have destructors clobber with CLOBBER_EOL instead of CLOBBER_UNDEF is appropriate, but nothing seemed to have broken by doing this and I wasn't able to find

Re: [PATCH] phiopt: Fix ICE with large --param l1-cache-line-size= [PR112887]

2023-12-09 Thread Richard Biener
> Am 09.12.2023 um 10:35 schrieb Jakub Jelinek : > > Hi! > > This function is never called when param_l1_cache_line_size is 0, > but it uses int and unsigned int variables to hold alignment in > bits, so for large param_l1_cache_line_size it is zero and e.g. > DECL_ALIGN () %

[Bug tree-optimization/112939] [14 Regression] ICE: verify_ssa failed with -O -ftrivial-auto-var-init=zero

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112939 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Target Milestone|---

v2 [C PATCH] Fix regression causing ICE for structs with VLAs [PR 112488]

2023-12-09 Thread Martin Uecker
I revised version which fixes a problem with breaking other callers of finish_rust. Please ignore the previous one. Bootstrapped and regression tested on x86_64 Fix regression causing ICE for structs with VLAs [PR 112488] A previous patch the fixed several ICEs related to size expressions of

[Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int

2023-12-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112758 --- Comment #10 from Segher Boessenkool --- (In reply to Jakub Jelinek from comment #6) > I must say I have no idea what WORD_REGISTER_OPERATION says about the upper > bits of a paradoxical SUBREG if it is a MEM and load_extend_op (inner_mode)

Re: aarch64: Fix +nopredres, +nols64 and +nomops

2023-12-09 Thread Richard Sandiford
Andrew Carlotti writes: > For native cpu feature detection, certain features have no entry in > /proc/cpuinfo, so have to be assumed to be present whenever the detected > cpu is supposed to support that feature. > > However, the logic for this was mistakenly implemented by excluding > these

Re: aarch64: Fix +nocrypto handling

2023-12-09 Thread Richard Sandiford
Andrew Carlotti writes: > Additionally, replace all checks for the AARCH64_FL_CRYPTO bit with > checks for (AARCH64_FL_AES | AARCH64_FL_SHA2) instead. The value of the > AARCH64_FL_CRYPTO bit within isa_flags is now ignored, but it is > retained because removing it would make processing the data

Re: [PATCH] aarch64: Add missing driver-aarch64 dependencies

2023-12-09 Thread Richard Sandiford
Andrew Carlotti writes: > Ok for master? > > gcc/ChangeLog: > > * config/aarch64/x-aarch64: Add missing dependencies. > > > diff --git a/gcc/config/aarch64/x-aarch64 b/gcc/config/aarch64/x-aarch64 > index > 3cf701a0a01ab00eaaafdfad14bd90ebbb1d498f..6fd638faaab7cb5bb2309d36d6dea2adf1fb8d32

Re: [PING][PATCH 2/2] arm: Add support for MVE Tail-Predicated Low Overhead Loops

2023-12-09 Thread Richard Sandiford
Sorry for the slow review. Stamatis Markianos-Wright writes: > [...] > diff --git a/gcc/config/arm/mve.md b/gcc/config/arm/mve.md > index > 44a04b86cb5806fcf50917826512fd203d42106c..c083f965fa9a40781bc86beb6e63654afd14eac4 > 100644 > --- a/gcc/config/arm/mve.md > +++ b/gcc/config/arm/mve.md >

[Bug libstdc++/112876] ranges:to: c.end() is unnecessarily assigned by the return value of c.emplace()

2023-12-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112876 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |14.0

[Bug libstdc++/112876] ranges:to: c.end() is unnecessarily assigned by the return value of c.emplace()

2023-12-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112876 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug testsuite/112786] [14 Regression] gcc.dg/tree-ssa/scev-3.c scev-4.c and scev-5.c XPASSing on most ilp32 targets

2023-12-09 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112786 Hans-Peter Nilsson changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/96831] gcc.dg/tree-ssa/scev-[345].c FAIL on i?86 and arm

2023-12-09 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96831 Bug 96831 depends on bug 112786, which changed state. Bug 112786 Summary: [14 Regression] gcc.dg/tree-ssa/scev-3.c scev-4.c and scev-5.c XPASSing on most ilp32 targets https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112786 What

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2023-12-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #2 from Xi Ruoyao --- On LA464: 13095 with GCC 13.2.0 The best I've got is: 12639 with GCC 14.0.0 + -falign-loops=8 -falign-labels=4 -falign-jumps=4 -falign-functions=16 and I cannot really explain why this is the best. With

[Bug target/112930] gcc.target/aarch64/sme/call_sm_switch_7.c ICEs on aarch64_be

2023-12-09 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112930 Richard Sandiford changed: What|Removed |Added Last reconfirmed||2023-12-09

[Bug target/112931] gcc.target/aarch64/sme2/acle-asm/write_za16_vg1x2.c ICEs on aarch64_be

2023-12-09 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112931 Richard Sandiford changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rsandifo at gcc dot gnu.org

[Bug target/112933] gcc.target/aarch64/sme2/acle-asm/read_za16_vg1x2.c fails on aarch64_be

2023-12-09 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112933 Richard Sandiford changed: What|Removed |Added Last reconfirmed||2023-12-09

[PATCH 3/3] LoongArch: Add alslsi3_extend

2023-12-09 Thread Xi Ruoyao
Following the instruction cost fix, we are generating alsl.w $a0, $a0, $a0, 4 instead of li.w $t0, 17 mul.w $a0, $t0 for "x * 4", because alsl.w is 4 times faster than mul.w. But we didn't have a sign-extending pattern for alsl.w, causing an extra slli.w instruction generated to

[PATCH 1/3] LoongArch: Include rtl.h for COSTS_N_INSNS instead of hard coding our own

2023-12-09 Thread Xi Ruoyao
With loongarch-def.cc switched from C to C++, we can include rtl.h for COSTS_N_INSNS, instead of hard coding our own. THis is a non-functional change for now, but it will make the code more future-proof in case COSTS_N_INSNS in rtl.h would be changed. gcc/ChangeLog: *

[PATCH 2/3] LoongArch: Fix instruction costs [PR112936]

2023-12-09 Thread Xi Ruoyao
Replace the instruction costs in loongarch_rtx_cost_data constructor based on micro-benchmark results on LA464 and LA664. This allows optimizations like "x * 17" to alsl, and "x * 68" to alsl and slli. gcc/ChangeLog: PR target/112936 * config/loongarch/loongarch-def.cc

[PATCH 0/3] LoongArch: Fix instruction costs

2023-12-09 Thread Xi Ruoyao
Update LoongArch instruction costs based on the micro-benchmark results on LA464 and LA664. In particular, this allows generating alsl/slli or alsl/slli + add pairs for multiplying some constants as on LA464/LA664 a mul instruction is 4x slower than alsl, slli, or add instructions. Bootstrapped

[PATCH] LoongArch: Fix warnings building libgcc

2023-12-09 Thread Xi Ruoyao
We are excluding loongarch-opts.h from target libraries, but now struct loongarch_target and gcc_options are not declared in the target libraries, causing: In file included from ../.././gcc/options.h:8, from ../.././gcc/tm.h:49, from

[Bug tree-optimization/112827] [14 Regression] ICE on valid code at -O1 on x86_64-linux-gnu: Segmentation fault

2023-12-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112827 Jakub Jelinek changed: What|Removed |Added CC||csfore at posteo dot net --- Comment

[Bug tree-optimization/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)

2023-12-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112924 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [PATCH v7] libgfortran: Replace mutex with rwlock

2023-12-09 Thread Jakub Jelinek
On Sat, Dec 09, 2023 at 10:39:45AM -0500, Lipeng Zhu wrote: > This patch try to introduce the rwlock and split the read/write to > unit_root tree and unit_cache with rwlock instead of the mutex to > increase CPU efficiency. In the get_gfc_unit function, the percentage > to step into the

[PATCH v7] libgfortran: Replace mutex with rwlock

2023-12-09 Thread Lipeng Zhu
This patch try to introduce the rwlock and split the read/write to unit_root tree and unit_cache with rwlock instead of the mutex to increase CPU efficiency. In the get_gfc_unit function, the percentage to step into the insert_unit function is around 30%, in most instances, we can get the unit in

Re: [patch] OpenMP/Fortran: Implement omp allocators/allocate for ptr/allocatables

2023-12-09 Thread Jakub Jelinek
On Sat, Dec 09, 2023 at 12:19:10PM +0100, Thomas Schwinge wrote: > > --- a/gcc/omp-builtins.def > > +++ b/gcc/omp-builtins.def > > @@ -467,6 +467,9 @@ DEF_GOMP_BUILTIN > > (BUILT_IN_GOMP_WORKSHARE_TASK_REDUCTION_UNREGISTER, > > DEF_GOMP_BUILTIN (BUILT_IN_GOMP_ALLOC, > >

RE: [PATCH v6] libgfortran: Replace mutex with rwlock

2023-12-09 Thread Zhu, Lipeng
On 2023/12/8 18:19, Jakub Jelinek wrote: > On Fri, Aug 18, 2023 at 11:18:19AM +0800, Zhu, Lipeng wrote: > > From: Lipeng Zhu > > > > This patch try to introduce the rwlock and split the read/write to > > unit_root tree and unit_cache with rwlock instead of the mutex to > > increase CPU

[committed] testsuite: Add testcase for already fixed PR [PR112924]

2023-12-09 Thread Jakub Jelinek
Hi! This testcase got fixed with r14-6132-g50f2a3370d177f8fe9bea0461feb710523e048a2 . I'm just adding a testcase so that it doesn't reappear. Tested on x86_64-linux, with -m32/-m64, current trunk as well as r14-6131 where it ICEd with -m32, committed to trunk as obvious. 2023-12-09 Jakub

[Bug tree-optimization/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)

2023-12-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112924 --- Comment #4 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:af8bbd631f5425e9be084dfd1f2b9487a31a350e commit r14-6359-gaf8bbd631f5425e9be084dfd1f2b9487a31a350e Author: Jakub Jelinek Date:

[Bug tree-optimization/112941] New: during GIMPLE pass: bitintlower ICE: in handle_operand_addr, at gimple-lower-bitint.cc:2126 (gimple-lower-bitint.cc:2134) at -O with _BitInt()

2023-12-09 Thread zsojka at seznam dot cz via Gcc-bugs
rap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231209 (experimental) (GCC)

[Bug tree-optimization/112924] [14 regression] ICE when building util-linux (error: gimple_bb (stmt) is set to a wrong basic block)

2023-12-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112924 Jakub Jelinek changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug tree-optimization/112940] New: ICE: verify_ssa failed: definition in block 4 does not dominate use in block 8 at -O with _BitInt()

2023-12-09 Thread zsojka at seznam dot cz via Gcc-bugs
4-6356-20231209102837-g36be2a0e91c-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231209 (experimental) (GCC)

[Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime

2023-12-09 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 --- Comment #10 from JuzheZhong --- OK. It seems it is VSETVL BUG. I will have look at it.

Re: Re: [PATCH] RISC-V: Add vectorized strcmp.

2023-12-09 Thread 钟居哲
I didn't use any special configuration: --with-arch=rv64gcv_zvl256b --with-abi=lp64d --test --jobs=64 --with-sim=qemu --enable-gcc-checking=yes,assert,extra,rtlflag,rtl,gimple juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-12-09 22:07 To: 钟居哲; gcc-patches; palmer; kito.cheng; Jeff Law CC:

[committed] libstdc++: Fix value of __cpp_lib_format macro [PR111826]

2023-12-09 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to trunk. I'll check, but I think should be backported to gcc-13 too. -- >8 -- As noted in the PR, we support both features required for the 202110L value, so we should define it with that value. libstdc++-v3/ChangeLog: PR libstdc++/111826 *

[Bug libstdc++/111826] __cpp_lib_format should be 202110, not 202106

2023-12-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111826 --- Comment #1 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:cdf45e00a936a76a785c592c9730f24ef1ac25cd commit r14-6358-gcdf45e00a936a76a785c592c9730f24ef1ac25cd Author: Jonathan Wakely

Re: [PATCH] RISC-V: Add vectorized strcmp.

2023-12-09 Thread Robin Dapp
> rv64gcv With -minline-strcmp I assume? Regards Robin

[committed] libstdc++: Fix resolution of LWG 4016 for std::ranges::to [PR112876]

2023-12-09 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to trunk. -- >8 -- What I implemented in r14-6199-g45630fbcf7875b does not match what I proposed for LWG 4016, and it imposes additional, unwanted requirements on the emplace and insert member functions of the container being populated. libstdc++-v3/ChangeLog:

[Bug libstdc++/112876] ranges:to: c.end() is unnecessarily assigned by the return value of c.emplace()

2023-12-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112876 --- Comment #5 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:a314edee2490259d7f7caec8eef77846bcdb608b commit r14-6357-ga314edee2490259d7f7caec8eef77846bcdb608b Author: Jonathan Wakely

[Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime

2023-12-09 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 --- Comment #9 from Robin Dapp --- In the good version the length is 32 here because directly before the vsetvl we have: li a4,32 That seems to get lost somehow.

[Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime

2023-12-09 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 --- Comment #8 from JuzheZhong --- Li Pan will investigate it. He will note me if there is a bug in vsetvl pass.

Re: Re: [PATCH] RISC-V: Add vectorized strcmp.

2023-12-09 Thread 钟居哲
rv64gcv juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-12-09 21:51 To: 钟居哲; gcc-patches; palmer; kito.cheng; Jeff Law CC: rdapp.gcc Subject: Re: [PATCH] RISC-V: Add vectorized strcmp. > FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test > FAIL:

Re: [PATCH] RISC-V: Recognize stepped series in expand_vec_perm_const.

2023-12-09 Thread 钟居哲
It's more reasonable to fix it in vec_perm_const instead of fix it in middle-end. LGTM. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-12-09 21:18 To: gcc-patches; palmer; Kito Cheng; jeffreyalaw; juzhe.zh...@rivai.ai CC: rdapp.gcc Subject: [PATCH] RISC-V: Recognize stepped series in

[Bug libstdc++/98723] On Windows with CP936 encoding, regex compiles very slow.

2023-12-09 Thread luca.bacci at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98723 Luca Bacci changed: What|Removed |Added CC||luca.bacci at outlook dot com --- Comment

Re: [PATCH] RISC-V: Add vectorized strcmp.

2023-12-09 Thread Robin Dapp
> FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test > FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test > FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test > FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test >

[Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime

2023-12-09 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 --- Comment #7 from Robin Dapp --- Here 0x105c6 vse8.v v8,(a5) is where we overwrite m. The vl is 128 but the preceding vsetvl gets a4 = 46912504507016 as AVL which seems already borken.

[Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime

2023-12-09 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929 --- Comment #6 from Robin Dapp --- This seems to be gone when simple vsetvl (instead of lazy) is used or with -fno-schedule-insns which might indicate a vsetvl pass problem. We might have a few more of those. Maybe it would make sense to run

[Bug libgomp/112264] Occasionally (but very rare): 'FAIL: libgomp.fortran/target-nowait-array-section.f90 -O execution test'

2023-12-09 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112264 Thomas Schwinge changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/110987] Segmentation fault after finalization of a temporary variable

2023-12-09 Thread chilikin.k at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110987 --- Comment #3 from Kirill Chilikin --- The derived type T3 has zero components but not zero length as it extends T1; the test does not crash after the following changes: diff --git a/gcc/fortran/trans.cc b/gcc/fortran/trans.cc index

[PATCH] RISC-V: Recognize stepped series in expand_vec_perm_const.

2023-12-09 Thread Robin Dapp
Hi, we currently try to recognize various forms of stepped (const_vector) sequence variants in expand_const_vector. Because of complications with canonicalization and encoding it is easier to identify such patterns in expand_vec_perm_const_1 already where perm.series_p () is available. This

Re: [PATCH] Reimplement __gnu_cxx::__ops operators

2023-12-09 Thread François Dumont
On 07/12/2023 14:41, Jonathan Wakely wrote: On Wed, 6 Dec 2023 at 20:55, François Dumont wrote: I think I still got no feedback about this cleanup proposal. Can you remind me why we have all those different functions in predefined_ops.h in the first place? I think it was to avoid having two

[Bug tree-optimization/112939] New: ICE: verify_ssa failed with -O -ftrivial-auto-var-init=zero

2023-12-09 Thread iamanonymous.cs at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112939 Bug ID: 112939 Summary: ICE: verify_ssa failed with -O -ftrivial-auto-var-init=zero Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug c++/112938] ice with -fstrub=internal

2023-12-09 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112938 David Binderman changed: What|Removed |Added CC||aoliva at gcc dot gnu.org ---

[Bug c++/112938] New: ice with -fstrub=internal

2023-12-09 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112938 Bug ID: 112938 Summary: ice with -fstrub=internal Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/112937] New: [14 Regression] GCN: FAILs due to unconditional 'f->use_flat_addressing = true;'

2023-12-09 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112937 Bug ID: 112937 Summary: [14 Regression] GCN: FAILs due to unconditional 'f->use_flat_addressing = true;' Product: gcc Version: 14.0 Status: UNCONFIRMED

Re: [patch] OpenMP/Fortran: Implement omp allocators/allocate for ptr/allocatables

2023-12-09 Thread Thomas Schwinge
Hi Tobias! On 2023-11-08T17:58:10+0100, Tobias Burnus wrote: > OpenMP/Fortran: Implement omp allocators/allocate for ptr/allocatables Nice work! > This commit adds -fopenmp-allocators which enables support for > 'omp allocators' and 'omp allocate' that are associated with a Fortran >

Re: [PATCH] Add support for function attributes and variable attributes

2023-12-09 Thread Guillaume Gomez
Added it. Le jeu. 7 déc. 2023 à 18:13, Antoni Boucher a écrit : > > It seems like you forgot to prefix the commit message with "libgccjit: > ". > > On Thu, 2023-11-30 at 10:55 +0100, Guillaume Gomez wrote: > > Ping David. :) > > > > Le jeu. 23 nov. 2023 à 22:59, Antoni Boucher a > > écrit : > >

[Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int

2023-12-09 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112758 --- Comment #9 from Eric Botcazou --- > Which means punt on this optimization for WORD_REGISTER_OPERATIONS if the > outer mode is word_mode, except when sub is a MEM and load_extend_op > (inner_mode) == ZERO_EXTEND? Yes, this sounds like a

Re: [PATCH 15/21]middle-end: [RFC] conditionally support forcing final edge for debugging

2023-12-09 Thread Richard Sandiford
Tamar Christina writes: > Hi All, > > What do people think about having the ability to force only the latch > connected > exit as the exit as a param? I.e. what's in the patch but as a param. > > I found this useful when debugging large example failures as it tells me where > I should be

Re: GCC 12.3 ICE: format(printf...) failing in C++ with virtual inheritance

2023-12-09 Thread Amol Surati via Gcc
On Sat, 9 Dec 2023 at 03:53, Paul Smith via Gcc wrote: > > I've tried this with both older versions as well as GCC 12.3 (latest I > have access to). This is on GNU/Linux on x86_64. > > > I have the following code: [...] > I'm assuming a bug should be filed for this ICE (can anyone repro it in >

[Bug middle-end/109267] generates empty functions with .cfi_startproc/.cfi_endproc that conflict with other functions

2023-12-09 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109267 Iain Sandoe changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[PATCH] phiopt: Fix ICE with large --param l1-cache-line-size= [PR112887]

2023-12-09 Thread Jakub Jelinek
Hi! This function is never called when param_l1_cache_line_size is 0, but it uses int and unsigned int variables to hold alignment in bits, so for large param_l1_cache_line_size it is zero and e.g. DECL_ALIGN () % param_align_bits can divide by zero. Looking at the code, the function uses

[Bug driver/93019] memory leak in gcc -O2 reported by Valgrind

2023-12-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93019 --- Comment #7 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:36be2a0e91c76da4afcd5ddc37e03f5800396387 commit r14-6356-g36be2a0e91c76da4afcd5ddc37e03f5800396387 Author: Jakub Jelinek Date:

[Bug middle-end/111126] Not always using czero.eqz

2023-12-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26 Xi Ruoyao changed: What|Removed |Added Target|riscv* (with zicond)|riscv* (with zicond), |

[Bug middle-end/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug middle-end/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #16 from Xi Ruoyao --- BTW is it possible to get the value range info of (x) and combine (and y, (neg x)) back to maskeqz in LoongArch backend? It will further improve the performance. Or maybe expr.cc should invoke a target hook

[Bug target/112936] LoongArch: Wrong instruction costs

2023-12-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112936 Xi Ruoyao changed: What|Removed |Added Last reconfirmed||2023-12-09 Status|UNCONFIRMED

[Bug middle-end/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #15 from Andrew Pinski --- I see what is happening and kinda of see why it is not there ...

[Bug middle-end/112935] [14 Regression] Performance regression in Coremarks crcu8 function

2023-12-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112935 --- Comment #14 from Xi Ruoyao --- LoongArch cost model issue is now PR112936.

[Bug target/112936] New: LoongArch: Wrong instruction costs

2023-12-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112936 Bug ID: 112936 Summary: LoongArch: Wrong instruction costs Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

  1   2   >