diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2020-10-16 15:02:42 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2020-10-16 15:05:11 -0400 |
commit | 4a135bd987e7bff6d3b94efa085e0c246348b486 (patch) | |
tree | 2b9ce23bed5a4a1e81d411e70ffa119a934f2e7c /gcc/fortran/iresolve.c | |
parent | ccb4f20cbee1756c464033bbdda2f27b6aa2a63f (diff) | |
download | gcc-4a135bd987e7bff6d3b94efa085e0c246348b486.zip gcc-4a135bd987e7bff6d3b94efa085e0c246348b486.tar.gz gcc-4a135bd987e7bff6d3b94efa085e0c246348b486.tar.bz2 |
Don't assert on a negative shift.
Don't assert, simply Return false for negative shifts as we can't tell
anything about the operand.
PR tree-optimization/97462
gcc/
* range-op.cc (operator_lshift::op1_range): Don't trap on negative
shifts.
gcc/testsuite/
* gcc.dg/pr97462.c: New file.
Diffstat (limited to 'gcc/fortran/iresolve.c')
0 files changed, 0 insertions, 0 deletions