[binutils-gdb] lto: Compile LTO 15 test with -fno-fat-lto-objects
H.J. Lu
hjl@sourceware.org
Thu Dec 11 00:41:47 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2271dee682787051c0628c869d7cdb220bdd0e67
commit 2271dee682787051c0628c869d7cdb220bdd0e67
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Dec 11 08:33:05 2025 +0800
lto: Compile LTO 15 test with -fno-fat-lto-objects
When -ffat-lto-objects is used to compile binutils, LTO 15 test fails on
32-bit targets the same way as -fno-lto, where the builtin function is
used to divide unsigned 64-bit integers. Compile LTO 15 test with
-fno-fat-lto-objects so that it passes on both 32-bit and 64-bit targets.
PR ld/33709
* testsuite/ld-plugin/lto.exp (lto_link_tests): Compile lto-15a.c
and lto-15b.c with -fno-fat-lto-objects.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diff:
---
ld/testsuite/ld-plugin/lto.exp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index 84538bc859d..05eaf7102d6 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -132,10 +132,10 @@ set lto_link_tests [list \
"$plug_opt" "-flto" \
{lto-14c.c} {} "liblto-14.a"] \
[list "Compile 15a" \
- "" "-flto" \
+ "" "-flto $lto_no_fat" \
{lto-15a.c} {} ""] \
[list "Build liblto-15.a" \
- "$plug_opt" "-flto" \
+ "$plug_opt" "-flto $lto_no_fat" \
{lto-15b.c} {} "liblto-15.a"] \
[list "PR ld/12696" \
"-O2 -flto -fuse-linker-plugin -r -nostdlib" "-O2 -flto" \
More information about the Binutils-cvs
mailing list