From fa7971ab704ca66bdedfd46fc3848768b13fc91e Mon Sep 17 00:00:00 2001 From: obrien Date: Tue, 26 Nov 2002 18:25:20 +0000 Subject: Remove our custom mixed ELF/a.out support. This means the base compiler now only produce ELF objects. It also makes us closer to stock GCC, and simplifies the set of changes we still need from stock GCC on every import. Applauded by: peter Approved by: re --- contrib/gcc/function.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'contrib/gcc/function.c') diff --git a/contrib/gcc/function.c b/contrib/gcc/function.c index b3ec9b3..00ab02c 100644 --- a/contrib/gcc/function.c +++ b/contrib/gcc/function.c @@ -6427,14 +6427,6 @@ mark_varargs () #define HAS_INIT_SECTION #endif -#ifndef GEN_CALL__MAIN -#define GEN_CALL__MAIN \ - do { \ - emit_library_call (gen_rtx_SYMBOL_REF (Pmode, NAME__MAIN), LCT_NORMAL, \ - VOIDmode, 0); \ - } while (0) -#endif - void expand_main_function () { @@ -6474,8 +6466,9 @@ expand_main_function () } #endif -#if defined(INVOKE__main) || !defined (HAS_INIT_SECTION) - GEN_CALL__MAIN; +#ifndef HAS_INIT_SECTION + emit_library_call (gen_rtx_SYMBOL_REF (Pmode, NAME__MAIN), LCT_NORMAL, + VOIDmode, 0); #endif } -- cgit v1.1