Commit e0624990 by Andrew Pinski Committed by Andrew Pinski

re PR middle-end/21331 (Incorrect folding of comparison)

2004-05-21  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/21331
        PR tree-opt/21293
        * gcc.c-torture/compile/pr21293.c: New test.
        * gcc.c-torture/execute/pr21331.c: New test.

From-SVN: r100045
parent c6891dd8
2004-05-21 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/21331
PR tree-opt/21293
* gcc.c-torture/compile/pr21293.c: New test.
* gcc.c-torture/execute/pr21331.c: New test.
2004-05-20 Richard Henderson <rth@redhat.com>
* g++.dg/other/stdarg3.C: Spell "hpux*" correctly.
......
/* Testcase from Dale Johannesen <dalej@gcc.gnu.org>. */
struct {
double x[1];
} g;
void k( double *, double*);
void h(int Tmp8)
{
int i;
for(i = 1;i <= Tmp8;i++)
k(&g.x[ + -1],&g.x[ Tmp8 + -1]);
}
void abort (void);
int bar (void) { return -1; }
unsigned long
foo ()
{ unsigned long retval;
retval = bar ();
if (retval == -1) return 0;
return 3; }
main ()
{ if (foo () != 0) abort ();
return 0; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment