Commit 6c4ffa6c by Trevor Saunders Committed by Trevor Saunders

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
parent cf5b43b0
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> 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.md (atomic code attribute): Fix typo "ior" -> * config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
......
...@@ -14073,11 +14073,12 @@ fold_checksum_tree (const_tree expr, struct md5_ctx *ctx, ...@@ -14073,11 +14073,12 @@ fold_checksum_tree (const_tree expr, struct md5_ctx *ctx,
*slot = expr; *slot = expr;
code = TREE_CODE (expr); code = TREE_CODE (expr);
if (TREE_CODE_CLASS (code) == tcc_declaration 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)); memcpy ((char *) &buf, expr, tree_size (expr));
SET_DECL_ASSEMBLER_NAME ((tree)&buf, NULL); SET_DECL_ASSEMBLER_NAME ((tree)&buf, NULL);
buf.decl_with_vis.symtab_node = NULL;
expr = (tree) &buf; expr = (tree) &buf;
} }
else if (TREE_CODE_CLASS (code) == tcc_type else if (TREE_CODE_CLASS (code) == tcc_type
......
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