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
+2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ 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.
+
2015-03-31 Jakub Jelinek <jakub@redhat.com>
PR plugins/61176
/* 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))
*entry = node;
else if (!DECL_EXTERNAL (node->decl))
{
- for (s = (*entry)->same_comdat_group; s != NULL && s != node;
+ for (s = (*entry)->same_comdat_group;
+ s != NULL && s != node && s != *entry;
s = s->same_comdat_group)
;
if (!s || s == *entry)
+2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ PR target/65531
+ * gcc.target/i386/mpx/pr65531.cc: New.
+
2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65602
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -fcheck-pointer-bounds -mmpx" } */
+
+#pragma interface
+
+struct S
+{
+ ~S ()
+ {
+ }
+};
+
+S s;