Commit 51a1aacf by Tristan Gingold Committed by Tristan Gingold

c-parser.c (c_parser_parameter_declaration): Handle #pragma before a parameter.

2012-03-15  Tristan Gingold  <gingold@adacore.com>

	* c-parser.c (c_parser_parameter_declaration): Handle #pragma
	before a parameter.

From-SVN: r185413
parent 4fa04e5c
2012-03-15 Tristan Gingold <gingold@adacore.com> 2012-03-15 Tristan Gingold <gingold@adacore.com>
* c-parser.c (c_parser_parameter_declaration): Handle #pragma
before a parameter.
2012-03-15 Tristan Gingold <gingold@adacore.com>
* dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
use DW_OP_call_frame_cfa. use DW_OP_call_frame_cfa.
......
...@@ -3305,6 +3305,11 @@ c_parser_parameter_declaration (c_parser *parser, tree attrs) ...@@ -3305,6 +3305,11 @@ c_parser_parameter_declaration (c_parser *parser, tree attrs)
tree prefix_attrs; tree prefix_attrs;
tree postfix_attrs = NULL_TREE; tree postfix_attrs = NULL_TREE;
bool dummy = false; bool dummy = false;
/* Accept #pragmas between parameter declarations. */
while (c_parser_next_token_is (parser, CPP_PRAGMA))
c_parser_pragma (parser, pragma_external);
if (!c_parser_next_token_starts_declspecs (parser)) if (!c_parser_next_token_starts_declspecs (parser))
{ {
c_token *token = c_parser_peek_token (parser); c_token *token = c_parser_peek_token (parser);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment