gcc/
PR target/69729
* lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
to correctly determine instrumentation thunks.
gcc/testsuite/
* g++.dg/lto/lto.exp: Include and init mpx.
* g++.dg/lto/pr69729_0.C: New test.
From-SVN: r233376
+2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
+
+ PR target/69729
+ * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
+ to correctly determine instrumentation thunks.
+
2016-02-12 Jakub Jelinek <jakub@redhat.com>
PR ipa/69241
{
if (lto_symtab_encoder_encode_body_p (encoder, node)
&& !node->alias
- && (!node->thunk.thunk_p || !node->instrumented_version))
+ && (!node->thunk.thunk_p || !node->thunk.add_pointer_bounds_args))
{
if (flag_checking)
{
+2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
+
+ * g++.dg/lto/lto.exp: Include and init mpx.
+ * g++.dg/lto/pr69729_0.C: New test.
+
2016-02-12 Jakub Jelinek <jakub@redhat.com>
PR ipa/69241
load_lib standard.exp
load_lib g++.exp
load_lib target-libpath.exp
+load_lib mpx-dg.exp
# Load the language-independent compabibility support procedures.
load_lib lto.exp
g++_init
lto_init no-mathlib
+mpx_init
# Define an identifier for use with this suite to avoid name conflicts
# with other lto tests running at the same time.
lto-execute $src $sid
}
+mpx_finish
lto_finish
--- /dev/null
+/* { dg-lto-do link } */
+/* { dg-require-effective-target mpx } */
+/* { dg-lto-options {{-fcheck-pointer-bounds -mmpx -flto -flto-partition=max}} } */
+
+class cl1
+{
+ public:
+ virtual ~cl1 () { };
+};
+
+class cl2
+{
+ public:
+ virtual ~cl2 () { };
+};
+
+class cl3 : cl1, cl2
+{
+};
+
+class cl4 : cl3
+{
+ public:
+ ~cl4 ();
+};
+
+cl4::~cl4 ()
+{
+}
+
+int main (int argc, char **argv)
+{
+ cl4 c;
+ return 0;
+}