Commit ee96ce90 by Richard Sandiford Committed by Richard Sandiford

* c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.

From-SVN: r49791
parent 0b6e58fd
2002-02-15 Richard Sandiford <rsandifo@redhat.com> 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
* c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
2002-02-15 Richard Sandiford <rsandifo@redhat.com>
* reload.c (find_dummy_reload): Check that an output register * reload.c (find_dummy_reload): Check that an output register
is valid for its mode. is valid for its mode.
......
...@@ -4534,9 +4534,9 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) ...@@ -4534,9 +4534,9 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
if (inner_decl == NULL_TREE if (inner_decl == NULL_TREE
|| TREE_CODE (inner_decl) == IDENTIFIER_NODE) || TREE_CODE (inner_decl) == IDENTIFIER_NODE)
attr_flags |= (int) ATTR_FLAG_DECL_NEXT; attr_flags |= (int) ATTR_FLAG_DECL_NEXT;
if (TREE_CODE (inner_decl) == CALL_EXPR) else if (TREE_CODE (inner_decl) == CALL_EXPR)
attr_flags |= (int) ATTR_FLAG_FUNCTION_NEXT; attr_flags |= (int) ATTR_FLAG_FUNCTION_NEXT;
if (TREE_CODE (inner_decl) == ARRAY_REF) else if (TREE_CODE (inner_decl) == ARRAY_REF)
attr_flags |= (int) ATTR_FLAG_ARRAY_NEXT; attr_flags |= (int) ATTR_FLAG_ARRAY_NEXT;
returned_attrs = decl_attributes (&type, returned_attrs = decl_attributes (&type,
chainon (returned_attrs, attrs), chainon (returned_attrs, attrs),
......
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