[PATCH 1/2] RISC-V: Add quotes to #error messages

In commit 1aaf3a64e9 ("[PATCH] RISC-V: Deduplicate #error messages in
testsuite"), the author made a mistake to miss the test after adding
quotes around extension names.  To avoid future errors and for consistency
with other #error uses in the RISC-V testsuite, this commit quotes #error
messages where necessary to avoid current test case failures.

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/zvkn.c: Quote #error messages.
	* gcc.target/riscv/zvkn-1.c: Ditto.
	* gcc.target/riscv/zvknc.c: Ditto.
	* gcc.target/riscv/zvknc-1.c: Ditto.
	* gcc.target/riscv/zvknc-2.c: Ditto.
	* gcc.target/riscv/zvkng.c: Ditto.
	* gcc.target/riscv/zvkng-1.c: Ditto.
	* gcc.target/riscv/zvkng-2.c: Ditto.
	* gcc.target/riscv/zvks.c: Ditto.
	* gcc.target/riscv/zvks-1.c: Ditto.
	* gcc.target/riscv/zvksc.c: Ditto.
	* gcc.target/riscv/zvksc-1.c: Ditto.
	* gcc.target/riscv/zvksc-2.c: Ditto.
	* gcc.target/riscv/zvksg.c: Ditto.
	* gcc.target/riscv/zvksg-1.c: Ditto.
	* gcc.target/riscv/zvksg-2.c: Ditto.
This commit is contained in:
Tsukasa OI 2023-08-21 07:31:13 -06:00 committed by Jeff Law
parent 2eaebcf3df
commit 56c28ce7b5
16 changed files with 104 additions and 104 deletions

View file

@ -3,23 +3,23 @@
/* { dg-options "-march=rv32gc_zvkned_zvknhb_zvbb_zvkt" { target { rv32 } } } */
#ifndef __riscv_zvkn
#error Feature macro for `Zvkn' not defined
#error "Feature macro for `Zvkn' not defined"
#endif
#ifndef __riscv_zvkned
#error Feature macro for `Zvkned' not defined
#error "Feature macro for `Zvkned' not defined"
#endif
#ifndef __riscv_zvknhb
#error Feature macro for `Zvknhb' not defined
#error "Feature macro for `Zvknhb' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
int

View file

@ -3,23 +3,23 @@
/* { dg-options "-march=rv32gc_zvkn" { target { rv32 } } } */
#ifndef __riscv_zvkn
#error Feature macro for `Zvkn' not defined
#error "Feature macro for `Zvkn' not defined"
#endif
#ifndef __riscv_zvkned
#error Feature macro for `Zvkned' not defined
#error "Feature macro for `Zvkned' not defined"
#endif
#ifndef __riscv_zvknhb
#error Feature macro for `Zvknhb' not defined
#error "Feature macro for `Zvknhb' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvkned_zvknhb_zvbb_zvkt_zvbc" { target { rv32 } } } */
#ifndef __riscv_zvknc
#error Feature macro for `Zvknc' not defined
#error "Feature macro for `Zvknc' not defined"
#endif
#ifndef __riscv_zvkn
#error Feature macro for `Zvkn' not defined
#error "Feature macro for `Zvkn' not defined"
#endif
#ifndef __riscv_zvkned
#error Feature macro for `Zvkned' not defined
#error "Feature macro for `Zvkned' not defined"
#endif
#ifndef __riscv_zvknhb
#error Feature macro for `Zvknhb' not defined
#error "Feature macro for `Zvknhb' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvbc
#error Feature macro for `Zvbc' not defined
#error "Feature macro for `Zvbc' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvkn_zvbc" { target { rv32 } } } */
#ifndef __riscv_zvknc
#error Feature macro for `Zvknc' not defined
#error "Feature macro for `Zvknc' not defined"
#endif
#ifndef __riscv_zvkn
#error Feature macro for `Zvkn' not defined
#error "Feature macro for `Zvkn' not defined"
#endif
#ifndef __riscv_zvkned
#error Feature macro for `Zvkned' not defined
#error "Feature macro for `Zvkned' not defined"
#endif
#ifndef __riscv_zvknhb
#error Feature macro for `Zvknhb' not defined
#error "Feature macro for `Zvknhb' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvbc
#error Feature macro for `Zvbc' not defined
#error "Feature macro for `Zvbc' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvknc" { target { rv32 } } } */
#ifndef __riscv_zvknc
#error Feature macro for `Zvknc' not defined
#error "Feature macro for `Zvknc' not defined"
#endif
#ifndef __riscv_zvkn
#error Feature macro for `Zvkn' not defined
#error "Feature macro for `Zvkn' not defined"
#endif
#ifndef __riscv_zvkned
#error Feature macro for `Zvkned' not defined
#error "Feature macro for `Zvkned' not defined"
#endif
#ifndef __riscv_zvknhb
#error Feature macro for `Zvknhb' not defined
#error "Feature macro for `Zvknhb' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvbc
#error Feature macro for `Zvbc' not defined
#error "Feature macro for `Zvbc' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvkned_zvknhb_zvbb_zvkt_zvkg" { target { rv32 } } } */
#ifndef __riscv_zvkng
#error Feature macro for `Zvkng' not defined
#error "Feature macro for `Zvkng' not defined"
#endif
#ifndef __riscv_zvkn
#error Feature macro for `Zvkn' not defined
#error "Feature macro for `Zvkn' not defined"
#endif
#ifndef __riscv_zvkned
#error Feature macro for `Zvkned' not defined
#error "Feature macro for `Zvkned' not defined"
#endif
#ifndef __riscv_zvknhb
#error Feature macro for `Zvknhb' not defined
#error "Feature macro for `Zvknhb' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvkg
#error Feature macro for `Zvkg' not defined
#error "Feature macro for `Zvkg' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvkn_zvkg" { target { rv32 } } } */
#ifndef __riscv_zvkng
#error Feature macro for `Zvkng' not defined
#error "Feature macro for `Zvkng' not defined"
#endif
#ifndef __riscv_zvkn
#error Feature macro for `Zvkn' not defined
#error "Feature macro for `Zvkn' not defined"
#endif
#ifndef __riscv_zvkned
#error Feature macro for `Zvkned' not defined
#error "Feature macro for `Zvkned' not defined"
#endif
#ifndef __riscv_zvknhb
#error Feature macro for `Zvknhb' not defined
#error "Feature macro for `Zvknhb' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvkg
#error Feature macro for `Zvkg' not defined
#error "Feature macro for `Zvkg' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvkng" { target { rv32 } } } */
#ifndef __riscv_zvkng
#error Feature macro for `Zvkng' not defined
#error "Feature macro for `Zvkng' not defined"
#endif
#ifndef __riscv_zvkn
#error Feature macro for `Zvkn' not defined
#error "Feature macro for `Zvkn' not defined"
#endif
#ifndef __riscv_zvkned
#error Feature macro for `Zvkned' not defined
#error "Feature macro for `Zvkned' not defined"
#endif
#ifndef __riscv_zvknhb
#error Feature macro for `Zvknhb' not defined
#error "Feature macro for `Zvknhb' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvkg
#error Feature macro for `Zvkg' not defined
#error "Feature macro for `Zvkg' not defined"
#endif
int

View file

@ -3,23 +3,23 @@
/* { dg-options "-march=rv32gc_zvksed_zvksh_zvbb_zvkt" { target { rv32 } } } */
#ifndef __riscv_zvks
#error Feature macro for `Zvks' not defined
#error "Feature macro for `Zvks' not defined"
#endif
#ifndef __riscv_zvksed
#error Feature macro for `Zvksed' not defined
#error "Feature macro for `Zvksed' not defined"
#endif
#ifndef __riscv_zvksh
#error Feature macro for `Zvksh' not defined
#error "Feature macro for `Zvksh' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
int

View file

@ -3,23 +3,23 @@
/* { dg-options "-march=rv32gc_zvks" { target { rv32 } } } */
#ifndef __riscv_zvks
#error Feature macro for `Zvks' not defined
#error "Feature macro for `Zvks' not defined"
#endif
#ifndef __riscv_zvksed
#error Feature macro for `Zvksed' not defined
#error "Feature macro for `Zvksed' not defined"
#endif
#ifndef __riscv_zvksh
#error Feature macro for `Zvksh' not defined
#error "Feature macro for `Zvksh' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvksed_zvksh_zvbb_zvkt_zvbc" { target { rv32 } } } */
#ifndef __riscv_zvksc
#error Feature macro for `Zvksc' not defined
#error "Feature macro for `Zvksc' not defined"
#endif
#ifndef __riscv_zvks
#error Feature macro for `Zvks' not defined
#error "Feature macro for `Zvks' not defined"
#endif
#ifndef __riscv_zvksed
#error Feature macro for `Zvksed' not defined
#error "Feature macro for `Zvksed' not defined"
#endif
#ifndef __riscv_zvksh
#error Feature macro for `Zvksh' not defined
#error "Feature macro for `Zvksh' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvbc
#error Feature macro for `Zvbc' not defined
#error "Feature macro for `Zvbc' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvks_zvbc" { target { rv32 } } } */
#ifndef __riscv_zvksc
#error Feature macro for `Zvksc' not defined
#error "Feature macro for `Zvksc' not defined"
#endif
#ifndef __riscv_zvks
#error Feature macro for `Zvks' not defined
#error "Feature macro for `Zvks' not defined"
#endif
#ifndef __riscv_zvksed
#error Feature macro for `Zvksed' not defined
#error "Feature macro for `Zvksed' not defined"
#endif
#ifndef __riscv_zvksh
#error Feature macro for `Zvksh' not defined
#error "Feature macro for `Zvksh' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvbc
#error Feature macro for `Zvbc' not defined
#error "Feature macro for `Zvbc' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvksc" { target { rv32 } } } */
#ifndef __riscv_zvksc
#error Feature macro for `Zvksc' not defined
#error "Feature macro for `Zvksc' not defined"
#endif
#ifndef __riscv_zvks
#error Feature macro for `Zvks' not defined
#error "Feature macro for `Zvks' not defined"
#endif
#ifndef __riscv_zvksed
#error Feature macro for `Zvksed' not defined
#error "Feature macro for `Zvksed' not defined"
#endif
#ifndef __riscv_zvksh
#error Feature macro for `Zvksh' not defined
#error "Feature macro for `Zvksh' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvbc
#error Feature macro for `Zvbc' not defined
#error "Feature macro for `Zvbc' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvksed_zvksh_zvbb_zvkt_zvkg" { target { rv32 } } } */
#ifndef __riscv_zvksg
#error Feature macro for `Zvksg' not defined
#error "Feature macro for `Zvksg' not defined"
#endif
#ifndef __riscv_zvks
#error Feature macro for `Zvks' not defined
#error "Feature macro for `Zvks' not defined"
#endif
#ifndef __riscv_zvksed
#error Feature macro for `Zvksed' not defined
#error "Feature macro for `Zvksed' not defined"
#endif
#ifndef __riscv_zvksh
#error Feature macro for `Zvksh' not defined
#error "Feature macro for `Zvksh' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvkg
#error Feature macro for `Zvkg' not defined
#error "Feature macro for `Zvkg' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvks_zvkg" { target { rv32 } } } */
#ifndef __riscv_zvksg
#error Feature macro for `Zvksg' not defined
#error "Feature macro for `Zvksg' not defined"
#endif
#ifndef __riscv_zvks
#error Feature macro for `Zvks' not defined
#error "Feature macro for `Zvks' not defined"
#endif
#ifndef __riscv_zvksed
#error Feature macro for `Zvksed' not defined
#error "Feature macro for `Zvksed' not defined"
#endif
#ifndef __riscv_zvksh
#error Feature macro for `Zvksh' not defined
#error "Feature macro for `Zvksh' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvkg
#error Feature macro for `Zvkg' not defined
#error "Feature macro for `Zvkg' not defined"
#endif
int

View file

@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvksg" { target { rv32 } } } */
#ifndef __riscv_zvksg
#error Feature macro for `Zvksg' not defined
#error "Feature macro for `Zvksg' not defined"
#endif
#ifndef __riscv_zvks
#error Feature macro for `Zvks' not defined
#error "Feature macro for `Zvks' not defined"
#endif
#ifndef __riscv_zvksed
#error Feature macro for `Zvksed' not defined
#error "Feature macro for `Zvksed' not defined"
#endif
#ifndef __riscv_zvksh
#error Feature macro for `Zvksh' not defined
#error "Feature macro for `Zvksh' not defined"
#endif
#ifndef __riscv_zvbb
#error Feature macro for `Zvbb' not defined
#error "Feature macro for `Zvbb' not defined"
#endif
#ifndef __riscv_zvkt
#error Feature macro for `Zvkt' not defined
#error "Feature macro for `Zvkt' not defined"
#endif
#ifndef __riscv_zvkg
#error Feature macro for `Zvkg' not defined
#error "Feature macro for `Zvkg' not defined"
#endif
int