This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/29631] [4.1 regression] bug with promoted induction variable
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2006 23:34:14 -0000
- Subject: [Bug rtl-optimization/29631] [4.1 regression] bug with promoted induction variable
- References: <bug-29631-2744@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from ebotcazou at gcc dot gnu dot org 2006-10-31 23:34 -------
Subject: Bug 29631
Author: ebotcazou
Date: Tue Oct 31 23:34:05 2006
New Revision: 118346
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118346
Log:
PR rtl-optimization/29631
* loop.c (basic_induction_var): Add new parameter inner_mode.
<PLUS>: If set, convert the increment to it before sign-extending.
<CONST_INT>: Likewise.
<SUBREG>: Set it.
<ASHIFTRT>: Likewise. Return 0 if flag_wrapv.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.c-torture/execute/20061031-1.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/loop.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29631