diff mbox series

LoongArch: testsuite: Add compilation options to the regname-fp-s9.c.

Message ID 20240307015036.24649-1-chenglulu@loongson.cn
State New
Headers show
Series LoongArch: testsuite: Add compilation options to the regname-fp-s9.c. | expand

Commit Message

Lulu Cheng March 7, 2024, 1:50 a.m. UTC
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 | 1 +
 1 file changed, 1 insertion(+)

Comments

Lulu Cheng March 9, 2024, 1:47 a.m. UTC | #1
Pushed to r14-9408.

在 2024/3/7 上午9:50, Lulu Cheng 写道:
> 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 | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c b/gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c
> index d2e3b80f83c..77a74f1f667 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" } */
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c b/gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c
index d2e3b80f83c..77a74f1f667 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" } */