diff options
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gcc/function.c b/gcc/function.c index 156dc3b..bde08a8 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3867,14 +3867,6 @@ init_function_for_compilation (void) VARRAY_GROW (sibcall_epilogue, 0); } -/* Define IVOKE__main if we should emit a call to __main at the start - of "main". */ -#if (!defined(INVOKE__main) \ - && !defined(INIT_SECTION_ASM_OP) \ - && !defined(INIT_ARRAY_SECTION_ASM_OP)) -#define INVOKE__main -#endif - void expand_main_function (void) { @@ -3914,7 +3906,10 @@ expand_main_function (void) } #endif -#if defined(INVOKE__main) +#if (defined(INVOKE__main) \ + || (!defined(HAS_INIT_SECTION) \ + && !defined(INIT_SECTION_ASM_OP) \ + && !defined(INIT_ARRAY_SECTION_ASM_OP))) emit_library_call (init_one_libfunc (NAME__MAIN), LCT_NORMAL, VOIDmode, 0); #endif } |