This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12175] [3.4 Regression] Tru64 UNIX bootstrap failure: multiply defined symbols linking libstdc++.so
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Sep 2003 11:58:03 -0000
- Subject: [Bug c++/12175] [3.4 Regression] Tru64 UNIX bootstrap failure: multiply defined symbols linking libstdc++.so
- References: <20030904231700.12175.ro@techfak.uni-bielefeld.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12175
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2003-09-29 11:57 -------
Subject: Re: [3.4 Regression] Tru64 UNIX bootstrap failure: mu
> The symbol in question exists and is external symbol.
> I am not quite sure what can call notice_global_symbol on external
> symbol, but perhaps the attached patch will help.
Yes, it does. It gets us back to bootstrap land.
Thanks,
Dave
> Index: varasm.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
> retrieving revision 1.386
> diff -c -3 -p -r1.386 varasm.c
> *** varasm.c 23 Sep 2003 19:47:00 -0000 1.386
> --- varasm.c 28 Sep 2003 20:15:53 -0000
> *************** notice_global_symbol (tree decl)
> *** 1043,1048 ****
> --- 1043,1049 ----
> {
> if ((!first_global_object_name || !weak_global_object_name)
> && TREE_PUBLIC (decl) && !DECL_COMMON (decl)
> + && !DECL_EXTERNAL (decl)
> && (TREE_CODE (decl) == FUNCTION_DECL
> || (TREE_CODE (decl) == VAR_DECL
> && (DECL_INITIAL (decl) != 0
Dave