projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7133bb7
)
(is_ctor_dtor): Don't collect cfront init fcns.
author
Richard Stallman
<rms@gnu.org>
Mon, 17 Aug 1992 07:58:06 +0000
(07:58 +0000)
committer
Richard Stallman
<rms@gnu.org>
Mon, 17 Aug 1992 07:58:06 +0000
(07:58 +0000)
From-SVN: r1864
gcc/collect2.c
patch
|
blob
|
history
diff --git
a/gcc/collect2.c
b/gcc/collect2.c
index 532f1824b08b96a92d373edb6a709b23d7aea42f..186aba4ec66331b107cdf368bbe72a5661c1def5 100644
(file)
--- 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 }
};