This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/23282] [4.0 Regression] wrong results at -O on x86


------- Additional Comments From belyshev at depni dot sinp dot msu dot ru  2005-08-08 08:00 -------
Confirmed, smaller testcase:

void abort (void);

int main (void)
{
  int j, a, b;
  
  for (j = 0; j < 2; j++)
    {
      a = j * j;
      b = a - 2 * j;
    }
  if (b != -1)
    abort ();
  return 0;
}

This bug fixed (or masked) on mainline by this patch:

2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>

	PR tree-optimization/19401
	* tree-flow.h (tree_unroll_loops_completely): Declaration changed.
	* tree-ssa-loop-ivcanon.c (enum unroll_level): New.
        ...


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakdver at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|4.0.0                       |4.0.0 4.0.1 4.0.2
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-08 08:00:14
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23282


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]