From: Richard Biener Date: Wed, 24 Oct 2018 13:49:47 +0000 (+0000) Subject: Return hash of ADDR_EXPR if its argument is CONSTANT_CLASS_P. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5d0cdc9c899a6046c01c1e9e3f19bb5ca08e67f;p=gcc.git Return hash of ADDR_EXPR if its argument is CONSTANT_CLASS_P. 2018-10-24 Richard Biener * varasm.c (const_hash_1): Return hash of ADDR_EXPR if its argument is CONSTANT_CLASS_P. From-SVN: r265462 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 582d65a9c4a..270726a3730 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-10-24 Richard Biener + + * varasm.c (const_hash_1): Return hash of ADDR_EXPR + if its argument is CONSTANT_CLASS_P. + 2018-10-11 Jan Hubicka * ipa-utils.h (type_with_linkage_p): No longer check for TYPE_STUB_DECL; diff --git a/gcc/varasm.c b/gcc/varasm.c index 06f41d002fd..545e13fef6a 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -3051,6 +3051,10 @@ const_hash_1 (const tree exp) } case ADDR_EXPR: + if (CONSTANT_CLASS_P (TREE_OPERAND (exp, 0))) + return const_hash_1 (TREE_OPERAND (exp, 0)); + + /* Fallthru. */ case FDESC_EXPR: { struct addr_const value;