[Bug tree-optimization/111916] New: wrong code at -O1 and above on x86_64-linux-gnu (the generated code hangs)

2023-10-21 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111916 Bug ID: 111916 Summary: wrong code at -O1 and above on x86_64-linux-gnu (the generated code hangs) Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug c++/110848] Consider enabling -Wvla by default in non-GNU C++ modes

2023-10-21 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110848 --- Comment #15 from Eric Gallager --- (In reply to Eric Gallager from comment #14) > Oh right, if we're considering changing things for plain-C here, too, then > maybe have it enabled by -Wc++-compat there? Or rather, for plain-C modes, where

[Bug c++/110848] Consider enabling -Wvla by default in non-GNU C++ modes

2023-10-21 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110848 --- Comment #14 from Eric Gallager --- Oh right, if we're considering changing things for plain-C here, too, then maybe have it enabled by -Wc++-compat there?

[Bug tree-optimization/111910] `a - b < 0` is not transformed into `a < b` for signed types

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111910 Andrew Pinski changed: What|Removed |Added Blocks||50856 --- Comment #4 from Andrew

[RFC PATCH] RISC-V: Initial RV64E and LP64E support

2023-10-21 Thread Tsukasa OI
From: Tsukasa OI Along with RV32E, RV64E is ratified. Though ILP32E and LP64E ABIs are still draft, it's worth supporting it. This commit should not be merged until two proposals below are going to proceed. LP64E proposal (including suggested changes):

[Bug tree-optimization/111915] [14 Regression] ICE in vect with option `-O2 -fno-tree-vrp -fno-tree-dominator-opts -fno-tree-ccp`

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111915 --- Comment #3 from Andrew Pinski --- Note the reasoning for the extra options is still get: _2 = i_26 * 2; _23 = _2 & 1; _9 = (long unsigned int) _23; In the IR. Otherwise _23 would be 0.

[Bug tree-optimization/111915] [14 Regression] ICE in vect with option `-O2 -fno-tree-vrp -fno-tree-dominator-opts -fno-tree-ccp`

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111915 --- Comment #2 from Andrew Pinski --- Maybe one of richi's recent SLP related patches: GCC 13: /app/example.cpp:5:21: missed: Build SLP failed: not grouped load _12 = *_11; /app/example.cpp:5:21: note: SLP discovery for node 0x4cdbb68

[Bug tree-optimization/111915] [14 Regression] ICE in vect with option `-O2 -fno-tree-vrp -fno-tree-dominator-opts -fno-tree-ccp`

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111915 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-10-22 Target Milestone|---

[Bug target/65250] [SH] Improve comparisons followed by a negated cstore

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65250 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug c/111915] New: GCC: ICEs on a program with __restrict and option `-O2 -fno-tree-vrp -fno-tree-dominator-opts -fno-tree-ccp`

2023-10-21 Thread 141242068 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111915 Bug ID: 111915 Summary: GCC: ICEs on a program with __restrict and option `-O2 -fno-tree-vrp -fno-tree-dominator-opts -fno-tree-ccp` Product: gcc Version: 14.0 Status:

[Bug c/111912] GCC: 14: internal compile error when apply __transaction_atomic on logical or expr

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111912 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Known to fail|

[Bug tree-optimization/111913] [14 Regression] ICE with __builtin_popcount(X) + __builtin_popcount(Y) simplification

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111913 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code, |

[Bug c/111914] ICE with function pointer array as argument with non-constant size

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111914 Andrew Pinski changed: What|Removed |Added Known to fail||7.1.0 Keywords|

[Bug c/111911] [11/12/13/14 Regression] ICE with integer overflow converting to _Bool

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111911 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > I suspect it started with PR 93241 (and is very similar to PR 93348). (_Bool) <<< Unknown tree: c_maybe_const_expr 1 >>> == 0) So maybe

[Bug c/111911] [11/12/13/14 Regression] ICE with integer overflow converting to _Bool

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111911 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection See Also|

[Bug c/111914] New: GCC: 14: ICE when function pointer array as arguments

