diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index b3c6ec97e7a10b5b75436de7c75c1e6a07b547bd..2fc0f8bffc15643ebd2ba7aead1e84485ee5f118 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc @@ -1153,10 +1153,9 @@ riscv_subset_list::parse (const char *arch, location_t loc) subset_list->handle_combine_ext (); - if (subset_list->lookup("zfinx") && subset_list->lookup("f")) - error_at (loc, - "%<-march=%s%>: z*inx is conflict with float extensions", - arch); + if (subset_list->lookup ("zfinx") && subset_list->lookup ("f")) + error_at (loc, "%<-march=%s%>: z*inx conflicts with floating-point " + "extensions", arch); return subset_list; diff --git a/gcc/testsuite/gcc.target/riscv/arch-19.c b/gcc/testsuite/gcc.target/riscv/arch-19.c index 83c6e00a7552b4f36181729c656a54b8acc06f3b..b042e1a49fe6f6150fd5f167d1b3b05b61c44b8e 100644 --- a/gcc/testsuite/gcc.target/riscv/arch-19.c +++ b/gcc/testsuite/gcc.target/riscv/arch-19.c @@ -1,4 +1,4 @@ /* { dg-do compile } */ /* { dg-options "-march=rv64if_zfinx -mabi=lp64" } */ int foo() {} -/* { dg-error "'-march=rv64if_zfinx': z\\*inx is conflict with float extensions" "" { target *-*-* } 0 } */ +/* { dg-error "'-march=rv64if_zfinx': z\\*inx conflicts with floating-point extensions" "" { target *-*-* } 0 } */