[Bug c/25802] VM types of external and internal linkage variables not diagnosed
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 15 12:17:07 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25802
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Rainer Orth <ro@gcc.gnu.org>:
https://gcc.gnu.org/g:4141aa41c51798ad7bd77e6da31bdd86f11a471d
commit r17-1565-g4141aa41c51798ad7bd77e6da31bdd86f11a471d
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Mon Jun 15 14:16:37 2026 +0200
testsuite: Skip gcc.dg/lto/toplevel-extended-asm-1 etc. on 64-bit
Solaris/SPARC
Two LTO tests FAIL on 64-bit Solaris/SPARC:
FAIL: gcc.dg/lto/toplevel-extended-asm-1
c_lto_toplevel-extended-asm-1_0.o-c_lto_toplevel-extended-asm-1_1.o link, -O2
-flto -flto-partition=1to1 -no-pie
FAIL: gcc.dg/lto/toplevel-simple-asm-1
c_lto_toplevel-simple-asm-1_0.o-c_lto_toplevel-simple-asm-1_1.o link, -O2 -flto
-flto-toplevel-asm-heuristics -flto-partition=1to1 -no-pie
FAIL: gcc.dg/lto/toplevel-simple-asm-1
c_lto_toplevel-simple-asm-1_0.o-c_lto_toplevel-simple-asm-1_1.o link, -O2 -flto
-flto-toplevel-asm-heuristics -flto-partition=cache -no-pie
FAIL: gcc.dg/lto/toplevel-simple-asm-1
c_lto_toplevel-simple-asm-1_0.o-c_lto_toplevel-simple-asm-1_1.o link, -O2 -flto
-flto-toplevel-asm-heuristics -flto-partition=max -no-pie
They always fail to link like
ld: fatal: relocation error: R_SPARC_32: file
c_lto_toplevel-extended-asm-1_1.o: symbol .text (section): value 0x100001340
does not fit
The same error has been present with gld all along, but was only
recently introduced in Solaris ld as discussed in binutils PR ld/25802.
It doesn't occur on Linux/sparc64 which uses a different text start
address.
Tested on sparcv9-sun-solaris2.11, sparc64-unknown-linux-gnu, and
x86_64-pc-linux-gnu.
2026-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
gcc/testsuite:
* gcc.dg/lto/toplevel-extended-asm-1_0.c: Skip on 64-bit
Solaris/SPARC.
* gcc.dg/lto/toplevel-simple-asm-1_0.c: Likewise.
More information about the Gcc-bugs
mailing list