/* Push a member name on the stack. Printed as '.' STRING. */
static void
-push_member_name (string)
- char *string;
+push_member_name (decl)
+ tree decl;
+
{
+ char *string
+ = DECL_NAME (decl) ? IDENTIFIER_POINTER (DECL_NAME (decl)) : "<anonymous>";
PUSH_SPELLING (SPELLING_MEMBER, string, u.s);
}
else
{
constructor_type = TREE_TYPE (constructor_fields);
- push_member_name (IDENTIFIER_POINTER (DECL_NAME (constructor_fields)));
+ push_member_name (constructor_fields);
}
}
else if (TREE_CODE (constructor_type) == ARRAY_TYPE)
if (value)
{
- push_member_name (IDENTIFIER_POINTER (DECL_NAME (constructor_fields)));
+ push_member_name (constructor_fields);
output_init_element (value, fieldtype, constructor_fields, 1);
RESTORE_SPELLING_DEPTH (constructor_depth);
}
if (value)
{
- push_member_name (IDENTIFIER_POINTER (DECL_NAME (constructor_fields)));
+ push_member_name (constructor_fields);
output_init_element (value, fieldtype, constructor_fields, 1);
RESTORE_SPELLING_DEPTH (constructor_depth);
}