aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLulu Cheng <chenglulu@loongson.cn>2024-03-07 09:44:03 +0800
committerLulu Cheng <chenglulu@loongson.cn>2024-03-09 09:46:54 +0800
commit6fe63013e3292a45288461b7efa9d52e0ac234dc (patch)
treeb234325401404a8849ff4f7ba2a3c23d698b7c87
parent3a3fbec0a4d3f36de58df9ef0b3992a3ffb359c2 (diff)
downloadgcc-6fe63013e3292a45288461b7efa9d52e0ac234dc.zip
gcc-6fe63013e3292a45288461b7efa9d52e0ac234dc.tar.gz
gcc-6fe63013e3292a45288461b7efa9d52e0ac234dc.tar.bz2
LoongArch: testsuite: Add compilation options to the regname-fp-s9.c.
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'.
-rw-r--r--gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c b/gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c
index d2e3b80..77a74f1 100644
--- a/gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c
+++ b/gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c
@@ -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" } */