[Bug rtl-optimization/80385] [5/6/7 Regression] Segfault in commutative_operand_precedence() rtlanal.c:3373

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 11 17:20:00 GMT 2017


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 11 17:19:56 2017
New Revision: 246850

URL: https://gcc.gnu.org/viewcvs?rev=246850&root=gcc&view=rev
Log:
        PR rtl-optimization/80385
        * simplify-rtx.c (simplify_unary_operation_1): Don't transform
        (not (neg X)) into (plus X -1) for complex or non-integral modes.

        * g++.dg/opt/pr80385.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/opt/pr80385.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/simplify-rtx.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list