This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/77309] [5/6 Regression] wrong code at -Os and above on x86_64-linux-gnu (in the 64-bit mode)
- From: "bernds at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Dec 2016 13:02:00 +0000
- Subject: [Bug tree-optimization/77309] [5/6 Regression] wrong code at -Os and above on x86_64-linux-gnu (in the 64-bit mode)
- Auto-submitted: auto-generated
- References: <bug-77309-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77309
--- Comment #6 from Bernd Schmidt <bernds at gcc dot gnu.org> ---
Author: bernds
Date: Mon Dec 12 13:01:28 2016
New Revision: 243550
URL: https://gcc.gnu.org/viewcvs?rev=243550&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr77309.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/combine.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog