[Bug middle-end/48814] [4.5/4.6/4.7/4.8 Regression] Incorrect scalar increment result
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 16 11:50:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48814
--- Comment #12 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-16 11:48:54 UTC ---
Author: rguenth
Date: Fri Mar 16 11:48:48 2012
New Revision: 185465
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185465
Log:
2012-03-16 Richard Guenther <rguenther@suse.de>
Kai Tietz <ktietz@redhat.com>
PR middle-end/48814
* gimplify.c (gimplify_self_mod_expr): Evaluate postfix
side-effects completely in the pre-queue and use a temporary
for the result.
* gcc.c-torture/execute/pr48814-1.c: New test.
* gcc.c-torture/execute/pr48814-2.c: New test.
* gcc.dg/tree-ssa/assign-1.c: New test.
* gcc.dg/tree-ssa/assign-2.c: New test.
* gcc.dg/tree-ssa/assign-3.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr48814-1.c
trunk/gcc/testsuite/gcc.c-torture/execute/pr48814-2.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/assign-1.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/assign-2.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/assign-3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list