Commit 13279744 by Richard Guenther Committed by Richard Biener

re PR lto/45789 (ICE: tree code 'lang_type' is not supported in gimple streams…

re PR lto/45789 (ICE: tree code 'lang_type' is not supported in gimple streams with -flto when using __builtin_printf())

2010-11-19  Richard Guenther  <rguenther@suse.de>

	PR lto/45789
	* lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
	IDENTIFIERs do not stream TREE_TYPE.
	* lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.

From-SVN: r166936
parent 0d697034
2010-11-19 Richard Guenther <rguenther@suse.de>
PR lto/45789
* lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
IDENTIFIERs do not stream TREE_TYPE.
* lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
* config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
......@@ -1874,7 +1874,8 @@ static void
lto_input_ts_common_tree_pointers (struct lto_input_block *ib,
struct data_in *data_in, tree expr)
{
TREE_TYPE (expr) = lto_input_tree (ib, data_in);
if (TREE_CODE (expr) != IDENTIFIER_NODE)
TREE_TYPE (expr) = lto_input_tree (ib, data_in);
}
......
......@@ -793,7 +793,8 @@ static void
lto_output_ts_common_tree_pointers (struct output_block *ob, tree expr,
bool ref_p)
{
lto_output_tree_or_ref (ob, TREE_TYPE (expr), ref_p);
if (TREE_CODE (expr) != IDENTIFIER_NODE)
lto_output_tree_or_ref (ob, TREE_TYPE (expr), ref_p);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment