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:
parent
c133e33c68
commit
30ccf55d85
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user