+2019-03-01 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/89503
+ * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
+ on DECL_P and EXPR_P.
+
2019-03-01 Richard Biener <rguenther@suse.de>
PR middle-end/89497
memcpy ((char *) &buf, expr, tree_size (expr));
SET_DECL_ASSEMBLER_NAME ((tree)&buf, NULL);
buf.decl_with_vis.symtab_node = NULL;
+ buf.base.nowarning_flag = 0;
expr = (tree) &buf;
}
else if (TREE_CODE_CLASS (code) == tcc_type
TYPE_CACHED_VALUES (tmp) = NULL;
}
}
+ else if (TREE_NO_WARNING (expr) && (DECL_P (expr) || EXPR_P (expr)))
+ {
+ /* Allow TREE_NO_WARNING to be set. Perhaps we shouldn't allow that
+ and change builtins.c etc. instead - see PR89543. */
+ memcpy ((char *) &buf, expr, tree_size (expr));
+ buf.base.nowarning_flag = 0;
+ expr = (tree) &buf;
+ }
md5_process_bytes (expr, tree_size (expr), ctx);
if (CODE_CONTAINS_STRUCT (code, TS_TYPED))
fold_checksum_tree (TREE_TYPE (expr), ctx, ht);