diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2018-12-19 17:12:17 +0100 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2018-12-19 17:12:17 +0100 |
commit | db4fd626ee2bb431adadddf5eca5fba104cea5ca (patch) | |
tree | 1a0695e86a028584e80b85b341d91e2c3755519c /gcc/c/c-tree.h | |
parent | 9c9cfcbbbe659d16a216883ff9a9bcb098e243f0 (diff) | |
download | gcc-db4fd626ee2bb431adadddf5eca5fba104cea5ca.zip gcc-db4fd626ee2bb431adadddf5eca5fba104cea5ca.tar.gz gcc-db4fd626ee2bb431adadddf5eca5fba104cea5ca.tar.bz2 |
c/c++, asm: Use nicer error for duplicate asm qualifiers
Also as suggested by Jason.
c/
* c-parser.c (c_parser_asm_statement): Keep track of the location each
asm qualifier is first seen; use that to give nicer "duplicate asm
qualifier" messages. Delete 'quals" variable, instead pass the
"is_volatile_ flag to build_asm_stmt directly.
* c-tree.h (build_asm_stmt): Make the first arg bool instead of tree.
* c-typeck.c (build_asm_stmt): Ditto; adjust.
cp/
* parser.c (cp_parser_asm_definition): Rewrite the loop to work without
"done" boolean variable.
* parser.c (cp_parser_asm_definition): Keep track of the location each
asm qualifier is first seen; use that to give nicer "duplicate asm
qualifier" messages.
From-SVN: r267278
Diffstat (limited to 'gcc/c/c-tree.h')
-rw-r--r-- | gcc/c/c-tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c/c-tree.h b/gcc/c/c-tree.h index f08a8fc..dc9e3cd 100644 --- a/gcc/c/c-tree.h +++ b/gcc/c/c-tree.h @@ -679,7 +679,7 @@ extern tree c_start_case (location_t, location_t, tree, bool); extern void c_finish_case (tree, tree); extern tree build_asm_expr (location_t, tree, tree, tree, tree, tree, bool, bool); -extern tree build_asm_stmt (tree, tree); +extern tree build_asm_stmt (bool, tree); extern int c_types_compatible_p (tree, tree); extern tree c_begin_compound_stmt (bool); extern tree c_end_compound_stmt (location_t, tree, bool); |