re PR middle-end/82875 (ICE at -Os on valid code on x86_64-linux-gnu: in find_widenin...
authorJakub Jelinek <jakub@redhat.com>
Wed, 22 Nov 2017 09:57:28 +0000 (10:57 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 22 Nov 2017 09:57:28 +0000 (10:57 +0100)
commita2998ed1dc4389e2d648ba376f1eca2c165a2717
treee74efc9fd718473642ee90a0a64c09bac23f4832
parent0a770b5907cdb70709356fbbfe5c570010b0b936
re PR middle-end/82875 (ICE at -Os on valid code on x86_64-linux-gnu: in find_widening_optab_handler_and_mode, at optabs-query.c:414)

PR middle-end/82875
* optabs.c (expand_doubleword_mult, expand_binop): Before calling
expand_binop with *mul_widen_optab, make sure at least one of the
operands doesn't have VOIDmode.

* gcc.dg/pr82875.c: New test.
* gcc.c-torture/compile/pr82875.c: New test.

From-SVN: r255050
gcc/ChangeLog
gcc/optabs.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr82875.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr82875.c [new file with mode: 0644]