[Bug target/117460] New: riscv64 backend emits large relocations due to loop strength reduction

2024-11-05 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117460 Bug ID: 117460 Summary: riscv64 backend emits large relocations due to loop strength reduction Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug target/110066] [13 Regression] [RISC-V] Segment fault if compiled with -static -pg

2023-08-04 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110066 --- Comment #25 from Aurelien Jarno --- (In reply to Andrew Pinski from comment #23) > Fixed on the trunk will backport to GCC 13 after 13.2.0 is released (since > the branch is frozen except for RM approvals). Now that GCC 13.2.0 has been rele

[Bug tree-optimization/110755] [13/14 Regression] Wrong optimization of fabs on ppc64el at -O1

2023-07-24 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110755 --- Comment #10 from Aurelien Jarno --- (In reply to Jakub Jelinek from comment #9) > Created attachment 55616 [details] > gcc14-pr110755.patch > > Updated patch. Thanks. I have just tested it, and I confirm it fixes the reported issue.

[Bug tree-optimization/110755] [13/14 Regression] Wrong optimization of fabs on ppc64el at -O1

2023-07-22 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110755 --- Comment #7 from Aurelien Jarno --- (In reply to Jakub Jelinek from comment #6) > Created attachment 55594 [details] > gcc14-pr110755.patch > > Untested patch. Thanks for the patch, I confirm it works as expected, now the result is a positi

[Bug target/110066] [13/14 Regression] [RISC-V] Segment fault if compiled with -static -pg

2023-07-22 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110066 --- Comment #18 from Aurelien Jarno --- (In reply to Andreas Schwab from comment #17) > I don't think you need -fno-omit-frame-pointer. I confirm that CRTSTUFF_T_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables is enough to fix the

[Bug target/110066] [13/14 Regression] [RISC-V] Segment fault if compiled with -static -pg

2023-07-22 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110066 --- Comment #15 from Aurelien Jarno --- (In reply to Andrew Pinski from comment #14) > Created attachment 55614 [details] > patch for someone to test out > > The problem is the similar across many targets so I basically copied what > was done f

[Bug target/110066] [RISC-V] Segment fault if compiled with -static -pg

2023-07-22 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110066 --- Comment #12 from Aurelien Jarno --- Backtrace with debug symbols in libgcc_eh.a: Program received signal SIGSEGV, Segmentation fault. classify_object_over_fdes (ob=0xe2da0 , this_fde=0x1000530e6, range=0x3ff310) at ../../../gcc/libgcc/u

[Bug target/110066] [RISC-V] Segment fault if compiled with -static -pg

2023-07-22 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110066 --- Comment #11 from Aurelien Jarno --- I have bisected the issue, and I found it has been introduced by the following commit: commit 3cd08f7168c196d7a481b9ed9f4289fd1f14eea8 Author: Andreas Schwab Date: Wed Jan 25 12:00:09 2023 +0100 r

[Bug target/110066] [RISC-V] Segment fault if compiled with -static -pg

2023-07-22 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110066 --- Comment #10 from Aurelien Jarno --- (In reply to Aurelien Jarno from comment #9) > (In reply to Andrew Pinski from comment #5) > > Can you try reverting r13-923-g2d546ff69455f7deadab and try GCC 13 again? > > Yep, I'll do that, but it will

[Bug target/110066] [RISC-V] Segment fault if compiled with -static -pg

2023-07-22 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110066 --- Comment #9 from Aurelien Jarno --- (In reply to Andrew Pinski from comment #5) > Can you try reverting r13-923-g2d546ff69455f7deadab and try GCC 13 again? Yep, I'll do that, but it will probably take some time to get the results. (In reply

[Bug target/110066] [RISC-V] Segment fault if compiled with -static -pg

2023-07-22 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110066 --- Comment #8 from Aurelien Jarno --- Created attachment 55610 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55610&action=edit crtbeginT.o GCC 12 version

[Bug target/110066] [RISC-V] Segment fault if compiled with -static -pg

2023-07-22 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110066 --- Comment #7 from Aurelien Jarno --- Created attachment 55609 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55609&action=edit crtbeginT.o GCC 12 version

[Bug target/110066] [RISC-V] Segment fault if compiled with -static -pg

2023-07-21 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110066 Aurelien Jarno changed: What|Removed |Added CC||aurelien at aurel32 dot net --- Commen

[Bug target/110755] Wrong optimization of fabs on ppc64el at -O1

2023-07-20 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110755 --- Comment #2 from Aurelien Jarno --- (In reply to Andrew Pinski from comment #1) > Hmm, this might be the case where you need -frounding-math since we don't > expectly implement the pragma. Indeed the original glibc code is compiled with -fro

[Bug target/110755] New: Wrong optimization of fabs on ppc64el at -O1

2023-07-20 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110755 Bug ID: 110755 Summary: Wrong optimization of fabs on ppc64el at -O1 Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: t

[Bug target/104338] RISC-V: Subword atomics result in library calls

2023-05-16 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104338 --- Comment #18 from Aurelien Jarno --- Thanks Patrick for working on that and for the backport to the gcc-13 branch. I wonder if the following patch should also be backported, as it doesn't make sense to link with -latomic anymore with inline s

[Bug target/104338] RISC-V: Subword atomics result in library calls

2022-08-16 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104338 Aurelien Jarno changed: What|Removed |Added CC||aurelien at aurel32 dot net --- Commen

[Bug debug/103874] [11 Regression] ICE in internal_error on riscv64 and -gsplit-dwarf

2022-01-20 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103874 --- Comment #11 from Aurelien Jarno --- Thanks for the patch! I confirm the issue is fixed on the trunk. I also tried to apply it on the GCC 11 branch (which is basically renaming dwarf2out.cc into dwarf2out.c in the patch) and this also works f

[Bug target/103874] [11/12 Regression] ICE in internal_error on riscv64

2021-12-31 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103874 Aurelien Jarno changed: What|Removed |Added CC||jakub at redhat dot com --- Comment #5

[Bug target/103874] [11/12 Regression] ICE in internal_error on riscv64

2021-12-31 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103874 --- Comment #4 from Aurelien Jarno --- This is a better backtrace after building a riscv64 cross compiler from the releases/gcc-11 branch: /tmp/onnxifi_loader.c.i:6:1: internal compiler error: Segmentation fault 6 | } | ^ 0xadad0f cra

[Bug target/103874] [11/12 Regression] ICE in internal_error on riscv64

2021-12-31 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103874 --- Comment #3 from Aurelien Jarno --- I have been able to reduce the reproducer code to almost nothing, so I guess the issue is mostly related to the options and not to the source code.

[Bug target/103874] [11/12 Regression] ICE in internal_error on riscv64

2021-12-31 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103874 Aurelien Jarno changed: What|Removed |Added Attachment #52099|0 |1 is obsolete|

[Bug c/103874] [11/12 Regression] ICE in internal_error on riscv64

2021-12-31 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103874 --- Comment #1 from Aurelien Jarno --- Sorry I submitted the bug by mistake without filling a comment. pytorch failed to build in Debian on riscv64 following the switch to GCC 11 by default: https://buildd.debian.org/status/fetch.php?pkg=pytorc

[Bug c/103874] New: [11/12 Regression] ICE in internal_error on riscv64

2021-12-31 Thread aurelien at aurel32 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103874 Bug ID: 103874 Summary: [11/12 Regression] ICE in internal_error on riscv64 Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Compo