]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: testsuite: Add -O for jump-table-annotate.c
authorXi Ruoyao <xry111@xry111.site>
Fri, 1 Nov 2024 17:26:47 +0000 (01:26 +0800)
committerXi Ruoyao <xry111@xry111.site>
Fri, 1 Nov 2024 17:33:08 +0000 (01:33 +0800)
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.

gcc/testsuite/gcc.target/loongarch/jump-table-annotate.c

index 9d58e60e39a3264354df04a09bed78e67d9bf29e..1895f6f03b8cb4c5cfbd845f675f882084f4c608 100644 (file)
@@ -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) {