Commit 66f0e027 by Jakub Jelinek Committed by Jakub Jelinek

re PR bootstrap/41436 (Revision 152018 failed to bootstrap on i386)

	PR bootstrap/41436
	* cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
	on non-nested functions.

From-SVN: r152067
parent d4c74acc
2009-09-23 Jakub Jelinek <jakub@redhat.com> 2009-09-23 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/41436
* cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
on non-nested functions.
2009-09-23 Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz> Jan Hubicka <jh@suse.cz>
* dwarf2out.c (loc_list_plus_const): Only define if * dwarf2out.c (loc_list_plus_const): Only define if
......
...@@ -498,6 +498,11 @@ cgraph_lower_function (struct cgraph_node *node) ...@@ -498,6 +498,11 @@ cgraph_lower_function (struct cgraph_node *node)
lower_nested_functions (node->decl); lower_nested_functions (node->decl);
gcc_assert (!node->nested); gcc_assert (!node->nested);
/* Non-nested functions never need a static chain. */
if (!DECL_NO_STATIC_CHAIN (node->decl)
&& decl_function_context (node->decl) == NULL)
DECL_NO_STATIC_CHAIN (node->decl) = 1;
tree_lowering_passes (node->decl); tree_lowering_passes (node->decl);
node->lowered = true; node->lowered = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment