===================================================================
@@ -1,5 +1,10 @@
2013-06-01 Jan Hubicka <jh@suse.cz>
+ PR middle-end/57467
+ * passes.c (for_per_function): Skip unanalyzed functoins.
+
+2013-06-01 Jan Hubicka <jh@suse.cz>
+
* lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
(lto_symtab_merge_symbols_1): ... this one.
(lto_symtab_merge_cgraph_nodes): Rename to ...
===================================================================
@@ -1709,7 +1709,7 @@
{
struct cgraph_node *node;
FOR_EACH_DEFINED_FUNCTION (node)
- if (gimple_has_body_p (node->symbol.decl)
+ if (node->symbol.analyzed && gimple_has_body_p (node->symbol.decl)
&& (!node->clone_of || node->symbol.decl != node->clone_of->symbol.decl))
{
push_cfun (DECL_STRUCT_FUNCTION (node->symbol.decl));