Commit 30ccf55d by Mike Stump

rs6000.c (rs6000_stack_info): Only do eabi setup for "main"...

	* rs6000/rs6000.c (rs6000_stack_info): Only do eabi setup for "main",
	when main is the global main, not some nested routine that
	happens to be called main.

From-SVN: r14072
parent c133e33c
......@@ -3032,7 +3032,8 @@ rs6000_stack_info ()
if (TARGET_EABI)
#endif
{
if (strcmp (IDENTIFIER_POINTER (DECL_NAME (current_function_decl)), "main") == 0)
if (strcmp (IDENTIFIER_POINTER (DECL_NAME (current_function_decl)), "main") == 0
&& DECL_CONTEXT (current_function_decl) == NULL_TREE)
{
info_ptr->main_p = 1;
......
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