aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-06-22 15:20:14 +0200
committerJakub Jelinek <jakub@redhat.com>2021-06-22 15:20:14 +0200
commit92d9c9e705f039f42734139c233202888d2bf01b (patch)
treef58341cdb5aa5070fd0b0e1c5c546bed9f1f3c79 /gcc/function.c
parentca1f9f22854049d6f9cab5b4bfbc46edbcb5c990 (diff)
downloadgcc-92d9c9e705f039f42734139c233202888d2bf01b.zip
gcc-92d9c9e705f039f42734139c233202888d2bf01b.tar.gz
gcc-92d9c9e705f039f42734139c233202888d2bf01b.tar.bz2
fold-const: Return corresponding integral type for OFFSET_TYPE in range_check_type [PR101162]
Andrew's recent r12-1608-g2f1686ff70b25fceb04ca2ffc0a450fb682913ef change to fail verification on various unary and binary operations with OFFSET_TYPE revealed that e.g. switchconv happily performs multiplications and additions in OFFSET_TYPE. 2021-06-22 Jakub Jelinek <jakub@redhat.com> Andrew Pinski <apinski@marvell.com> PR tree-optimization/101162 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer types. * g++.dg/opt/pr101162.C: New test.
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions