aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-streamer-in.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2012-10-17 10:25:56 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-10-17 10:25:56 +0000
commit3855380a5f5375c21664983af433a5f1b67e738d (patch)
tree188b0be336692e3c2577ed892935d7bf5ff84a90 /gcc/tree-streamer-in.c
parente0de0c3b403372e916d951c2fe541fe260b571ff (diff)
downloadgcc-3855380a5f5375c21664983af433a5f1b67e738d.zip
gcc-3855380a5f5375c21664983af433a5f1b67e738d.tar.gz
gcc-3855380a5f5375c21664983af433a5f1b67e738d.tar.bz2
tree-streamer-out.c (write_ts_decl_common_tree_pointers): Do not write TREE_CHAIN of PARM_DECLs.
2012-10-17 Richard Biener <rguenther@suse.de> * tree-streamer-out.c (write_ts_decl_common_tree_pointers): Do not write TREE_CHAIN of PARM_DECLs. (write_ts_decl_non_common_tree_pointers): Instead stream the DECL_ARGUMENTS chain. * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers): Do not read TREE_CHAIN of PARM_DECLs. (lto_input_ts_decl_non_common_tree_pointes): Instead read the DECL_ARGUMENTS as chain. From-SVN: r192529
Diffstat (limited to 'gcc/tree-streamer-in.c')
-rw-r--r--gcc/tree-streamer-in.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tree-streamer-in.c b/gcc/tree-streamer-in.c
index 1a615f1..9e1e975 100644
--- a/gcc/tree-streamer-in.c
+++ b/gcc/tree-streamer-in.c
@@ -643,9 +643,6 @@ lto_input_ts_decl_common_tree_pointers (struct lto_input_block *ib,
for early inlining so drop it on the floor instead of ICEing in
dwarf2out.c. */
- if (TREE_CODE (expr) == PARM_DECL)
- TREE_CHAIN (expr) = streamer_read_chain (ib, data_in);
-
if ((TREE_CODE (expr) == VAR_DECL
|| TREE_CODE (expr) == PARM_DECL)
&& DECL_HAS_VALUE_EXPR_P (expr))
@@ -670,7 +667,7 @@ lto_input_ts_decl_non_common_tree_pointers (struct lto_input_block *ib,
{
if (TREE_CODE (expr) == FUNCTION_DECL)
{
- DECL_ARGUMENTS (expr) = stream_read_tree (ib, data_in);
+ DECL_ARGUMENTS (expr) = streamer_read_chain (ib, data_in);
DECL_RESULT (expr) = stream_read_tree (ib, data_in);
}
else if (TREE_CODE (expr) == TYPE_DECL)