]> git.ipfire.org Git - thirdparty/gcc.git/commit
genmatch.c (add_operator): Treat ADDR_EXPR as atom.
authorRichard Biener <rguenther@suse.de>
Mon, 29 Jun 2015 11:28:17 +0000 (11:28 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 29 Jun 2015 11:28:17 +0000 (11:28 +0000)
commit99e943a2be4bb7ec0d51b5a68e44d0d42dd9347a
treede2d1287b43d96691cfb42c5e3a59e13f9cf3696
parent2dcaddb8d74e3ec30edb264b845a346e0b7e9ab9
genmatch.c (add_operator): Treat ADDR_EXPR as atom.

2015-06-29  Richard Biener  <rguenther@suse.de>

* genmatch.c (add_operator): Treat ADDR_EXPR as atom.
* fold-const.c (fold_binary_loc): Move &A - &B simplification
via ptr_difference_const ...
* match.pd: ... here.
When matching (X ^ Y) == Y also match with swapped operands.

From-SVN: r225115
gcc/ChangeLog
gcc/fold-const.c
gcc/genmatch.c
gcc/match.pd