[Bug rtl-optimization/119115] [15 regression] RISC-V: miscompile at -O3 with zvl256b -fsigned-char -fwrapv since r15-1579-g792f97b44ff

2025-03-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119115 --- Comment #6 from GCC Commits --- The master branch has been updated by Robin Dapp : https://gcc.gnu.org/g:77ef91d7159613c0cfc2920ddd5a32952c61ff5b commit r15-8022-g77ef91d7159613c0cfc2920ddd5a32952c61ff5b Author: Robin Dapp Date: Wed Mar

[Bug target/117955] GCC generate illegal riscv instruction `vsetvli zero,zero,e64,mf4,ta,ma` with -O2 and -O3

2025-03-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117955 --- Comment #8 from GCC Commits --- The master branch has been updated by Robin Dapp : https://gcc.gnu.org/g:f043ef2b6a59088b16a269b55f09023f76c92e32 commit r15-8021-gf043ef2b6a59088b16a269b55f09023f76c92e32 Author: Robin Dapp Date: Tue Feb

[Bug other/119250] GCC configure fails to find the declaration of basename() on hosts that need

2025-03-13 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119250 --- Comment #6 from Iain Sandoe --- (In reply to Jakub Jelinek from comment #5) > (In reply to Iain Sandoe from comment #4) > > Does anyone know why libiberty doe not install the build-time config file > > and have libiberty.h include it? > > T

[Bug libstdc++/119266] libstdc++.modules.json has wrong path

2025-03-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119266 --- Comment #4 from Jonathan Wakely --- Ah no, because we're just using it from the makefile, not in C++ code.

[Bug cobol/119214] debug volatile asm breaks assembling

2025-03-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119214 --- Comment #13 from Richard Biener --- (In reply to Robert Dubner from comment #7) > Well, I did ask for suggestions. I suppose it's not surprising I don't > really understand them. Yet. > > I should explain, a little further, the underlying

[Bug libstdc++/119266] libstdc++.modules.json has wrong path

2025-03-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119266 --- Comment #3 from Jonathan Wakely --- I wonder if using std::filesystem (or std::experimental::filesystem for C++14) would make this path handling more robust.

[Bug cobol/119229] ICE with gcobol -flto (in get_partitioning_class, at symtab.cc:2190)

2025-03-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119229 --- Comment #6 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:d109ad5e96ee9d31cbab0bba385fb490275a9937 commit r15-8020-gd109ad5e96ee9d31cbab0bba385fb490275a9937 Author: Richard Biener Date:

[Bug cobol/119229] ICE with gcobol -flto (in get_partitioning_class, at symtab.cc:2190)

2025-03-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119229 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/118966] [15 Regression] 6% slowdown of 464.h264ref on Aarch64

2025-03-13 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118966 --- Comment #4 from Filip Kastl --- Yeah, it looks like this is fixed. I'll wait for the automated benchmark to reproduce the speedup and then I'll close this PR.

[Bug ada/119265] New: unsigned __int128 not converted properly by -fdump-ada-spec, while __int128 is

2025-03-13 Thread tobias at strongswan dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119265 Bug ID: 119265 Summary: unsigned __int128 not converted properly by -fdump-ada-spec, while __int128 is Product: gcc Version: 15.0 Status: UNCONFIRMED Severity:

[Bug libstdc++/119266] libstdc++.modules.json has wrong path

2025-03-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119266 --- Comment #1 from Sam James --- As pointed out in the CMake bug, Fedora is doing https://src.fedoraproject.org/rpms/gcc/c/46a6d807645871b4d243ef2be35f9677bd4d68cb?branch=rawhide but I don't know if there's a PR for that (couldn't find one).

[Bug libstdc++/119266] libstdc++.modules.json has wrong path

2025-03-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119266 --- Comment #2 from Sam James --- (To state the obvious: the PR119081 fix didn't solve it for this case.)

[Bug libstdc++/119266] New: libstdc++.modules.json has wrong path

2025-03-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119266 Bug ID: 119266 Summary: libstdc++.modules.json has wrong path Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++

[Bug other/119218] libiberty configure test fails for basename on targets which declare it in .

2025-03-13 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119218 --- Comment #15 from Iain Sandoe --- (In reply to Iain Sandoe from comment #14) > Created attachment 60727 [details] > Patch under test > > Please could you let me know if this works for Solaris too. > > (note that this does not fix the cobol

[Bug target/118446] __builtin_iseqsig does not raise exception when supplied with NaN on Cortex-M at -O1 or higher

2025-03-13 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118446 --- Comment #3 from Christophe Lyon --- Patch proposal: https://gcc.gnu.org/pipermail/gcc-patches/2025-March/677494.html

[Bug target/110796] builtin_iseqsig fails some tests in armv8l-linux-gnueabihf

2025-03-13 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110796 --- Comment #14 from Christophe Lyon --- Patch proposal: https://gcc.gnu.org/pipermail/gcc-patches/2025-March/677494.html

[Bug libstdc++/119266] libstdc++.modules.json has wrong path

2025-03-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119266 --- Comment #6 from Jonathan Wakely --- Yes for the overwhelming majority of users, it would make sense for contrib/relpath.sh (or libstdc++-v3/src/c++23/Makefile.am) to use GNU realpath when available. https://www.gnu.org/software/coreutils/ma

[Bug rtl-optimization/119115] [15 regression] RISC-V: miscompile at -O3 with zvl256b -fsigned-char -fwrapv since r15-1579-g792f97b44ff

