This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix darwin PR target/34587
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 17 Feb 2009 18:47:46 -0500 (EST)
- Subject: [committed] Fix darwin PR target/34587
The attached change fixes PR target/34587. The Apple assembler and
linker don't support constructor/destructor priorities.
Approved by MRS in PR.
Tested on i686-apple-darwin9. Committed to trunk.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/34587
* config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
Index: config/darwin.h
===================================================================
--- config/darwin.h (revision 144226)
+++ config/darwin.h (working copy)
@@ -998,4 +998,8 @@
darwin_default_min_version (&argc, &argv)
#endif /* CROSS_DIRECTORY_STRUCTURE */
+/* The Apple assembler and linker do not support constructor priorities. */
+#undef SUPPORTS_INIT_PRIORITY
+#define SUPPORTS_INIT_PRIORITY 0
+
#endif /* CONFIG_DARWIN_H */