diff options
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/lto/lto.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 638e37c1..4890390 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2011-08-11 Martin Jambor <mjambor@suse.cz> + + * lto.c (uniquify_nodes): Use main variant's BINFO too. + 2011-08-08 Diego Novillo <dnovillo@google.com> * Make-lang.in (lto/lto.o): Add TREE_STREAMER_H. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 93ff805..9a1aebe 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. */ |