summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-02 17:43:33 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-02 17:43:33 +0000
commitd1d06be2565b50ea680e0a9fcf6a23a5d616bc9a (patch)
tree35ccb6e6780d50f42cbb6d4193015af65346b414 /gcc/toplev.c
parent1da5e4ae7401c7329a4350f3a0617824d5f8c4c0 (diff)
downloadgcc-d1d06be2565b50ea680e0a9fcf6a23a5d616bc9a.tar.gz
* tree.h (struct tree_decl): Add comdat_flag.
(DECL_COMDAT): Define it. * toplev.c (wrapup_global_declarations): Don't output a DECL_COMDAT function just because it's public. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index cc0453ceca6..1fe439a7247 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2753,7 +2753,7 @@ wrapup_global_declarations (vec, len)
&& DECL_INITIAL (decl) != 0
&& DECL_SAVED_INSNS (decl) != 0
&& (flag_keep_inline_functions
- || TREE_PUBLIC (decl)
+ || (TREE_PUBLIC (decl) && !DECL_COMDAT (decl))
|| TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))))
{
reconsider = 1;