+2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ * ipa-comdats.c (ipa_comdats): Visit all thunks
+ to set proper comdat group.
+
2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/65489
fprintf (dump_file, "To group: %s\n", IDENTIFIER_POINTER (group));
}
if (is_a <cgraph_node *> (symbol))
- dyn_cast <cgraph_node *>(symbol)->call_for_symbol_and_aliases
+ dyn_cast <cgraph_node *>(symbol)->call_for_symbol_thunks_and_aliases
(set_comdat_group_1,
*comdat_head_map.get (group),
true);
+2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ * gcc.target/i386/mpx/chkp-thunk-comdat-1.cc: New.
+ * gcc.target/i386/mpx/chkp-thunk-comdat-2.cc: New.
+
2015-04-07 Bin Cheng <bin.cheng@arm.com>
* gcc.target/arm/pr65647.c: Add option "-mfloat-abi=soft".
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -fcheck-pointer-bounds -mmpx" } */
+
+namespace
+{
+ template <int dim>
+ int __attribute__((noinline))
+ f1 ()
+ {
+ return dim;
+ }
+}
+
+int
+test ()
+{
+ return f1<3> ();
+}
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -fcheck-pointer-bounds -mmpx" } */
+
+class c1
+{
+public:
+ virtual int test1 (const char *);
+};
+
+class c2
+{
+public:
+ int test2 (const char *);
+};
+
+int
+c1::test1 (const char *)
+{
+ return 0;
+}
+
+int
+c2::test2 (const char *)
+{
+ return 0;
+}