Commit b5d0cdc9 by Richard Biener Committed by Martin Liska

Return hash of ADDR_EXPR if its argument is CONSTANT_CLASS_P.

2018-10-24  Richard Biener  <rguenther@suse.de>

	* varasm.c (const_hash_1): Return hash of ADDR_EXPR
	if its argument is CONSTANT_CLASS_P.

From-SVN: r265462
parent 9a97772f
2018-10-24 Richard Biener <rguenther@suse.de>
* varasm.c (const_hash_1): Return hash of ADDR_EXPR
if its argument is CONSTANT_CLASS_P.
2018-10-11 Jan Hubicka <hubicka@ucw.cz>
* ipa-utils.h (type_with_linkage_p): No longer check for TYPE_STUB_DECL;
......@@ -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;
......
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