aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-04-27 09:45:57 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-04-27 09:45:57 +0200
commit108b7b2901d2cc52b090f89a4ccfa520e52270ba (patch)
treeee16a1291dde4c097179af800ec0f645b1f22d8d /gcc/tree.h
parent1ee806d8d759be9c7326ce55b472f326089b47f0 (diff)
downloadgcc-108b7b2901d2cc52b090f89a4ccfa520e52270ba.zip
gcc-108b7b2901d2cc52b090f89a4ccfa520e52270ba.tar.gz
gcc-108b7b2901d2cc52b090f89a4ccfa520e52270ba.tar.bz2
re PR sanitizer/70683 (-fcompare-debug bug with -fsanitize=address)
PR sanitizer/70683 * tree.h (inchash::add_expr): Add FLAGS argument. * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF, use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF. For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same. Formatting fix. Adjust recursive calls. For tcc_comparison, if swap_tree_comparison (code) is smaller than code, hash that and arguments in the other order. Hash CONVERT_EXPR the same as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset of ADDR_EXPR of decl as the decl itself. Add or remove OEP_ADDRESS_OF from recursive flags as needed. For FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two operands commutatively and only the third one normally. For internal CALL_EXPR hash in CALL_EXPR_IFN. From-SVN: r235469
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 33833a7..259a2bf 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4759,7 +4759,7 @@ extern int simple_cst_equal (const_tree, const_tree);
namespace inchash
{
-extern void add_expr (const_tree, hash &);
+extern void add_expr (const_tree, hash &, unsigned int = 0);
}