Do not ignore func type for decls_for_allocation.
@@ -6704,8 +6704,7 @@ static void create_decl (node_t scope, node_t decl_node, struct decl_spec decl_s
if (decl_node->code != N_MEMBER) {
set_type_layout (decl->decl_spec.type);
check_decl_align (&decl->decl_spec);
- if (!decl->decl_spec.typedef_p && decl->decl_spec.type->mode != TM_FUNC)
- VARR_PUSH (decl_t, decls_for_allocation, decl);
+ if (!decl->decl_spec.typedef_p) VARR_PUSH (decl_t, decls_for_allocation, decl);
}
if (initializer == NULL || initializer->code == N_IGNORE) return;
if (decl->decl_spec.type->incomplete_p
@@ -6728,8 +6727,7 @@ static void create_decl (node_t scope, node_t decl_node, struct decl_spec decl_s
decl->decl_spec.linkage == N_STATIC || decl->decl_spec.linkage == N_EXTERN
|| decl->decl_spec.thread_local_p || decl->decl_spec.static_p,
TRUE);
- if (decl_node->code != N_MEMBER && !decl->decl_spec.typedef_p
- && decl->decl_spec.type->mode != TM_FUNC)
+ if (decl_node->code != N_MEMBER && !decl->decl_spec.typedef_p)
/* Process after initilizer because we can make type complete by it. */
VARR_PUSH (decl_t, decls_for_allocation, decl);
}
