diff options
author | Ilya Enkovich <ilya.enkovich@intel.com> | 2015-03-31 08:29:28 +0000 |
---|---|---|
committer | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2015-03-31 08:29:28 +0000 |
commit | b7e85ee1070cecffe7dc6b722b67afd758663fb2 (patch) | |
tree | 19f537ccb6ebaa77c99c38727cd554e769dbc5d3 /gcc/ipa-chkp.c | |
parent | ce52d8847ea9f0a105a67f5a746ba1dcb998f534 (diff) | |
download | gcc-b7e85ee1070cecffe7dc6b722b67afd758663fb2.zip gcc-b7e85ee1070cecffe7dc6b722b67afd758663fb2.tar.gz gcc-b7e85ee1070cecffe7dc6b722b67afd758663fb2.tar.bz2 |
re PR target/65531 (ICE: symtab_node::verify failed: Two symbols with same comdat_group are not linked by the same_comdat_group list. with -fcheck-pointer-bounds -mmpx)
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.
From-SVN: r221788
Diffstat (limited to 'gcc/ipa-chkp.c')
-rw-r--r-- | gcc/ipa-chkp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-chkp.c b/gcc/ipa-chkp.c index a9933e2..3218d42 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)) |