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/tree-stdarg.c | |
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/tree-stdarg.c')
0 files changed, 0 insertions, 0 deletions