https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125938
Bug ID: 125938
Summary: Error: operand out of range (0xa648 is not between
0xffffffffffff8000 and 0x7ffc) with -mminimal-toc
Product: gcc
Version: 15.3.0
Status: UNCONFIRMED
Keywords: assemble-failure
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
Target: powerpc64le
Created attachment 64827
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64827&action=edit
preprcessed source
Building nodejs26 on ppc64le results in
/tmp/ccuGVPJo.s:163718: Error: operand out of range (0xa330 is not between
0xffffffffffff8000 and 0x7ffc)
assembler errors.
Can be reproduced on the gcc-15 branch and trunk with cross-compilers:
gcc> ./xgcc -B. -c utils.ii -I include -fPIC -m64 -O3 -fno-omit-frame-pointer
-fno-rtti -fno-exceptions -fno-strict-aliasing -std=gnu++20 -std=gnu++17 -fPIC
-fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -mminimal-toc
dropping -mminimal-toc avoids the issue.
GCC was configured with --with-long-double-format=ieee --with-long-double-128
Reduction is in progress (but quite slow).