[Bug tree-optimization/77309] [5/6/7 Regression] wrong code at -Os and above on x86_64-linux-gnu (in the 64-bit mode)

bernds at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 7 16:59:00 GMT 2016


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

--- Comment #3 from Bernd Schmidt <bernds at gcc dot gnu.org> ---
Author: bernds
Date: Mon Nov  7 16:59:11 2016
New Revision: 241912

URL: https://gcc.gnu.org/viewcvs?rev=241912&root=gcc&view=rev
Log:
        PR rtl-optimization/77309
        * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
        don't assume an equality comparison for plain COMPARE.
        (simplify_comparison): Pass a more accurate code to
        make_compound_operation.

testsuite/
        PR rtl-optimization/77309
        * gcc.dg/torture/pr77309.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr77309.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list