summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/function.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-11-26 18:25:20 +0000
committerobrien <obrien@FreeBSD.org>2002-11-26 18:25:20 +0000
commitfa7971ab704ca66bdedfd46fc3848768b13fc91e (patch)
treed57c6ff3abefeaa7651e5939962631421a3f6292 /contrib/gcc/function.c
parent100044adf505a4d3825eed40ec34ffa1c2397863 (diff)
downloadFreeBSD-src-fa7971ab704ca66bdedfd46fc3848768b13fc91e.zip
FreeBSD-src-fa7971ab704ca66bdedfd46fc3848768b13fc91e.tar.gz
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
Diffstat (limited to 'contrib/gcc/function.c')
-rw-r--r--contrib/gcc/function.c13
1 files changed, 3 insertions, 10 deletions
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
}
OpenPOWER on IntegriCloud