[Bug middle-end/82875] [8 Regression] ICE at -Os on valid code on x86_64-linux-gnu: in find_widening_optab_handler_and_mode, at optabs-query.c:414
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 22 09:58:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82875
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Nov 22 09:57:28 2017
New Revision: 255050
URL: https://gcc.gnu.org/viewcvs?rev=255050&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr82875.c
trunk/gcc/testsuite/gcc.dg/pr82875.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/optabs.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list