aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-09-29 23:19:10 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-09-29 21:19:10 +0000
commitf820b0cf2cb6595ed42b16fd1615eb3aec0a6ada (patch)
treeac8d51ac3e224b015d329e29e83234c8093f3647 /gcc/varasm.c
parent2cd5614273c9579fa35eff4b53a773c95b74fc75 (diff)
downloadgcc-f820b0cf2cb6595ed42b16fd1615eb3aec0a6ada.zip
gcc-f820b0cf2cb6595ed42b16fd1615eb3aec0a6ada.tar.gz
gcc-f820b0cf2cb6595ed42b16fd1615eb3aec0a6ada.tar.bz2
re PR c++/12175 (Tru64 UNIX bootstrap failure: multiply defined symbols linking libstdc++.so)
PR c++/12175 * varasm.c (notice_global_symbol): Discard external symbols. PR optimization/12286 * gcov-io.c (gcov_read_words): Fix memmove call. * profile.c (compute_branch_probabilities): Add extra sanity checks. PR C++/12047 * except.c (build_eh_type_type): Call mark_used on the type. From-SVN: r71916
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index aea0414..e6d0189 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -1043,6 +1043,7 @@ notice_global_symbol (tree decl)
{
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