make fold ignore decl_with_vis.symtab_node

gcc/

	PR middle-end/63325
	* fold-const.c (fold_checksum_tree): Don't include
	expr.decl_with_vis.symtab_node in the checksum.

From-SVN: r219994
This commit is contained in:
Trevor Saunders 2015-01-22 11:55:33 +00:00 committed by Trevor Saunders
parent cf5b43b050
commit 6c4ffa6c4a
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
PR middle-end/63325
* fold-const.c (fold_checksum_tree): Don't include value of
expr->decl_with_vis.symtab_node in the checksum.
2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.md (atomic code attribute): Fix typo "ior" ->

View File

@ -14073,11 +14073,12 @@ fold_checksum_tree (const_tree expr, struct md5_ctx *ctx,
*slot = expr;
code = TREE_CODE (expr);
if (TREE_CODE_CLASS (code) == tcc_declaration
&& DECL_ASSEMBLER_NAME_SET_P (expr))
&& HAS_DECL_ASSEMBLER_NAME_P (expr))
{
/* Allow DECL_ASSEMBLER_NAME to be modified. */
/* Allow DECL_ASSEMBLER_NAME and symtab_node to be modified. */
memcpy ((char *) &buf, expr, tree_size (expr));
SET_DECL_ASSEMBLER_NAME ((tree)&buf, NULL);
buf.decl_with_vis.symtab_node = NULL;
expr = (tree) &buf;
}
else if (TREE_CODE_CLASS (code) == tcc_type