[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 --- Comment #12 from Sam James --- Thank you!

[Bug rtl-optimization/115876] [15 regression] ext-dce.cc has ubsan issues; shifting negative values

2024-08-17 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 --- Comment #17 from Jeffrey A. Law --- And the other case is (subreg:SI (reg:TF) 12). No great surprise that the bit position is problematical for that. Should be an easy fix.

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-17 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 --- Comment #11 from Li Pan --- Thanks for suggestion, will move run test to gcc/testsuite/gcc.c-torture/execute and only leave asm check under riscv.

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #10 f

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 --- Comment #9 from GCC Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:e8f31f4f58f0fcf1716fc1d9ee003fbcdda600c3 commit r15-2979-ge8f31f4f58f0fcf1716fc1d9ee003fbcdda600c3 Author: Pan Li Date: Fri Aug 9 10:26

[Bug c++/116404] New: nodiscard is not warned on casts (non void)

2024-08-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116404 Bug ID: 116404 Summary: nodiscard is not warned on casts (non void) Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priori

[Bug c++/116403] [modules] Deduction guides not reachable across transitive non-exported imports

2024-08-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116403 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/116403] New: [modules] Deduction guides not reachable across transitive non-exported imports

2024-08-17 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116403 Bug ID: 116403 Summary: [modules] Deduction guides not reachable across transitive non-exported imports Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords

[Bug rtl-optimization/115876] [15 regression] ext-dce.cc has ubsan issues; shifting negative values

2024-08-17 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 --- Comment #16 from Jeffrey A. Law --- At least part of these are coming from the use-side processing of TImode operations in carry_backpropagate. The right thing to do in that case is just return the mode mask indicating all the chunks are po

[Bug rtl-optimization/116389] [avr][15 regression] ICE in extract_constrain_insn for avrtiny and -O2

2024-08-17 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116389 --- Comment #6 from Jeffrey A. Law --- Sorry should have written "is _not_ a reasonable assessment" in my prior message. RA does assess validity and there's nothing special about avr here and paradoxicals, unless the backend is doing something

[Bug c++/110367] [C++26] Add new built-in for std::is_within_lifetime

2024-08-17 Thread hanicka at hanicka dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110367 Hana Dusíková changed: What|Removed |Added CC||hanicka at hanicka dot net --- Comment

[Bug rtl-optimization/116389] [avr][15 regression] ICE in extract_constrain_insn for avrtiny and -O2

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116389 --- Comment #5 from Georg-Johann Lay --- (In reply to Jeffrey A. Law from comment #4) > "IRA doesn't understand the impact of paradoxical subreg" is a > reasonable assessment. RA should either assess the validity of a paradoxical subreg in the m

[Bug target/116390] [15 regression] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread jeffreyalaw at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 --- Comment #9 from Jeffrey A. Law --- On 8/17/24 2:37 PM, gjl at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 > > Georg-Johann Lay changed: > > What|Removed |Added > ---

[Bug target/116390] [15 regression] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 Georg-Johann Lay changed: What|Removed |Added CC||gjl at gcc dot gnu.org --- Comment #

[Bug rtl-optimization/116389] [avr][15 regression] ICE in extract_constrain_insn for avrtiny and -O2

2024-08-17 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116389 --- Comment #4 from Jeffrey A. Law --- I'm pretty confident IRA knows the basics of paradoxicals. The concept of paradoxicals has been around since the gcc-1 era and Vlad is well aware of how paradoxicals work. So while there may be a bug, I d

[Bug rtl-optimization/116389] [avr][15 regression] ICE in extract_constrain_insn for avrtiny and -O2

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116389 --- Comment #3 from Georg-Johann Lay --- (In reply to Jeffrey A. Law from comment #2) > or a backend bug with avr. I don't see what the avr backend is doing wrong. I played around with avr_hard_regno_mode_ok etc. and denied SImode for R30, but

[Bug tree-optimization/94893] Sign function not getting optimized to simple compare

2024-08-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94893 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > (In reply to Andrew Pinski from comment #3) > > Note we also don't optimize: > > > > inline int sign1(int x) > > { > > return (x < 0 ? -1 : 0) | (x > 0 ? 1 :

[Bug ada/116147] ADA Cross Compiler for ARM does not build

2024-08-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116147 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |INVALID --- Comment #16 from Andrew Pin

[Bug target/116390] [15 regression] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 --- Comment #7 from Jeffrey A. Law --- WRT the question in c#1. A paradoxical subreg is the canonical way to say I want to view this pseudo (or expression) in a mode wider than its native mode and I don't care about the state of the bits outsid

[Bug target/116282] [15 Regression] RISC-V rv64id_zba_zbkb ICE: could not split insn

2024-08-17 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116282 Jeffrey A. Law changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/116282] [15 Regression] RISC-V rv64id_zba_zbkb ICE: could not split insn

2024-08-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116282 --- Comment #4 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:7aed8dedeb9613925930447bf2457c3fd9972d91 commit r15-2971-g7aed8dedeb9613925930447bf2457c3fd9972d91 Author: Jeff Law Date: Sat Aug 17

[Bug rtl-optimization/116402] [LRA] Improve hook documentation for reload -> LRA transition

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116402 Georg-Johann Lay changed: What|Removed |Added Ever confirmed|0 |1 Blocks|