2023-10-21 Thread 141242068 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111914 Bug ID: 111914 Summary: GCC: 14: ICE when function pointer array as arguments Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/111911] [11/12/13/14 Regression] ICE with integer overflow converting to _Bool

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111911 --- Comment #2 from Andrew Pinski --- A c_maybe_const_expr is there still for this.

[Bug c/111913] New: GCC: 14: -O1 compile __builtin_popcount fails while -O0 succeeds

2023-10-21 Thread 141242068 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111913 Bug ID: 111913 Summary: GCC: 14: -O1 compile __builtin_popcount fails while -O0 succeeds Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug c/111911] [11/12/13/14 Regression] ICE with integer overflow converting to _Bool

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111911 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-10-22

[Bug c/111911] [11/12/13/14 Regression] ICE with integer overflow converting to _Bool

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111911 Andrew Pinski changed: What|Removed |Added Known to fail||10.1.0, 11.1.0, 8.4.0,

[Bug c/111912] New: GCC: 14: internal compile error when apply __transaction_atomic on logical or expr

2023-10-21 Thread 141242068 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111912 Bug ID: 111912 Summary: GCC: 14: internal compile error when apply __transaction_atomic on logical or expr Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug c/111911] New: GCC: 14: internal compiler error: internal compiler error: in gimplify_expr, at gimplify.cc:17510

2023-10-21 Thread 141242068 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111911 Bug ID: 111911 Summary: GCC: 14: internal compiler error: internal compiler error: in gimplify_expr, at gimplify.cc:17510 Product: gcc Version: 14.0 Status: UNCONFIRMED

Re: [PATCH] RISC-V: Prohibit combination of 'E' and 'H'

