OSDN Git Service

2011-12-19 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Dec 2011 15:57:02 +0000 (15:57 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Dec 2011 15:57:02 +0000 (15:57 +0000)
commit57bcbbf6d2c0c0d50ae6f59a638d9683f45870dd
tree16b996c2025405cb5a936807037ff9de2de2ece6
parent33185aa69c0b8ef353c75256989d91534958492a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182487 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/lto-streamer-out.c
gcc/lto-streamer.h
gcc/streamer-hooks.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr51573-1_0.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/20111207-2_0.c
gcc/tree-streamer-out.c