]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR tree-optimization/77309 (wrong code at -Os and above on x86_64-linux...
authorBernd Schmidt <bernds@redhat.com>
Mon, 12 Dec 2016 13:01:28 +0000 (13:01 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 12 Dec 2016 13:01:28 +0000 (13:01 +0000)
commite361da2c6fd293b43a44e66f4283fac7c6d0c5ff
treee6c5ddb6bf5603c2dcb71e956f88b9a61a3d3a4e
parent0b77c93621f4b63ee5c1cc7ae06ec2a8bb9ea681
backport: re PR tree-optimization/77309 (wrong code at -Os and above on x86_64-linux-gnu (in the 64-bit mode))

Backport from mainline
2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>

        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.

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

From-SVN: r243550
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr77309.c [new file with mode: 0644]