From: Mike Stump Date: Fri, 16 May 1997 20:42:42 +0000 (+0000) Subject: rs6000.c (rs6000_stack_info): Only do eabi setup for "main"... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30ccf55d854f180ea57da7aaf4926fbba8225ce1;p=gcc.git 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 --- diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index efc2577558d..e2d283dd767 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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;