diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-27 11:41:14 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-27 11:41:14 +0000 |
commit | bc4a7125e5eb8e8c24b64df1f198f31551c4641f (patch) | |
tree | 2cddcf2715f9077d0c950f1a974ad7cf71bbe44f /gcc/match.pd | |
parent | 30488079803960e7223452764909197c2ade1f2e (diff) | |
download | gcc-bc4a7125e5eb8e8c24b64df1f198f31551c4641f.tar.gz |
2014-10-27 Richard Biener <rguenther@suse.de>
* match.pd (0 % X): Properly use the iterator iterating over
all modulo operators.
(X % 1): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216732 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/match.pd')
-rw-r--r-- | gcc/match.pd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/match.pd b/gcc/match.pd index aa2afc267d7..3e6b25c2b01 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -64,13 +64,13 @@ along with GCC; see the file COPYING3. If not see (for op (ceil_mod floor_mod round_mod trunc_mod) /* 0 % X is always zero. */ (simplify - (trunc_mod integer_zerop@0 @1) + (op integer_zerop@0 @1) /* But not for 0 % 0 so that we can get the proper warnings and errors. */ (if (!integer_zerop (@1)) @0)) /* X % 1 is always zero. */ (simplify - (trunc_mod @0 integer_onep) + (op @0 integer_onep) { build_zero_cst (type); })) /* x | ~0 -> ~0 */ |