Fix trap in pointer conversion in op1_range.
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 17 Dec 2020 14:24:11 +0000 (09:24 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Thu, 17 Dec 2020 14:38:31 +0000 (09:38 -0500)
commitc25b504636fec7bf8f181a84af83a52757ba7e89
tree90aad777bbcc9ba96b68e7cd67db802a9bc30f7c
parentd592ee3ada825fe8c022e1d5fa30562b17fc3221
Fix trap in pointer conversion in op1_range.

Processing op1_range for conversion between a non-pointer and pointer
shouldnt do any fancy math.

gcc/
PR tree-optimization/97750
* range-op.cc (operator_cast::op1_range): Handle pointers better.
gcc/testsuite/
* gcc.dg/pr97750.c: New.
gcc/range-op.cc
gcc/testsuite/gcc.dg/pr97750.c [new file with mode: 0644]