2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
gcc/
* common/config/riscv/riscv-common.c: Check -march string ends
with null.
gcc/testsuite/
* gcc.target/riscv/attribute-10.c: New test.
From-SVN: r273951
+2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
+
+ * common/config/riscv/riscv-common.c: Check -march string ends
+ with null.
+
2019-07-31 Alexander Monakov <amonakov@ispras.ru>
* ipa-devirt.c (type_warning_cmp): Make static.
if (p == NULL)
goto fail;
+ if (*p != '\0')
+ {
+ error_at (loc, "%<-march=%s%>: unexpected ISA string at end: %qs",
+ arch, p);
+ goto fail;
+ }
+
return subset_list;
fail:
+2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
+
+ * gcc.target/riscv/attribute-10.c: New test.
+
2019-07-31 Richard Biener <rguenther@suse.de>
PR tree-optimization/91280
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -march=rv32im_s_sx_unexpectedstring -mabi=ilp32" } */
+int foo()
+{
+}
+/* { dg-error "unexpected ISA string at end:" "" { target { "riscv*-*-*" } } 0 } */