On 7/6/2026 2:32 AM, Jim Lin wrote:
This is a dg-do compile test using check-function-bodies.  Under slim
LTO (-flto -fno-fat-lto-objects) a compile-only run emits only LTO
bytecode with no assembly, and no LTRANS output is produced since the
test never links, so check-function-bodies finds no output file to scan.
Unlike scan-assembler*, check-function-bodies has no required-options
hook to force -ffat-lto-objects.  Skip the -flto variant.

gcc/testsuite/ChangeLog:

        * gcc.target/riscv/ext-dce-3.c: Skip under -flto.
        * gcc.target/riscv/ext-dce-4.c: Skip under -flto.
I'm obviously working backwards here.  When I replied to Kito I had only scanned this message.  Now that I've really read it, it may make more sense to use the required-options framework for check-function-bodies; I didn't even it existed or that we were utilizing it in scan-assembler*.

Jeff

Reply via email to