]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH 2/2] RISC-V: Add quotes to #error messages (all)
authorTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 21 Aug 2023 13:31:52 +0000 (07:31 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 21 Aug 2023 13:31:52 +0000 (07:31 -0600)
From: Tsukasa OI <research_trasio@irq.a4lg.com>

In commit 1aaf3a64e92a ("[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 all
unquoted #error messages.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/xtheadba.c: Quote unquoted #error message.
* gcc.target/riscv/xtheadbb.c: Ditto.
* gcc.target/riscv/xtheadbs.c: Ditto.
* gcc.target/riscv/xtheadcmo.c: Ditto.
* gcc.target/riscv/xtheadcondmov.c: Ditto.
* gcc.target/riscv/xtheadfmemidx.c: Ditto.
* gcc.target/riscv/xtheadfmv.c: Ditto.
* gcc.target/riscv/xtheadint.c: Ditto.
* gcc.target/riscv/xtheadmac.c: Ditto.
* gcc.target/riscv/xtheadmemidx.c: Ditto.
* gcc.target/riscv/xtheadmempair.c: Ditto.
* gcc.target/riscv/xtheadsync.c: Ditto.
* gcc.target/riscv/zawrs.c: Ditto.
* gcc.target/riscv/zvbb.c: Ditto.
* gcc.target/riscv/zvbc.c: Ditto.
* gcc.target/riscv/zvkg.c: Ditto.
* gcc.target/riscv/zvkned.c: Ditto.
* gcc.target/riscv/zvknha.c: Ditto.
* gcc.target/riscv/zvknhb.c: Ditto.
* gcc.target/riscv/zvksed.c: Ditto.
* gcc.target/riscv/zvksh.c: Ditto.
* gcc.target/riscv/zvkt.c: Ditto.

22 files changed:
gcc/testsuite/gcc.target/riscv/xtheadba.c
gcc/testsuite/gcc.target/riscv/xtheadbb.c
gcc/testsuite/gcc.target/riscv/xtheadbs.c
gcc/testsuite/gcc.target/riscv/xtheadcmo.c
gcc/testsuite/gcc.target/riscv/xtheadcondmov.c
gcc/testsuite/gcc.target/riscv/xtheadfmemidx.c
gcc/testsuite/gcc.target/riscv/xtheadfmv.c
gcc/testsuite/gcc.target/riscv/xtheadint.c
gcc/testsuite/gcc.target/riscv/xtheadmac.c
gcc/testsuite/gcc.target/riscv/xtheadmemidx.c
gcc/testsuite/gcc.target/riscv/xtheadmempair.c
gcc/testsuite/gcc.target/riscv/xtheadsync.c
gcc/testsuite/gcc.target/riscv/zawrs.c
gcc/testsuite/gcc.target/riscv/zvbb.c
gcc/testsuite/gcc.target/riscv/zvbc.c
gcc/testsuite/gcc.target/riscv/zvkg.c
gcc/testsuite/gcc.target/riscv/zvkned.c
gcc/testsuite/gcc.target/riscv/zvknha.c
gcc/testsuite/gcc.target/riscv/zvknhb.c
gcc/testsuite/gcc.target/riscv/zvksed.c
gcc/testsuite/gcc.target/riscv/zvksh.c
gcc/testsuite/gcc.target/riscv/zvkt.c

index 14cdb1ffe2eb538dbfe38ec679a8fdd9103e747c..64ad5601188481d77582f66876be5341c704b0c1 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadba" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadba
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 66988abf22131b7e6fc005eef6dc2def1eb22b34..803111b03fb2583317871053b2ba584eb297ef46 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadbb" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadbb
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 808d7378a7beb6e03cc64a7f194f713e434c38c2..ad9fba52597166006dc21018f52c238a93d15f95 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadbs" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadbs
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index eab8fef421cd31bbdaf61906c33e2e7b32bdb851..fc13754fe5216746af2b7ad68221a0ef9eb6633b 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadcmo" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadcmo
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index a239c3f9f46ed7288762bb524f33774462c626be..ad8a777ab2cc4ece381083c6881ae6eac20138da 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadcondmov
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index e450c5e5c5ac9a8493ffc8906a0c1123b482c64e..1617d9475942356d3d11b02d81a04a1ac17e9180 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadfmemidx" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadfmemidx
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index e97e8f461f6eca1a286fd84570cfa99282790c22..f0558d95cb9415de285451a5ba724c66690c4190 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadfmv" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadfmv
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index ee6989a380ec13cc0b8da3be6daef567d81dc191..c9f45d577423c7af9cffb3754fb3847211418e5a 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadint" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadint
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 7c635407b3102f42802758d623bdb2fe04c4e36f..aeb3cb0344175999a6b5f72c0de9eeb8e59010d8 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadmac" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadmac
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 076eab00f54c2d02aa56bbc08641ba36e0c7f2d8..a4716acc0409b6d7696cd854a92ee3acf5e75961 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadmemidx" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadmemidx
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 5135d2175dc638d0f3f873fce687a697ecd00b8d..de88d63ed5b30821e289df238f094d7d92ca7b3c 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadmempair" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadmempair
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 835d60c96e9d2b491758c02fb423aa1412a4492d..ddda51545f15c7b23491453bf134faad68e75858 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv64gc_xtheadsync" { target { rv64 } } } */
 
 #ifndef __riscv_xtheadsync
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 0b7e2662343985dc0b80ac3e644445a5aa20a526..d61a17b7a487efb882b48b0d25bdd4d08d81f8db 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv32gc_zawrs" { target { rv32 } } } */
 
 #ifndef __riscv_zawrs
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index b592f56f6cfbfbc5af5fbfdf32977143c348c4de..0b78fe4dc622307f7d70a0fc85de374be71c1994 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv32gc_zvbb" { target { rv32 } } } */
 
 #ifndef __riscv_zvbb
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 37239fa91b33bc3fa64ba658ee96a5c7e2ddf9b7..2a00c965f322c568ae85dd9b9673e7127eefb2ac 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv32gc_zvbc" { target { rv32 } } } */
 
 #ifndef __riscv_zvbc
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 1e2a05aa1d871a0fb4e9a469bff2335eb2acd744..fe0a841e745d0ceb2d912453d381419480691ddf 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv32gc_zvkg" { target { rv32 } } } */
 
 #ifndef __riscv_zvkg
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index fcdc4b45761e55d245b8b0c959dd508a97c138c8..8f9f2532f3d7f51c54268b3d2ae66bada13dc30e 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv32gc_zvkned" { target { rv32 } } } */
 
 #ifndef __riscv_zvkned
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 1275f9d11c188a8fb41899d1c510d2c0ebfc4f45..70242a8cb0493579c221fbce4ed5571bebd27379 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv32gc_zvknha" { target { rv32 } } } */
 
 #ifndef __riscv_zvknha
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 669ff01914968ad3eaf4c635287751858d4524fe..af89d7b1b7d17d72faeb1bdafcc8ba281c7f28ca 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv32gc_zvknhb" { target { rv32 } } } */
 
 #ifndef __riscv_zvknhb
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 439b546bb8a4471b6348a6cb5fef874f904a87c0..2ac58f848199457b74ce4e78d25f601ca1c346c2 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv32gc_zvksed" { target { rv32 } } } */
 
 #ifndef __riscv_zvksed
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 5359ca50281b32e0276f447f741d04ab5283c135..f7190a42cc292b279691f1ed51eeed236f794215 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv32gc_zvksh" { target { rv32 } } } */
 
 #ifndef __riscv_zvksh
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int
index 49822b75738d53c865f28eea38510494394958df..8871a4aca4c0477c36261b5419798d9aa94e7635 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-march=rv32gc_zvkt" { target { rv32 } } } */
 
 #ifndef __riscv_zvkt
-#error Feature macro not defined
+#error "Feature macro not defined"
 #endif
 
 int