RISC-V: Deduplicate #error messages in testsuite
Checks
Commit Message
From: Tsukasa OI <research_trasio@irq.a4lg.com>
"#error Feature macro not defined" is required to test the existence of an
extension through the preprocessor. However, multiple occurrence of the
exact same error message will confuse the developer once an error is
encountered.
This commit replaces such error messages to
"#error Feature macro for `EXT' not defined" to make which
macro is missing.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/zvkn.c: Deduplicate #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.
---
gcc/testsuite/gcc.target/riscv/zvkn-1.c | 10 +++++-----
gcc/testsuite/gcc.target/riscv/zvkn.c | 10 +++++-----
gcc/testsuite/gcc.target/riscv/zvknc-1.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvknc-2.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvknc.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvkng-1.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvkng-2.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvkng.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvks-1.c | 10 +++++-----
gcc/testsuite/gcc.target/riscv/zvks.c | 10 +++++-----
gcc/testsuite/gcc.target/riscv/zvksc-1.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvksc-2.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvksc.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvksg-1.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvksg-2.c | 14 +++++++-------
gcc/testsuite/gcc.target/riscv/zvksg.c | 14 +++++++-------
16 files changed, 104 insertions(+), 104 deletions(-)
base-commit: 4718d5c426af04b93031f89870ce9ba44b82c108
Comments
On 8/13/23 20:53, Tsukasa OI via Gcc-patches wrote:
> From: Tsukasa OI<research_trasio@irq.a4lg.com>
>
> "#error Feature macro not defined" is required to test the existence of an
> extension through the preprocessor. However, multiple occurrence of the
> exact same error message will confuse the developer once an error is
> encountered.
>
> This commit replaces such error messages to
> "#error Feature macro for `EXT' not defined" to make which
> macro is missing.
>
> gcc/testsuite/ChangeLog:
>
> * gcc.target/riscv/zvkn.c: Deduplicate #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.
Pushed to the trunk. Thanks.
jeff
@@ -3,23 +3,23 @@
/* { dg-options "-march=rv32gc_zvkned_zvknhb_zvbb_zvkt" { target { rv32 } } } */
#ifndef __riscv_zvkn
-#error Feature macro not defined
+#error Feature macro for `Zvkn' not defined
#endif
#ifndef __riscv_zvkned
-#error Feature macro not defined
+#error Feature macro for `Zvkned' not defined
#endif
#ifndef __riscv_zvknhb
-#error Feature macro not defined
+#error Feature macro for `Zvknhb' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
int
@@ -3,23 +3,23 @@
/* { dg-options "-march=rv32gc_zvkn" { target { rv32 } } } */
#ifndef __riscv_zvkn
-#error Feature macro not defined
+#error Feature macro for `Zvkn' not defined
#endif
#ifndef __riscv_zvkned
-#error Feature macro not defined
+#error Feature macro for `Zvkned' not defined
#endif
#ifndef __riscv_zvknhb
-#error Feature macro not defined
+#error Feature macro for `Zvknhb' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvkned_zvknhb_zvbb_zvkt_zvbc" { target { rv32 } } } */
#ifndef __riscv_zvknc
-#error Feature macro not defined
+#error Feature macro for `Zvknc' not defined
#endif
#ifndef __riscv_zvkn
-#error Feature macro not defined
+#error Feature macro for `Zvkn' not defined
#endif
#ifndef __riscv_zvkned
-#error Feature macro not defined
+#error Feature macro for `Zvkned' not defined
#endif
#ifndef __riscv_zvknhb
-#error Feature macro not defined
+#error Feature macro for `Zvknhb' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvbc
-#error Feature macro not defined
+#error Feature macro for `Zvbc' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvkn_zvbc" { target { rv32 } } } */
#ifndef __riscv_zvknc
-#error Feature macro not defined
+#error Feature macro for `Zvknc' not defined
#endif
#ifndef __riscv_zvkn
-#error Feature macro not defined
+#error Feature macro for `Zvkn' not defined
#endif
#ifndef __riscv_zvkned
-#error Feature macro not defined
+#error Feature macro for `Zvkned' not defined
#endif
#ifndef __riscv_zvknhb
-#error Feature macro not defined
+#error Feature macro for `Zvknhb' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvbc
-#error Feature macro not defined
+#error Feature macro for `Zvbc' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvknc" { target { rv32 } } } */
#ifndef __riscv_zvknc
-#error Feature macro not defined
+#error Feature macro for `Zvknc' not defined
#endif
#ifndef __riscv_zvkn
-#error Feature macro not defined
+#error Feature macro for `Zvkn' not defined
#endif
#ifndef __riscv_zvkned
-#error Feature macro not defined
+#error Feature macro for `Zvkned' not defined
#endif
#ifndef __riscv_zvknhb
-#error Feature macro not defined
+#error Feature macro for `Zvknhb' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvbc
-#error Feature macro not defined
+#error Feature macro for `Zvbc' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvkned_zvknhb_zvbb_zvkt_zvkg" { target { rv32 } } } */
#ifndef __riscv_zvkng
-#error Feature macro not defined
+#error Feature macro for `Zvkng' not defined
#endif
#ifndef __riscv_zvkn
-#error Feature macro not defined
+#error Feature macro for `Zvkn' not defined
#endif
#ifndef __riscv_zvkned
-#error Feature macro not defined
+#error Feature macro for `Zvkned' not defined
#endif
#ifndef __riscv_zvknhb
-#error Feature macro not defined
+#error Feature macro for `Zvknhb' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvkg
-#error Feature macro not defined
+#error Feature macro for `Zvkg' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvkn_zvkg" { target { rv32 } } } */
#ifndef __riscv_zvkng
-#error Feature macro not defined
+#error Feature macro for `Zvkng' not defined
#endif
#ifndef __riscv_zvkn
-#error Feature macro not defined
+#error Feature macro for `Zvkn' not defined
#endif
#ifndef __riscv_zvkned
-#error Feature macro not defined
+#error Feature macro for `Zvkned' not defined
#endif
#ifndef __riscv_zvknhb
-#error Feature macro not defined
+#error Feature macro for `Zvknhb' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvkg
-#error Feature macro not defined
+#error Feature macro for `Zvkg' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvkng" { target { rv32 } } } */
#ifndef __riscv_zvkng
-#error Feature macro not defined
+#error Feature macro for `Zvkng' not defined
#endif
#ifndef __riscv_zvkn
-#error Feature macro not defined
+#error Feature macro for `Zvkn' not defined
#endif
#ifndef __riscv_zvkned
-#error Feature macro not defined
+#error Feature macro for `Zvkned' not defined
#endif
#ifndef __riscv_zvknhb
-#error Feature macro not defined
+#error Feature macro for `Zvknhb' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvkg
-#error Feature macro not defined
+#error Feature macro for `Zvkg' not defined
#endif
int
@@ -3,23 +3,23 @@
/* { dg-options "-march=rv32gc_zvksed_zvksh_zvbb_zvkt" { target { rv32 } } } */
#ifndef __riscv_zvks
-#error Feature macro not defined
+#error Feature macro for `Zvks' not defined
#endif
#ifndef __riscv_zvksed
-#error Feature macro not defined
+#error Feature macro for `Zvksed' not defined
#endif
#ifndef __riscv_zvksh
-#error Feature macro not defined
+#error Feature macro for `Zvksh' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
int
@@ -3,23 +3,23 @@
/* { dg-options "-march=rv32gc_zvks" { target { rv32 } } } */
#ifndef __riscv_zvks
-#error Feature macro not defined
+#error Feature macro for `Zvks' not defined
#endif
#ifndef __riscv_zvksed
-#error Feature macro not defined
+#error Feature macro for `Zvksed' not defined
#endif
#ifndef __riscv_zvksh
-#error Feature macro not defined
+#error Feature macro for `Zvksh' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvksed_zvksh_zvbb_zvkt_zvbc" { target { rv32 } } } */
#ifndef __riscv_zvksc
-#error Feature macro not defined
+#error Feature macro for `Zvksc' not defined
#endif
#ifndef __riscv_zvks
-#error Feature macro not defined
+#error Feature macro for `Zvks' not defined
#endif
#ifndef __riscv_zvksed
-#error Feature macro not defined
+#error Feature macro for `Zvksed' not defined
#endif
#ifndef __riscv_zvksh
-#error Feature macro not defined
+#error Feature macro for `Zvksh' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvbc
-#error Feature macro not defined
+#error Feature macro for `Zvbc' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvks_zvbc" { target { rv32 } } } */
#ifndef __riscv_zvksc
-#error Feature macro not defined
+#error Feature macro for `Zvksc' not defined
#endif
#ifndef __riscv_zvks
-#error Feature macro not defined
+#error Feature macro for `Zvks' not defined
#endif
#ifndef __riscv_zvksed
-#error Feature macro not defined
+#error Feature macro for `Zvksed' not defined
#endif
#ifndef __riscv_zvksh
-#error Feature macro not defined
+#error Feature macro for `Zvksh' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvbc
-#error Feature macro not defined
+#error Feature macro for `Zvbc' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvksc" { target { rv32 } } } */
#ifndef __riscv_zvksc
-#error Feature macro not defined
+#error Feature macro for `Zvksc' not defined
#endif
#ifndef __riscv_zvks
-#error Feature macro not defined
+#error Feature macro for `Zvks' not defined
#endif
#ifndef __riscv_zvksed
-#error Feature macro not defined
+#error Feature macro for `Zvksed' not defined
#endif
#ifndef __riscv_zvksh
-#error Feature macro not defined
+#error Feature macro for `Zvksh' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvbc
-#error Feature macro not defined
+#error Feature macro for `Zvbc' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvksed_zvksh_zvbb_zvkt_zvkg" { target { rv32 } } } */
#ifndef __riscv_zvksg
-#error Feature macro not defined
+#error Feature macro for `Zvksg' not defined
#endif
#ifndef __riscv_zvks
-#error Feature macro not defined
+#error Feature macro for `Zvks' not defined
#endif
#ifndef __riscv_zvksed
-#error Feature macro not defined
+#error Feature macro for `Zvksed' not defined
#endif
#ifndef __riscv_zvksh
-#error Feature macro not defined
+#error Feature macro for `Zvksh' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvkg
-#error Feature macro not defined
+#error Feature macro for `Zvkg' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvks_zvkg" { target { rv32 } } } */
#ifndef __riscv_zvksg
-#error Feature macro not defined
+#error Feature macro for `Zvksg' not defined
#endif
#ifndef __riscv_zvks
-#error Feature macro not defined
+#error Feature macro for `Zvks' not defined
#endif
#ifndef __riscv_zvksed
-#error Feature macro not defined
+#error Feature macro for `Zvksed' not defined
#endif
#ifndef __riscv_zvksh
-#error Feature macro not defined
+#error Feature macro for `Zvksh' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvkg
-#error Feature macro not defined
+#error Feature macro for `Zvkg' not defined
#endif
int
@@ -3,31 +3,31 @@
/* { dg-options "-march=rv32gc_zvksg" { target { rv32 } } } */
#ifndef __riscv_zvksg
-#error Feature macro not defined
+#error Feature macro for `Zvksg' not defined
#endif
#ifndef __riscv_zvks
-#error Feature macro not defined
+#error Feature macro for `Zvks' not defined
#endif
#ifndef __riscv_zvksed
-#error Feature macro not defined
+#error Feature macro for `Zvksed' not defined
#endif
#ifndef __riscv_zvksh
-#error Feature macro not defined
+#error Feature macro for `Zvksh' not defined
#endif
#ifndef __riscv_zvbb
-#error Feature macro not defined
+#error Feature macro for `Zvbb' not defined
#endif
#ifndef __riscv_zvkt
-#error Feature macro not defined
+#error Feature macro for `Zvkt' not defined
#endif
#ifndef __riscv_zvkg
-#error Feature macro not defined
+#error Feature macro for `Zvkg' not defined
#endif
int