mirror of git://gcc.gnu.org/git/gcc.git
re PR c/45062 (Revision 162223 caused ICE at c-decl.c:4064)
PR c/45062 * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when !funcdef_flag. From-SVN: r167381
This commit is contained in:
parent
5e37ea0ef1
commit
aa3ef09bf5
|
@ -1,3 +1,9 @@
|
||||||
|
2010-12-02 Nathan Froyd <froydnj@codesourcery.com>
|
||||||
|
|
||||||
|
PR c/45062
|
||||||
|
* c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
|
||||||
|
!funcdef_flag.
|
||||||
|
|
||||||
2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
|
2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
|
||||||
|
|
||||||
PR tree-optimization/45199
|
PR tree-optimization/45199
|
||||||
|
|
|
@ -6131,9 +6131,13 @@ grokparms (struct c_arg_info *arg_info, bool funcdef_flag)
|
||||||
else if (arg_types && TREE_CODE (TREE_VALUE (arg_types)) == IDENTIFIER_NODE)
|
else if (arg_types && TREE_CODE (TREE_VALUE (arg_types)) == IDENTIFIER_NODE)
|
||||||
{
|
{
|
||||||
if (!funcdef_flag)
|
if (!funcdef_flag)
|
||||||
|
{
|
||||||
pedwarn (input_location, 0, "parameter names (without types) in function declaration");
|
pedwarn (input_location, 0, "parameter names (without types) in function declaration");
|
||||||
|
arg_info->parms = NULL_TREE;
|
||||||
|
}
|
||||||
|
else
|
||||||
arg_info->parms = arg_info->types;
|
arg_info->parms = arg_info->types;
|
||||||
|
|
||||||
arg_info->types = 0;
|
arg_info->types = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue