[Bug target/91420] relocation truncated to fit: R_RISCV_HI20 against `.LC0' with GCC 8.2/8.3 with "-O2" on RISC-V

2024-03-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91420 --- Comment #9 from Andrew Pinski --- (In reply to Andrew Pinski from comment #8) > That is definitely a bug in mcmodel=kernel in the x86backenbd which is > different from the problem here even though both have same testcase. Filed the x86_64 is

[Bug target/91420] relocation truncated to fit: R_RISCV_HI20 against `.LC0' with GCC 8.2/8.3 with "-O2" on RISC-V

2024-03-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91420 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Waterman from comment #2) > The RISC-V code models currently in existence place a 2 GiB limit on > the extent of the statically linked portion of a binary. Rather than > a bug, I would de

[Bug target/91420] relocation truncated to fit: R_RISCV_HI20 against `.LC0' with GCC 8.2/8.3 with "-O2" on RISC-V

2024-03-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91420 Andrew Pinski changed: What|Removed |Added CC||sch...@linux-m68k.org --- Comment #7 fro

[Bug target/91420] relocation truncated to fit: R_RISCV_HI20 against `.LC0' with GCC 8.2/8.3 with "-O2" on RISC-V

2019-08-12 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91420 Jim Wilson changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/91420] relocation truncated to fit: R_RISCV_HI20 against `.LC0' with GCC 8.2/8.3 with "-O2" on RISC-V

2019-08-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91420 --- Comment #6 from Richard Biener --- (In reply to Andrew Waterman from comment #4) > In -O2, the compiler materializes ("x" + INT_MIN) by loading that > symbol+offset into a register in one shot, whereas in -O0 it loads the > address of "x" int

[Bug target/91420] relocation truncated to fit: R_RISCV_HI20 against `.LC0' with GCC 8.2/8.3 with "-O2" on RISC-V

2019-08-11 Thread bmeng.cn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91420 --- Comment #5 from Bin Meng --- Thanks Andrew. That makes sense! I wonder whether there is a way to teach GCC not to generate code for such radical optimization that it can't relocate when using "-O2", on all architectures :)