]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix selftest for targets where short and int are the same size.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 25 May 2021 06:36:44 +0000 (08:36 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Tue, 25 May 2021 16:34:22 +0000 (18:34 +0200)
commit41ddc5b0a6b44a9df53a259636fa3b534ae41cbe
tree7655673b12314efbba0006c64fb813196728c877
parentfd97aeb494cdcffe0d21e7f15ab4593662e065bd
Fix selftest for targets where short and int are the same size.

avr-elf seems to use HImode for both integer_type_node and
signed_char_type_node, which is causing the check for different sized
VARYING ranges to fail.

gcc/ChangeLog:

* value-range.cc (range_tests_legacy): Use
build_nonstandard_integer_type instead of int and short.
gcc/value-range.cc