https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66556
--- Comment #4 from renlin at gcc dot gnu.org --- Author: renlin Date: Wed Jul 15 15:13:36 2015 New Revision: 225835 URL: https://gcc.gnu.org/viewcvs?rev=225835&root=gcc&view=rev Log: [PATCH]Fix PR66556. Don't drop side-effect in simplify_const_relational_operation function. gcc/ Backport from mainline. 2015-07-13 Renlin Li <renlin...@arm.com> PR rtl/66556 * simplify-rtx.c (simplify_const_relational_operation): Add side_effects_p checks. gcc/testsuite/ Backport from mainline. 2015-07-13 Renlin Li <renlin...@arm.com> PR rtl/66556 * gcc.c-torture/execute/pr66556.c: New. Added: branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr66556.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/simplify-rtx.c branches/gcc-5-branch/gcc/testsuite/ChangeLog