This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37293] [4.4 Regression] r139762 breaks libstdc++ build on darwin
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2008 02:00:25 -0000
- Subject: [Bug middle-end/37293] [4.4 Regression] r139762 breaks libstdc++ build on darwin
- References: <bug-37293-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2008-08-31 02:00 -------
Simple patch which fixes the DECL_WEAK issue (I think).
Index: cgraphunit.c
===================================================================
--- cgraphunit.c (revision 139811)
+++ cgraphunit.c (working copy)
@@ -1532,13 +1532,15 @@ cgraph_function_versioning (struct cgrap
update_call_expr (new_version_node);
/* Update the new version's properties.
- Make The new version visible only within this translation unit.
+ Make The new version visible only within this translation unit. Make
sure
+ that is not weak also.
??? We cannot use COMDAT linkage because there is no
ABI support for this. */
DECL_EXTERNAL (new_version_node->decl) = 0;
DECL_ONE_ONLY (new_version_node->decl) = 0;
TREE_PUBLIC (new_version_node->decl) = 0;
DECL_COMDAT (new_version_node->decl) = 0;
+ DECL_WEAK (new_version_node->decl) = 0;
new_version_node->local.externally_visible = 0;
new_version_node->local.local = 1;
new_version_node->lowered = true;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37293