2025-03-13 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119115 Robin Dapp changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug tree-optimization/119253] RISC-V GCC auto-vectorizes unaligned memory access even if mvector-strict-align is enabled

2025-03-13 Thread Dusan.Stojkovic--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119253 Dusan Stojkovic changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #2 from Dusan Stojk

[Bug libstdc++/108053] std::visit_format_arg should hide __int128 and other extensions behind a handle

2025-03-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108053 --- Comment #5 from GCC Commits --- The master branch has been updated by Tomasz Kaminski : https://gcc.gnu.org/g:22847ef193670e761ed205a4a6f0a694b939d4e4 commit r15-8023-g22847ef193670e761ed205a4a6f0a694b939d4e4 Author: Tomasz KamiÅski Date:

[Bug target/119225] avr-mmcu.texi:15: warning: @anchor should not appear on @item line

2025-03-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119225 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #3) > Fedora 41 only has texinfo-7.1 so I see those errors. The fedora maintainer has kindly packaged an update for F41.

[Bug libstdc++/88322] Implement C++20 library features.

2025-03-13 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88322 Bug 88322 depends on bug 108053, which changed state. Bug 108053 Summary: std::visit_format_arg should hide __int128 and other extensions behind a handle https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108053 What|Removed

[Bug target/117955] GCC generate illegal riscv instruction `vsetvli zero,zero,e64,mf4,ta,ma` with -O2 and -O3

2025-03-13 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117955 Robin Dapp changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/108053] std::visit_format_arg should hide __int128 and other extensions behind a handle

2025-03-13 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108053 Tomasz Kamiński changed: What|Removed |Added Target Milestone|--- |15.0

[Bug c/116545] Support old style statement attributes

2025-03-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116545 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Eve

[Bug target/119267] New: RISC-V: gcc generates vsetvli with wrong LMUL with extended assembly

2025-03-13 Thread mperotti at iis dot ee.ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119267 Bug ID: 119267 Summary: RISC-V: gcc generates vsetvli with wrong LMUL with extended assembly Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/119280] Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation

2025-03-13 Thread fanghuaqi at vip dot qq.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119280 --- Comment #3 from Huaqi --- (In reply to Andrew Pinski from comment #1) > https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Extended-Asm.html#Volatile-1 > > Note that the compiler can move even volatile asm instructions relative to > other code,

[Bug middle-end/119280] Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation

2025-03-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119280 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #7 from Andrew Pi

[Bug tree-optimization/17884] asm 'volatile' is not honored as documented

2025-03-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17884 Andrew Pinski changed: What|Removed |Added CC||fanghuaqi at vip dot qq.com --- Comment

[Bug analyzer/119278] [15 Regression] ICE on gnutls-3.8.9: in cmp_csts_same_type, at analyzer/svalue.cc:466 since r15-8016-g8015a72ae49640

2025-03-13 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119278 --- Comment #2 from Sergei Trofimovich --- Yeah, bisect landed on r15-8016-g8015a72ae49640

[Bug middle-end/119280] Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation

2025-03-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119280 --- Comment #6 from Andrew Pinski --- Funny I pointed to the same documentation as mentioned in the LLVM issue without seeing that. Again this is not a bug in GCC. If you want to do some really micro-benchmarking you will need to write everyth

[Bug tree-optimization/119253] RISC-V GCC auto-vectorizes unaligned memory access even if mvector-strict-align is enabled

2025-03-13 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119253 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #4 fr

[Bug middle-end/119280] Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation

2025-03-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119280 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/119280] Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation

2025-03-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119280 --- Comment #2 from Andrew Pinski --- res = a[0] * a[0]; __asm volatile("rdcycle %0" : "=r"(end_cycle) : "r"(res) : "memory"); Will cause the second rdcycle to stay after the mult. Otherwise you could just write the full thing in asse

[Bug middle-end/119280] Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation

2025-03-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119280 --- Comment #8 from Sam James --- If something behaves identically in GCC and in Clang, that usually means it's UB (or some intentional behaviour, or both). You can style it as a feature request but something fundamental isn't going to change li

[Bug middle-end/119280] Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation

2025-03-13 Thread fanghuaqi at vip dot qq.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119280 --- Comment #5 from Huaqi --- And for llvm part, the author topperc is looking into this issue, and try to find a way to fix it, see https://github.com/llvm/llvm-project/issues/130033#issuecomment-2707711817

[Bug tree-optimization/119274] [15 Regression] False positive array-bounds warning

2025-03-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119274 --- Comment #6 from Andrew Pinski --- Created attachment 60750 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60750&action=edit trying to get a testcase fails without std::vector This one can be optimized in fre3 and we don't get the warn

[Bug middle-end/119280] Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation

2025-03-13 Thread fanghuaqi at vip dot qq.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119280 --- Comment #4 from Huaqi --- (In reply to Andrew Pinski from comment #2) > res = a[0] * a[0]; > __asm volatile("rdcycle %0" : "=r"(end_cycle) : "r"(res) : "memory"); > > Will cause the second rdcycle to stay after the mult. > > Otherw

[Bug c/119280] New: Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation

2025-03-13 Thread fanghuaqi at vip dot qq.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119280 Bug ID: 119280 Summary: Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: nor

[Bug middle-end/119280] Unexpected inline asm rdcycle code misplaced cause wrong cycle calculation

2025-03-13 Thread fanghuaqi at vip dot qq.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119280 --- Comment #9 from Huaqi --- Okay, thank you Andrew and Sam for your explaination.

<    1   2