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
This commit is contained in:
Mike Stump 1997-05-16 20:42:42 +00:00
parent c133e33c68
commit 30ccf55d85

View File

@ -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;