From 1edf88662b51da93460b6139344edb5f9b943b0e Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Wed, 19 Dec 2018 17:16:05 +0100 Subject: c/c++, asm: Use nicer error for const and restrict Not all qualifiers are asm qualifiers. We can talk about that in a nicer way than just giving a generic parser error. This also adds two testcases for C++, that previously were for C only. c/ * c-parser.c (c_parser_asm_statement) : Give a more specific error message (instead of just falling through). cp/ * parser.c (cp_parser_asm_definition) : Give a more specific error message (instead of just falling through). testsuite/ * g++.dg/asm-qual-1.C: New testcase. * g++.dg/asm-qual-2.C: New testcase. * gcc.dg/asm-qual-1.c: Update. From-SVN: r267279 --- gcc/testsuite/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/testsuite/ChangeLog') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b996242..d5b9973 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-12-19 Segher Boessenkool + + * g++.dg/asm-qual-1.C: New testcase. + * g++.dg/asm-qual-2.C: New testcase. + * gcc.dg/asm-qual-1.c: Update. + 2018-12-19 David Malcolm PR c++/88375 -- cgit v1.1