]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: testsuite: Add compilation options to the regname-fp-s9.c.
authorLulu Cheng <chenglulu@loongson.cn>
Thu, 7 Mar 2024 01:44:03 +0000 (09:44 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Sat, 9 Mar 2024 01:46:54 +0000 (09:46 +0800)
When the value of the macro DEFAULT_CFLAGS is set to '-ansi -pedantic-errors',
regname-s9-fp.c will test to fail. To solve this problem, add the compilation
option '-Wno-pedantic -std=gnu90' to this test case.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/regname-fp-s9.c: Add compilation option
'-Wno-pedantic -std=gnu90'.

gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c

index d2e3b80f83cff510cecba459768a6ba8c2f9ed72..77a74f1f667365cf1fd7842d1333b7183408797f 100644 (file)
@@ -1,3 +1,4 @@
 /* { dg-do compile } */
+/* { dg-additional-options "-Wno-pedantic -std=gnu90" } */
 register long s9 asm("s9"); /* { dg-note "conflicts with 's9'" } */
 register long fp asm("fp"); /* { dg-warning "register of 'fp' used for multiple global register variables" } */