[Bug rtl-optimization/116402] New: [LRA] Improve hook documentation for reload -> LRA transition

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116402 Bug ID: 116402 Summary: [LRA] Improve hook documentation for reload -> LRA transition Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug ada/116147] ADA Cross Compiler for ARM does not build

2024-08-17 Thread dldudley at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116147 David Dudley changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug target/116280] [15 Regression] RISC-V: expected mode RVVMF8QI for operand 2 of insn pred_vwsllrvvmf4hi but got mode RVVMF2SI

2024-08-17 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116280 Jeffrey A. Law changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/116280] [15 Regression] RISC-V: expected mode RVVMF8QI for operand 2 of insn pred_vwsllrvvmf4hi but got mode RVVMF2SI

2024-08-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116280 --- Comment #2 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:06ae7bc1345a31a5f23dc86b348a1bef59bb3cc1 commit r15-2969-g06ae7bc1345a31a5f23dc86b348a1bef59bb3cc1 Author: Pan Li Date: Sat Aug 17 09

[Bug c++/100476] coroutines: questionable handling of void get_return_object

2024-08-17 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100476 --- Comment #8 from Iain Sandoe --- Created attachment 58946 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58946&action=edit patch under test

[Bug rtl-optimization/116389] [avr][15 regression] ICE in extract_constrain_insn for avrtiny and -O2

2024-08-17 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116389 --- Comment #2 from Jeffrey A. Law --- Yes, a paradoxical is precisely what we expect and want here. This sounds like either a reload bug (definitely possible, I'm still chasing one of these over on the m68k) or a backend bug with avr.

[Bug rtl-optimization/116325] [lra] error: unable to generate reloads for:

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116325 --- Comment #1 from Georg-Johann Lay --- Created attachment 58945 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58945&action=edit C++ test case from libstdc++v3 This is a test case from libstdc++v3. Compile with $ avr-g++ pr116389.cpp

[Bug modula2/116378] [15 Regression] M2 bootstrap fails on x86_64-darwin after r15-2876

2024-08-17 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116378 --- Comment #13 from Iain Sandoe --- (In reply to Gaius Mulley from comment #12) > Created attachment 58943 [details] > Proposed fix v8 > > Here is a proposed patch for PR 116181, I was wondering how this patch > affects darwin? git master + t

[Bug modula2/114529] profiledbootstrap fails to build and m2 causes odr violations during build

2024-08-17 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114529 Gaius Mulley changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug rtl-optimization/116390] [15 regression] [ext_dce] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 --- Comment #6 from Georg-Johann Lay --- (In reply to Detlef Vollmann from comment #5) > Thanks for your patch. > It solves the segfault ICE for -O2. > But unfortunately it doesn't solve the build for -O3 or -O4. > It still produces the same er

[Bug rtl-optimization/116389] [avr][15 regression] ICE in extract_constrain_insn for avrtiny and -O2

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116389 Georg-Johann Lay changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug rtl-optimization/116390] [15 regression] [ext_dce] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread dv at vollmann dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 Detlef Vollmann changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug c++/116401] New: [modules] Header units can contain definitions of non-inline decls with external linkage

2024-08-17 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116401 Bug ID: 116401 Summary: [modules] Header units can contain definitions of non-inline decls with external linkage Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug rtl-optimization/116390] [15 regression] [ext_dce] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 Georg-Johann Lay changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/116390] [15 regression] [ext_dce] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 --- Comment #3 from GCC Commits --- The releases/gcc-14 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:f3d9c120a1959c5b094001516c1e5cb4ba6f4080 commit r14-10597-gf3d9c120a1959c5b094001516c1e5cb4ba6f4080 Author: Georg-Johan

[Bug libfortran/116400] New: [15 Regression] Regenerated files are no longer written to the source directory

2024-08-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116400 Bug ID: 116400 Summary: [15 Regression] Regenerated files are no longer written to the source directory Product: gcc Version: 15.0 Status: UNCONFIRMED Severity

[Bug c++/113773] coroutines: promise deconstructed twice if throwing from return object

2024-08-17 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113773 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org --- Comment #2 f

[Bug rtl-optimization/116390] [15 regression] [ext_dce] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 --- Comment #2 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:4065d163151b07b274241377e71dad028576db88 commit r15-2963-g4065d163151b07b274241377e71dad028576db88 Author: Georg-Johann Lay Dat

[Bug debug/87440] GCC creates debug that confuses gdb

2024-08-17 Thread bernd.edlinger at hotmail dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87440 --- Comment #6 from Bernd Edlinger --- patch is posted here: https://gcc.gnu.org/pipermail/gcc-patches/2024-August/660611.html

[Bug fortran/114146] REPEATABLE argument of RANDOM_INIT and repeated execution of the program

2024-08-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114146 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug rtl-optimization/116390] [15 regression] [ext_dce] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 Sam James changed: What|Removed |Added Target Milestone|--- |15.0 Summary|[ext_dce][avr][15

[Bug libstdc++/116399] New: C++26 text_encoding​::​aliases_view is not default-constructible

2024-08-17 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116399 Bug ID: 116399 Summary: C++26 text_encoding​::​aliases_view is not default-constructible Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal