aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-08-17 07:58:06 +0000
committerRichard Stallman <rms@gnu.org>1992-08-17 07:58:06 +0000
commitc1af03468d186740d9c3b5000b0e6b77d95c79d5 (patch)
tree2b1c526db92a394876ab5e376344f76cba22f0a6 /gcc
parent7133bb7f11982bad19a7d7631d264501956d0640 (diff)
downloadgcc-c1af03468d186740d9c3b5000b0e6b77d95c79d5.zip
gcc-c1af03468d186740d9c3b5000b0e6b77d95c79d5.tar.gz
gcc-c1af03468d186740d9c3b5000b0e6b77d95c79d5.tar.bz2
(is_ctor_dtor): Don't collect cfront init fcns.
From-SVN: r1864
Diffstat (limited to 'gcc')
-rw-r--r--gcc/collect2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 532f182..186aba4 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 }
};