]> git.ipfire.org Git - thirdparty/gcc.git/commit
Come up with an abstraction.
authorMartin Liska <mliska@suse.cz>
Wed, 30 Oct 2019 12:01:03 +0000 (13:01 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 30 Oct 2019 12:01:03 +0000 (12:01 +0000)
commit7f4a8ee03d404c560dcb75ba684fd57ffbc77e85
treeb47bc170e7685789924985d88c12fcf373024b96
parent42ceec0607f3235904c68d3ede1aaddb70eb06aa
Come up with an abstraction.

2019-10-30  Martin Liska  <mliska@suse.cz>

* fold-const.c (operand_equal_p): Move to ...
(operand_compare::operand_equal_p): ... here.
(operand_compare::verify_hash_value): New.
(add_expr): Move to ...
(operand_compare::hash_operand): ... here.
* fold-const.h (operand_equal_p): Move to the class.
(class operand_compare): New.
* tree.c (add_expr): Remove.

From-SVN: r277614
gcc/ChangeLog
gcc/fold-const.c
gcc/fold-const.h
gcc/tree.c