summaryrefslogtreecommitdiff
path: root/gcc/ipa-chkp.c
diff options
context:
space:
mode:
authorienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-31 08:29:28 +0000
committerienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-31 08:29:28 +0000
commit4811e3393bf47461e5b4fde35c1e8445f9c3b6e8 (patch)
tree19f537ccb6ebaa77c99c38727cd554e769dbc5d3 /gcc/ipa-chkp.c
parent0068c93cd170e47525a6e2485e2d06a75cb395eb (diff)
downloadgcc-4811e3393bf47461e5b4fde35c1e8445f9c3b6e8.tar.gz
gcc/
PR target/65531 * ipa-chkp.c (chkp_maybe_create_clone): Don't set same_comdat_group for external symbols. * symtab.c (symtab_node::verify_symtab_nodes): Avoid infinite same_comdat_group traversal loop. gcc/testsuite/ PR target/65531 * gcc.target/i386/mpx/pr65531.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221788 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-chkp.c')
-rw-r--r--gcc/ipa-chkp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-chkp.c b/gcc/ipa-chkp.c
index a9933e237c4..3218d42330e 100644
--- a/gcc/ipa-chkp.c
+++ b/gcc/ipa-chkp.c
@@ -574,7 +574,8 @@ chkp_maybe_create_clone (tree fndecl)
/* Clones have the same comdat group as originals. */
if (node->same_comdat_group
- || DECL_ONE_ONLY (node->decl))
+ || (DECL_ONE_ONLY (node->decl)
+ && !DECL_EXTERNAL (node->decl)))
clone->add_to_same_comdat_group (node);
if (gimple_has_body_p (fndecl))