2023-10-21 Thread Tsukasa OI
On 2023/10/22 3:04, Jeff Law wrote: > > > On 10/20/23 23:32, Tsukasa OI wrote: >> From: Tsukasa OI >> >> According to the ratified privileged specification (version 20211203), >> it says: >> >>> The hypervisor extension depends on an "I" base integer ISA with 32 x >>> registers (RV32I or

[Bug target/65250] [SH] Improve comparisons followed by a negated cstore

2023-10-21 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65250 --- Comment #2 from Oleg Endo --- Briefly checked this one on GCC-13. It generates the optimal sequence.

[Bug ada/111909] Filename case sensitivity defaulted wrongly on macOS

2023-10-21 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111909 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---

[PATCHv2] move the (a-b) CMP 0 ? (a-b) : (b-a) optimization from fold_cond_expr_with_comparison to match

2023-10-21 Thread Andrew Pinski
From: Andrew Pinski This patch moves the `(a-b) CMP 0 ? (a-b) : (b-a)` optimization from fold_cond_expr_with_comparison to match. Bootstrapped and tested on x86_64-linux-gnu. Changes in: v2: Removes `(a == b) ? 0 : (b - a)` handling since it was handled via r14-3606-g3d86e7f4a8ae

gcc-13-20231021 is now available

2023-10-21 Thread GCC Administrator via Gcc
Snapshot gcc-13-20231021 is now available on https://gcc.gnu.org/pub/gcc/snapshots/13-20231021/ and on various mirrors, see http://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 tree-optimization/111910] `a - b < 0` is not transformed into `a < b` for signed types

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111910 --- Comment #3 from Andrew Pinski --- Also this: ``` int f(int a, int b) { if (a < b) return a - b; else return b - a; } int fa(int a, int b) { return (a < b) ? (a - b) : (b - a); } int f1(int a, int b) { int t = a - b;

[Bug tree-optimization/111910] `a - b < 0` is not transformed into `a < b` for signed types

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111910 --- Comment #2 from Andrew Pinski --- That is: ``` int f(int a, int b) { if (a > b) return a - b; else return b - a; } int fa(int a, int b) { return (a > b) ? (a - b) : (b - a); } int f1(int a, int b) { int t = a - b;

[Bug tree-optimization/111910] `a - b < 0` is not transformed into `a < b` for signed types

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

[Bug tree-optimization/25290] PHI-OPT could be rewritten so that is uses match

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25290 --- Comment #32 from Andrew Pinski --- https://gcc.gnu.org/pipermail/gcc-patches/2004-June/140297.html for reference where the original idea came from.

[Bug target/111908] Port CheriBSD-specific compiler warnings to GCC

2023-10-21 Thread jrtc27 at jrtc27 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111908 --- Comment #1 from Jessica Clarke --- NB: Arm have a vendor branch for Morello (intended to be generic across CHERI with a Morello-specific backend, rather than overly tied to the Morello prototype) at refs/vendors/ARM/heads/morello. I have no

[Bug tree-optimization/111910] New: `a - b < 0` is not transformed into `a < b` for signed types

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111910 Bug ID: 111910 Summary: `a - b < 0` is not transformed into `a < b` for signed types Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: FIXME,

[Bug fortran/111837] [11/12/13/14 Regression] Out of bounds access with optimization inside io-implied-do-control

2023-10-21 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111837 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED

[Bug fortran/111837] [11/12/13/14 Regression] Out of bounds access with optimization inside io-implied-do-control

2023-10-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111837 --- Comment #7 from CVS Commits --- The releases/gcc-11 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:9b569e0a1cf79519eea2e62422232c8d2d483f07 commit r11-11071-g9b569e0a1cf79519eea2e62422232c8d2d483f07 Author: Harald Anlauf

Re: [PATCH] move the (a-b) CMP 0 ? (a-b) : (b-a) optimization from fold_cond_expr_with_comparison to match

2023-10-21 Thread Andrew Pinski
On Thu, Oct 19, 2023 at 10:13 PM Andrew Pinski wrote: > > On Mon, Jul 12, 2021 at 4:47 AM Richard Biener via Gcc-patches > wrote: > > > > On Sun, Jul 11, 2021 at 4:12 AM apinski--- via Gcc-patches > > wrote: > > > > > > From: Andrew Pinski > > > > > > This patch moves the (a-b) CMP 0 ? (a-b) :

[Bug fortran/111837] [11/12/13/14 Regression] Out of bounds access with optimization inside io-implied-do-control

2023-10-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111837 --- Comment #6 from CVS Commits --- The releases/gcc-12 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:4d4d191e03d102d5afeb4b091e947560351004c3 commit r12-9934-g4d4d191e03d102d5afeb4b091e947560351004c3 Author: Harald Anlauf

[Bug fortran/111837] [11/12/13/14 Regression] Out of bounds access with optimization inside io-implied-do-control

2023-10-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111837 --- Comment #5 from CVS Commits --- The releases/gcc-13 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:c83907b9fad802a5c38ed4ca75d9415b8f57f619 commit r13-7972-gc83907b9fad802a5c38ed4ca75d9415b8f57f619 Author: Harald Anlauf

Re: [PATCH v9 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces

2023-10-21 Thread rep . dot . nop
On 21 October 2023 01:56:16 CEST, Vineet Gupta wrote: >On 10/19/23 23:50, Ajit Agarwal wrote: >> Hello All: >> >> This version 9 of the patch uses abi interfaces to remove zero and sign >> extension elimination. >> Bootstrapped and regtested on powerpc-linux-gnu. >> >> In this version (version

Re: Darwin: Replace environment runpath with embedded [PR88590]

2023-10-21 Thread Iain Sandoe
Hi Jeff, > On 21 Oct 2023, at 19:05, Jeff Law wrote: > On 10/8/23 16:14, Iain Sandoe wrote: >> + Jeff >>> On 8 Oct 2023, at 14:07, Nathanael Nerode wrote: >>> >>> I hope a global maintainer can step up. I've been on hiatus from GCC work >>> for some years, and this was never my part of the

[Bug c/111903] [14 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in create_tmp_from_val, at gimplify.cc:567 with -mno-sse2 and _Float16

2023-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111903 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[PATCH] convert_to_complex vs invalid_conversion [PR111903]

2023-10-21 Thread Andrew Pinski
convert_to_complex when creating a COMPLEX_EXPR does not currently check if either the real or imag parts was not error_mark_node. This later on confuses the gimpilfier when there was a SAVE_EXPR wrapped around that COMPLEX_EXPR. The simple fix is after calling convert inside convert_to_complex_1,

Re: Darwin: Replace environment runpath with embedded [PR88590]

2023-10-21 Thread Jeff Law
On 10/8/23 16:14, Iain Sandoe wrote: + Jeff On 8 Oct 2023, at 14:07, Nathanael Nerode wrote: I hope a global maintainer can step up. I've been on hiatus from GCC work for some years, and this was never my part of the build system anyway -- and I don't use Darwin -- so I'm not qualified

Re: [PATCH] RISC-V: Prohibit combination of 'E' and 'H'

2023-10-21 Thread Jeff Law
On 10/20/23 23:32, Tsukasa OI wrote: From: Tsukasa OI According to the ratified privileged specification (version 20211203), it says: The hypervisor extension depends on an "I" base integer ISA with 32 x registers (RV32I or RV64I), not RV32E, which has only 16 x registers. Also in the

Re: [PATCH] RISC-V: 'Zfa' extension is now ratified

2023-10-21 Thread Jeff Law
On 10/20/23 23:32, Tsukasa OI wrote: From: Tsukasa OI Since this extension is ratified, it now has the version number 1.0. Reference: gcc/ChangeLog: * common/config/riscv/riscv-common.cc (riscv_ext_version_table):

Re: Question about the pass_fre about merging if blocks.

2023-10-21 Thread Richard Biener via Gcc
> Am 21.10.2023 um 16:39 schrieb Hanke Zhang : > > Richard Biener 于2023年10月21日周六 18:23写道: >> >> >> Am 21.10.2023 um 10:58 schrieb Hanke Zhang : >>> >>> Richard Biener 于2023年10月20日周五 23:27写道: >> Am 20.10.2023 um 16:33 schrieb Hanke Zhang : > >

[Bug fortran/111781] Fortran compiler complains about variable bound in array dummy argument

2023-10-21 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111781 --- Comment #3 from Mikael Morin --- I'm trying to remove the formal_arg_flag global variables, which seem to just disable all the checks on dummy arguments. Unfortunately, it regresses a bit, say pr101026.f for example can be simplified to

[Bug ada/111909] New: Filename case sensitivity defaulted wrongly on macOS

2023-10-21 Thread simon at pushface dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111909 Bug ID: 111909 Summary: Filename case sensitivity defaulted wrongly on macOS Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: [PATCH] libstdc++: Ensure active union member is correctly set

2023-10-21 Thread Jonathan Wakely
On Fri, 29 Sept 2023 at 17:46, Jonathan Wakely wrote: > > On Fri, 29 Sept 2023 at 17:29, Nathaniel Shead > wrote: > > > > On Fri, Sep 29, 2023 at 04:06:33PM +0100, Jonathan Wakely wrote: > > > On Fri, 29 Sept 2023 at 10:32, Jonathan Wakely wrote: > > > > > Thanks for the comments, here's an

[Bug c++/110848] Consider enabling -Wvla by default in non-GNU C++ modes

2023-10-21 Thread aaron at aaronballman dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110848 --- Comment #13 from Aaron Ballman --- Just to circle back around on this topic, these are changes recently landed in Clang: https://github.com/llvm/llvm-project/commit/84a3aadf0f2483dde0acfc4e79f2a075a5f35bd1 It enables the -Wvla-extension

Re: Question about the pass_fre about merging if blocks.

2023-10-21 Thread Hanke Zhang via Gcc
Richard Biener 于2023年10月21日周六 18:23写道: > > > > > Am 21.10.2023 um 10:58 schrieb Hanke Zhang : > > > > Richard Biener 于2023年10月20日周五 23:27写道: > >> > >> > >> > Am 20.10.2023 um 16:33 schrieb Hanke Zhang : > >>> > >>> Richard Biener 于2023年10月20日周五 21:33写道: > > > On Fri, Oct 20,

Re: [PATCH 01/22] Add condition coverage profiling

2023-10-21 Thread Jørgen Kvalsvik
On 05/10/2023 22:39, Jørgen Kvalsvik wrote: On 05/10/2023 21:59, Jan Hubicka wrote: Like Wahlen et al this implementation records coverage in fixed-size bitsets which gcov knows how to interpret. This is very fast, but introduces a limit on the number of terms in a single boolean expression,

[Bug fortran/111781] Fortran compiler complains about variable bound in array dummy argument

2023-10-21 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111781 Mikael Morin changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[PATCH v6] Add condition coverage profiling

2023-10-21 Thread Jørgen Kvalsvik
This patch adds support in gcc+gcov for modified condition/decision coverage (MC/DC) with the -fprofile-conditions flag. MC/DC is a type of test/code coverage and it is particularly important in the avation and automotive industries for safety-critical applications. MC/DC it is required for or

[Bug target/111908] New: Port CheriBSD-specific compiler warnings to GCC

2023-10-21 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111908 Bug ID: 111908 Summary: Port CheriBSD-specific compiler warnings to GCC Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: build, diagnostic Severity: normal

Re: [PATCH v2] libstdc++: Workaround for LLVM-61763 in ranges

2023-10-21 Thread Jonathan Wakely
On Sat, 21 Oct 2023 at 12:16, Jonathan Wakely wrote: > > On Mon, 16 Oct 2023 at 04:56, Benjamin Acker Brock wrote: > > > > > I don't think this patch counts as legally significant, but if you > > > contribute again in future you should be aware of > > >

Re: [PATCH v2] libstdc++: Workaround for LLVM-61763 in ranges

2023-10-21 Thread Jonathan Wakely
On Mon, 16 Oct 2023 at 04:56, Benjamin Acker Brock wrote: > > > I don't think this patch counts as legally significant, but if you > > contribute again in future you should be aware of > > https://gcc.gnu.org/contribute.html#legal and either complete the copyright > > assignment paperwork, or

Re: [PATCH v2] libstdc++: testsuite: Enhance codecvt_unicode with tests for length()

2023-10-21 Thread Jonathan Wakely
On Wed, 18 Oct 2023 at 11:52, Dimitrij Mijoski wrote: > > We can test codecvt::length() with the same data that we test > codecvt::in(). For each call of in() we add another call to length(). > Some additional small cosmentic changes are applied. Pushed to master, thanks! > >

[PING 2] [C PATCH] Synthesize nonnull attribute for parameters declared with static

2023-10-21 Thread Martin Uecker
> > C programmers increasingly use static to indicate that > pointer parameters are non-null. Clang can exploit this > for warnings and optimizations. GCC has some warnings > but not all warnings it has for nonnull. Below is a > patch to add a nonnull attribute automatically for such  >

[committed] libstdc++: Fix formatting of filesystem directory iterators

2023-10-21 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to trunk. -- >8 -- Fix indentation. libstdc++-v3/ChangeLog: * include/bits/fs_dir.h (operator==(default_sentinel_t)): Fix indentation. --- libstdc++-v3/include/bits/fs_dir.h | 16 1 file changed, 8 insertions(+), 8 deletions(-)

[Bug tree-optimization/80532] warning on pointer access after free

2023-10-21 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80532 --- Comment #11 from Eric Gallager --- (In reply to CVS Commits from comment #9) > The master branch has been updated by Martin Sebor : > > https://gcc.gnu.org/g:671a283636de75f7ed638ee6b01ed2d44361b8b6 > > commit

[Bug target/111905] -O3 vectorization terribly pessimizes the code for an already unrolled loop

2023-10-21 Thread kamkaz at windowslive dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111905 --- Comment #4 from Kamil Kaznowski --- (In reply to Andrew Pinski from comment #2) > Why are you using `-mprefer-vector-width=512` here? > > 512 causes the loop to be needing to be unrolled once more and that is why > the confusion happening.

[Bug target/111905] -O3 vectorization terribly pessimizes the code for an already unrolled loop

2023-10-21 Thread kamkaz at windowslive dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111905 --- Comment #3 from Kamil Kaznowski --- Created attachment 56166 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56166=edit a smaller example A smaller example. Compilation flags: -O2 -march=x86-64-v3 -std=c++23 vs -O3 -march=x86-64-v3

Re: Question about the pass_fre about merging if blocks.

2023-10-21 Thread Richard Biener via Gcc
> Am 21.10.2023 um 10:58 schrieb Hanke Zhang : > > Richard Biener 于2023年10月20日周五 23:27写道: >> >> >> Am 20.10.2023 um 16:33 schrieb Hanke Zhang : >>> >>> Richard Biener 于2023年10月20日周五 21:33写道: > On Fri, Oct 20, 2023 at 1:48 PM Hanke Zhang via Gcc > wrote: >

[PATCH v10 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces

2023-10-21 Thread Ajit Agarwal
Hello Vineet and Jeff: This version 10 of the patch uses abi interfaces to remove zero and sign extension elimination. Bootstrapped and regtested on powerpc-linux-gnu. In this version (version 9) of the patch following review comments are incorporated. a) Removal of hard code zero_extend and

Re: [PATCH v9 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces

2023-10-21 Thread Ajit Agarwal
Hello Vineet: Thanks for your time and valuable comments. On 21/10/23 5:26 am, Vineet Gupta wrote: > On 10/19/23 23:50, Ajit Agarwal wrote: >> Hello All: >> >> This version 9 of the patch uses abi interfaces to remove zero and sign >> extension elimination. >> Bootstrapped and regtested on

[Bug target/111907] New: ICE: in curr_insn_transform, at lra-constraints.cc:4294 unable to generate reloads for: {*andnottf3} with -mavx512f -mno-evex512 -mbionic

2023-10-21 Thread zsojka at seznam dot cz via Gcc-bugs
sable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r14-4813-20231021102502-g57cbb1d3344-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231021 (experimental) (GCC)

[Bug tree-optimization/111906] New: ICE: segfault during GIMPLE pass: dom in gsi_prev() testsuite torture/bitint-39.c with -O1 (expensive tests)

2023-10-21 Thread rimvydas.jas at gmail dot com via Gcc-bugs
entation fault) FAIL: gcc.dg/torture/bitint-39.c -O1 (test for excess errors) === gcc Summary === # of expected passes12 # of unexpected failures2 # of unresolved testcases 1 /tmp/build/gcc/xgcc version 14.0.0 20231021 (experimental) [master r14-481

Re: Question about the pass_fre about merging if blocks.

2023-10-21 Thread Hanke Zhang via Gcc
Richard Biener 于2023年10月20日周五 23:27写道: > > > > > Am 20.10.2023 um 16:33 schrieb Hanke Zhang : > > > > Richard Biener 于2023年10月20日周五 21:33写道: > >> > >>> On Fri, Oct 20, 2023 at 1:48 PM Hanke Zhang via Gcc > >>> wrote: > >>> > >>> Hi, I'm trying to make pass_fre work better for me. But I got a

Re: [PATCH 2/5] LoongArch: Use explicit relocs for GOT access when -mexplicit-relocs=auto and LTO during a final link with linker plugin

2023-10-21 Thread Xi Ruoyao
On Sat, 2023-10-21 at 15:32 +0800, chenglulu wrote: > > +  /* If we are performing LTO for a final link, and we have the linker > > + plugin so we know the resolution of the symbols, then all GOT > > + references are binding to external symbols or preemptable symbols. > > + So the

Re: [PATCH 2/5] LoongArch: Use explicit relocs for GOT access when -mexplicit-relocs=auto and LTO during a final link with linker plugin

2023-10-21 Thread chenglulu
/* snip */ +/* If -mexplicit-relocs=auto, we use machine operations with reloc hints + for cases where the linker is unable to relax so we can schedule the + machine operations, otherwise use an assembler pseudo-op so the + assembler will generate R_LARCH_RELAX. */ + +bool

[PATCH] [PR111520] set hardcmp eh probs (was: rename make_eh_edges to make_eh_edge)

2023-10-21 Thread Alexandre Oliva
On Oct 20, 2023, Richard Biener wrote: >> * tree-eh.h (make_eh_edges): Rename to... >> (make_eh_edge): ... this. >> * tree-eh.cc: Likewise. Adjust all callers. Once the above goes in (it depends on the strub monster patch), the following one should apply as well. Regstrapped on

Re: Remove stale Autoconf checks for Perl

2023-10-21 Thread Alexandre Oliva
On May 16, 2023, Thomas Schwinge wrote: > OK to push the attached "Remove stale Autoconf checks for Perl"? LGTM, thanks, -- Alexandre Oliva, happy hackerhttps://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer Disinformation