https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102957
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tsukasa OI <a...@gcc.gnu.org>: https://gcc.gnu.org/g:8b0662254cdac3e0b670c1c54752e1d43113b0f4 commit r14-3544-g8b0662254cdac3e0b670c1c54752e1d43113b0f4 Author: Tsukasa OI <research_tra...@irq.a4lg.com> Date: Fri Aug 11 06:09:34 2023 +0000 RISC-V: Make PR 102957 tests more comprehensive Commit c283c4774d1c ("RISC-V: Throw compilation error for unknown extensions") changed how do we handle unknown extensions and commit 6f709f79c915a ("[committed] [RISC-V] Fix expected diagnostic messages in testsuite") "fixed" test failures caused by that change (on pr102957.c, by testing the error message after the first change). However, the latter change will partially break the original intent of PR 102957 test case because we wanted to make sure that we can parse a valid two-letter extension name. Fortunately, there is a valid two-letter extension name, 'Zk' (standard scalar cryptography extension superset with NIST algorithm suite). This commit adds pr102957-2.c to make sure that there will be no errors if we parse a valid two-letter extension name. gcc/testsuite/ChangeLog: * gcc.target/riscv/pr102957-2.c: New test case using the 'Zk' extension to continue testing whether we can use valid two-letter extensions.