From c1af03468d186740d9c3b5000b0e6b77d95c79d5 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 17 Aug 1992 07:58:06 +0000 Subject: [PATCH] (is_ctor_dtor): Don't collect cfront init fcns. From-SVN: r1864 --- gcc/collect2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/collect2.c b/gcc/collect2.c index 532f1824b08..186aba4ec66 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -379,8 +379,14 @@ is_ctor_dtor (s) { "GLOBAL_$I$", sizeof ("GLOBAL_$I$")-1, 1, 0 }, { "GLOBAL_$D$", sizeof ("GLOBAL_$I$")-1, 2, 0 }, #endif +#ifdef CFRONT_LOSSAGE /* Don't collect cfront initialization functions. + cfront has its own linker procedure to collect them; + if collect2 gets them too, they get collected twice + when the cfront procedure is run and the compiler used + for linking happens to be GCC. */ { "sti__", sizeof ("sti__")-1, 1, 1 }, { "std__", sizeof ("std__")-1, 2, 1 }, +#endif /* 0 */ { NULL, 0, 0, 0 } }; -- 2.30.2