RISC-V: Raise error on unexpected ISA string at end.
authorMaxim Blinov <maxim.blinov@embecosm.com>
Wed, 31 Jul 2019 21:36:41 +0000 (21:36 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 31 Jul 2019 21:36:41 +0000 (14:36 -0700)
commit285cf766c1309edd7e61bf0dc45754af987d1b26
tree66055209daef2fc584601b4c1e27d95effeb05d6
parent3090082cbefd8b1374f237bd4242b554490b2933
RISC-V: Raise error on unexpected ISA string at end.

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
gcc/ChangeLog
gcc/common/config/riscv/riscv-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/riscv/attribute-10.c [new file with mode: 0644]