aboutsummaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@vrull.eu>2024-07-05 09:53:34 +0200
committerChristoph Müllner <christoph.muellner@vrull.eu>2024-07-09 15:20:55 +0200
commit0717d50fc4ff983b79093bdef43b04e4584cc3cd (patch)
tree82b7d470fa55cfff39cedacb9b5cbac7aee4ab4c /gcc/common
parent298a576f00c49b8f4529ea2f87b9943a32743250 (diff)
downloadgcc-0717d50fc4ff983b79093bdef43b04e4584cc3cd.zip
gcc-0717d50fc4ff983b79093bdef43b04e4584cc3cd.tar.gz
gcc-0717d50fc4ff983b79093bdef43b04e4584cc3cd.tar.bz2
RISC-V: testsuite: Properly gate LTO tests
There are two test cases with the following skip directive: dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } This reads as: skip if both '-flto' and '-fno-fat-lto-objects' are present. This is not the case if only '-flto' is present. Since both tests depend on instruction sequences (one does check-function-bodies the other tests for an assembler error message), they won't work reliably with fat LTO objects. Let's change the skip line to gate the test on '-flto' to avoid failing tests like this: FAIL: gcc.target/riscv/interrupt-misaligned.c -O2 -flto check-function-bodies interrupt FAIL: gcc.target/riscv/interrupt-misaligned.c -O2 -flto -flto-partition=none check-function-bodies interrupt FAIL: gcc.target/riscv/pr93202.c -O2 -flto (test for errors, line 10) FAIL: gcc.target/riscv/pr93202.c -O2 -flto (test for errors, line 9) FAIL: gcc.target/riscv/pr93202.c -O2 -flto -flto-partition=none (test for errors, line 10) FAIL: gcc.target/riscv/pr93202.c -O2 -flto -flto-partition=none (test for errors, line 9) gcc/testsuite/ChangeLog: * gcc.target/riscv/interrupt-misaligned.c: Remove "-fno-fat-lto-objects" from skip condition. * gcc.target/riscv/pr93202.c: Likewise. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'gcc/common')
0 files changed, 0 insertions, 0 deletions