* c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
!funcdef_flag.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167381
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
PR tree-optimization/45199
else if (arg_types && TREE_CODE (TREE_VALUE (arg_types)) == IDENTIFIER_NODE)
{
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;
return 0;
}