* make gthread routines non-weak on Darwin
@ 2004-10-27 21:16 Geoffrey Keating
0 siblings, 0 replies; only message in thread
From: Geoffrey Keating @ 2004-10-27 21:16 UTC (permalink / raw)
To: gcc-patches
It's annoying to have weak symbols in libgcc, because 10.1 doesn't
support them, and the linker complains about it if you have magic
environment variables set to the right (or wrong?) values.
Bootstrapped & tested on powerpc-darwin.
--
- Geoffrey Keating <geoffk@apple.com>
===File ~/patches/gcc-darwin-nonweakgthread.patch===========
2004-10-27 Geoffrey Keating <geoffk@apple.com>
* config/darwin.h (GTHREAD_USE_WEAK): Define.
Index: config/darwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/darwin.h,v
retrieving revision 1.100
diff -u -p -u -p -r1.100 darwin.h
--- config/darwin.h 26 Oct 2004 06:08:41 -0000 1.100
+++ config/darwin.h 27 Oct 2004 21:01:02 -0000
@@ -393,6 +393,10 @@ extern const char *darwin_fix_and_contin
fputc ('\n', FILE); \
} while (0)
+/* Darwin has the pthread routines in libSystem, which every program
+ links to, so there's no need for weak-ness for that. */
+#define GTHREAD_USE_WEAK 0
+
/* We support hidden visibility */
#undef TARGET_SUPPORTS_HIDDEN
#define TARGET_SUPPORTS_HIDDEN 1
============================================================
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-27 21:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-27 21:16 make gthread routines non-weak on Darwin Geoffrey Keating
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).