https://gcc.gnu.org/g:caf6b6fdfdaa1d0d78b8d740aa0e0646ca182a2a
commit r15-4844-gcaf6b6fdfdaa1d0d78b8d740aa0e0646ca182a2a Author: Xi Ruoyao <xry...@xry111.site> Date: Sat Nov 2 01:26:47 2024 +0800 LoongArch: testsuite: Add -O for jump-table-annotate.c Without optimization, GCC does not emit a jump table for the test case. I'm not sure if the test case has been wrong in the first place or something has changed in these months... gcc/testsuite/ChangeLog: * gcc.target/loongarch/jump-table-annotate.c (dg-additional-options): Add -O. Diff: --- gcc/testsuite/gcc.target/loongarch/jump-table-annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/loongarch/jump-table-annotate.c b/gcc/testsuite/gcc.target/loongarch/jump-table-annotate.c index 9d58e60e39a3..1895f6f03b8c 100644 --- a/gcc/testsuite/gcc.target/loongarch/jump-table-annotate.c +++ b/gcc/testsuite/gcc.target/loongarch/jump-table-annotate.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-additional-options "-mannotate-tablejump" } */ +/* { dg-additional-options "-O -mannotate-tablejump" } */ extern void asdf(int); void foo(int x) {