This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36008] [4.3/4.4 Regression] Function produces wrong results when inlined.
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Apr 2008 16:20:08 -0000
- Subject: [Bug tree-optimization/36008] [4.3/4.4 Regression] Function produces wrong results when inlined.
- References: <bug-36008-16093@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from jakub at gcc dot gnu dot org 2008-04-24 16:20 -------
Subject: Bug 36008
Author: jakub
Date: Thu Apr 24 16:19:22 2008
New Revision: 134636
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134636
Log:
PR tree-optimization/36008
* fold-const.c (try_move_mult_to_index): If s == NULL, divide
the original op1, rather than delta by step.
* gcc.c-torture/execute/20080424-1.c: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/20080424-1.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/fold-const.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36008