From f82d1a94ecc2cbeff1807bae81783dbf1147bb7b Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Thu, 11 Aug 2011 12:09:43 +0200 Subject: [PATCH] lto.c (uniquify_nodes): Use main variant's BINFO too. 2011-08-11 Martin Jambor lto/ * lto.c (uniquify_nodes): Use main variant's BINFO too. From-SVN: r177650 --- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 638e37c1f63..48903907e00 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2011-08-11 Martin Jambor + + * lto.c (uniquify_nodes): Use main variant's BINFO too. + 2011-08-08 Diego Novillo * Make-lang.in (lto/lto.o): Add TREE_STREAMER_H. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 93ff805b199..9a1aebeb4ce 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -721,6 +721,8 @@ uniquify_nodes (struct data_in *data_in, unsigned from) { TYPE_NEXT_VARIANT (t) = TYPE_NEXT_VARIANT (mv); TYPE_NEXT_VARIANT (mv) = t; + if (RECORD_OR_UNION_TYPE_P (t)) + TYPE_BINFO (t) = TYPE_BINFO (mv); } /* Finally adjust our main variant and fix it up. */ -- 2.30.2