]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commitcaf6b6fdfdaa1d0d78b8d740aa0e0646ca182a2a
treec20829322ad410fac42f13534707d56f2a5d9a4a
parentfe919da3c395d2214ffc81ad4f51f8344ad5a5c1
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.
gcc/testsuite/gcc.target/loongarch/jump-table-annotate.c