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:
parent
cf5b43b050
commit
6c4ffa6c4a
@ -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" ->
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user