Commit f9abc06c by Thomas Schwinge Committed by Thomas Schwinge

Fix --enable-checking=fold failure.

	gcc/
	* fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
	FUNCTION_DECLs.

From-SVN: r212428
parent d764963b
2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
* fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
FUNCTION_DECLs.
2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/53590
......
......@@ -14858,6 +14858,7 @@ fold_checksum_tree (const_tree expr, struct md5_ctx *ctx,
if (CODE_CONTAINS_STRUCT (TREE_CODE (expr), TS_DECL_NON_COMMON))
{
if (TREE_CODE (expr) == FUNCTION_DECL)
fold_checksum_tree (DECL_VINDEX (expr), ctx, ht);
fold_checksum_tree (DECL_RESULT_FLD (expr), ctx, ht);
fold_checksum_tree (DECL_ARGUMENT_FLD (expr), ctx, ht);
......
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