[Bug rtl-optimization/88563] [7 Regression] wrong code with -O2 -fno-code-hoisting -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-forwprop -fno-tree-fre -fno-tree-pre -fno-tree-vrp

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 30 11:23:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88563

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Aug 30 11:22:27 2019
New Revision: 275081

URL: https://gcc.gnu.org/viewcvs?rev=275081&root=gcc&view=rev
Log:
        Backported from mainline
        2018-12-21  Jakub Jelinek  <jakub@redhat.com>

        PR rtl-optimization/88563
        * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Swap innermode
        and mode arguments to convert_modes.  Likewise swap mode and word_mode
        arguments.  Handle both arguments with VOIDmode before convert_modes
        of one of them.  Formatting fixes.

        * gcc.dg/pr88563.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr88563.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/expr.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list