(is_ctor_dtor): Don't collect cfront init fcns.
authorRichard Stallman <rms@gnu.org>
Mon, 17 Aug 1992 07:58:06 +0000 (07:58 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 17 Aug 1992 07:58:06 +0000 (07:58 +0000)
From-SVN: r1864

gcc/collect2.c

index 532f1824b08b96a92d373edb6a709b23d7aea42f..186aba4ec66331b107cdf368bbe72a5661c1def5 100644 (file)
@@ -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 }
   };