On Mon, Dec 19, 2011 at 3:50 AM, Richard Guenther <rguent...@suse.de> wrote:
>
> This fixes another case of PR51572 - we need to properly stream
> TYPE_DECLs in TYPE_FIELDS.
>
> LTO Boostrap and regtest running on x86_64-unknown-linux-gnu,
> SPEC 2k6 build scheduled.
>
> Richard.
>
> 2011-12-19  Richard Guenther  <rguent...@suse.de>
>
>        PR lto/51572
>        * tree.c (free_lang_data_in_type): Do not unlink TYPE_DECL
>        from TYPE_FIELDS.
>        (find_decls_types_r): Walk TYPE_DECLs in TYPE_FIELDS.
>        * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Do
>        not stream TREE_CHAIN.
>        (write_ts_type_non_common_tree_pointers): Stream TYPE_FIELDS
>        using streamer_write_chain.
>        * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
>        Do not stream TREE_CHAIN.
>        (lto_input_ts_type_non_common_tree_pointers): Stream TYPE_FIELDS
>        using streamer_read_chain.
>        * gimple-streamer-in.c (input_gimple_stmt): Skip non-FIELD_DECLs.
>        * gimple.c (gimple_canonical_types_compatible_p): Properly
>        handle trailing non-FIELD_DECLs in TYPE_FIELDS.
>

This caused:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53471

-- 
H.J.

Reply via email to