[Bug lto/51573] [4.7 Regression] ICE (segfault) in lto_varpool_encoder_encode_initializer_p

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 19 16:01:00 GMT 2011


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

--- Comment #11 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-19 15:57:06 UTC ---
Author: rguenth
Date: Mon Dec 19 15:57:02 2011
New Revision: 182487

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182487
Log:
2011-12-19  Richard Guenther  <rguenther@suse.de>

    PR lto/51573
    * streamer-hooks.h (struct streamer_hooks): Add second
    ref_p parameter to write_tree.
    (stream_write_tree): Adjust.
    (stream_write_tree_shallow_non_ref): New define.
    * lto-streamer.h (lto_output_tree): Adjust.
    * lto-streamer-out.c (lto_output_tree): Likewise.
    * tree-streamer-out.c (streamer_write_chain): Only
    force the immediate tree to be streamed as non-reference.

    * gcc.dg/lto/20111207-2_0.c: Adjust.
    * g++.dg/lto/pr51573-1_0.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/lto/pr51573-1_0.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lto-streamer-out.c
    trunk/gcc/lto-streamer.h
    trunk/gcc/streamer-hooks.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/lto/20111207-2_0.c
    trunk/gcc/tree-streamer-out.c



More information about the Gcc-bugs mailing list