diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-05-24 19:57:29 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-05-24 21:41:54 +0200 |
commit | ca8cc8273c5646482eedd567288b9f8aa3fb6492 (patch) | |
tree | 91d15ecf31b58f0b5273cf24e6e55f401b0a6913 /gcc/gimple-expr.c | |
parent | 46ed811bcb4b86a81ef3d78ea8cfffc6cd043144 (diff) | |
download | gcc-ca8cc8273c5646482eedd567288b9f8aa3fb6492.zip gcc-ca8cc8273c5646482eedd567288b9f8aa3fb6492.tar.gz gcc-ca8cc8273c5646482eedd567288b9f8aa3fb6492.tar.bz2 |
VARYING ranges of different sizes should not be equal.
VARYING ranges are just normal ranges that span the entire domain. Such
ranges have had end-points for a few releases now, and the fact that the
legacy code was still treating all VR_VARYING the same was an oversight.
This patch fixes the oversight to match the multi-range behavior.
gcc/ChangeLog:
* value-range.cc (irange::legacy_equal_p): Check type when
comparing VR_VARYING types.
(range_tests_legacy): Test comparing VARYING ranges of different
sizes.
Diffstat (limited to 'gcc/gimple-expr.c')
0 files changed, 0 insertions, 0 deletions