On 7/6/2026 2:48 AM, Kito Cheng wrote:
Maybe we could add -ffat-lto-objects to riscv.exp / rvv.exp / amo.exp
/ riscv-vls-cc.exp?
$ git diff
diff --git a/gcc/testsuite/gcc.target/riscv/riscv.exp
b/gcc/testsuite/gcc.target/riscv/riscv.exp
index 8b50dbce09c..5f310c54bbd 100644
--- a/gcc/testsuite/gcc.target/riscv/riscv.exp
+++ b/gcc/testsuite/gcc.target/riscv/riscv.exp
@@ -29,7 +29,7 @@ load_lib gcc-dg.exp
# If a testcase doesn't have special options, use these.
global DEFAULT_CFLAGS
if ![info exists DEFAULT_CFLAGS] then {
- set DEFAULT_CFLAGS " -ansi -pedantic-errors"
+ set DEFAULT_CFLAGS " -ansi -pedantic-errors -ffat-lto-objects"
But I think the case Jim cares about uses -fno-fat-lto-objects, so
overriding with -ffat-lto-objects seems wrong to me.
jeff