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"
}

# Initialize `dg'.

Reply via email to