PR tree-optimization/93986 - ICE on mixed-precision wide_int arguments
authorMartin Sebor <msebor@redhat.com>
Wed, 4 Mar 2020 22:14:49 +0000 (15:14 -0700)
committerMartin Sebor <msebor@redhat.com>
Wed, 4 Mar 2020 22:14:49 +0000 (15:14 -0700)
commit10bbbb591cfe6cac200e926a73f3b8065147ce84
treee474548ec09e6e9eaf3898560057ebe44a73673b
parent3c1645a379e405c7ce33060846fa424373b1f5f4
PR tree-optimization/93986 - ICE on mixed-precision wide_int arguments

gcc/testsuite/ChangeLog:

PR tree-optimization/93986
        * gcc.dg/pr93986.c: New test.

gcc/ChangeLog:

PR tree-optimization/93986
        * tree-ssa-strlen.c (maybe_warn_overflow): Convert all wide_int
        operands to the same precision widest_int to avoid ICEs.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr93986.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c