diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2020-09-15 17:33:48 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2020-09-17 12:51:54 +0200 |
commit | 80cbca32464ae05931c0ae425eec7d1f373946eb (patch) | |
tree | 2b70518f772436d94a175d5cc07cfafdd2ebf1c2 /gcc/function.c | |
parent | 27eac88a3f23ef7efbbd725504963cffc71dcad4 (diff) | |
download | gcc-80cbca32464ae05931c0ae425eec7d1f373946eb.zip gcc-80cbca32464ae05931c0ae425eec7d1f373946eb.tar.gz gcc-80cbca32464ae05931c0ae425eec7d1f373946eb.tar.bz2 |
Allow copying of symbolic ranges to an irange.
This fixes an ICE when trying to copy a legacy value_range containing
a symbolic to a multi-range:
min = make_ssa_name (type);
max = build_int_cst (type, 55);
value_range vv (min, max);
int_range<2> vr = vv;
gcc/ChangeLog:
* range-op.cc (multi_precision_range_tests): Normalize symbolics when copying to a
multi-range.
* value-range.cc (irange::copy_legacy_range): Add test.
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions