Commit 5fb43dd8 by Tom de Vries Committed by Tom de Vries

re PR middle-end/48689 (ICE in fold-const.c:13798 with fold checking)

2011-05-22  Tom de Vries  <tom@codesourcery.com>

	PR middle-end/48689
	* fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
	CODE_CONTAINS_STRUCT (TS_COMMON).

From-SVN: r174035
parent ccb1b17b
2011-05-22 Tom de Vries <tom@codesourcery.com>
PR middle-end/48689
* fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
CODE_CONTAINS_STRUCT (TS_COMMON).
2011-05-22 Jakub Jelinek <jakub@redhat.com>
PR middle-end/49029
......
......@@ -13822,7 +13822,8 @@ recursive_label:
if (TREE_CODE_CLASS (code) != tcc_type
&& TREE_CODE_CLASS (code) != tcc_declaration
&& code != TREE_LIST
&& code != SSA_NAME)
&& code != SSA_NAME
&& CODE_CONTAINS_STRUCT (code, TS_COMMON))
fold_checksum_tree (TREE_CHAIN (expr), ctx, ht);
switch (TREE_CODE_CLASS (code))
{
......
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