This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: basic_induction_var change
- To: Franz dot Sirl-kernel at lauterbach dot com (Franz Sirl)
- Subject: Re: basic_induction_var change
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Thu, 27 May 1999 01:32:05 +0100 (BST)
- Cc: law at cygnus dot com, mark at codesourcery dot com, egcs-patches at egcs dot cygnus dot com, amylaar at cygnus dot co dot uk
> My testcase was derived from code in xscreensaver, the LSM entry in the source
> says "Copying-Policy: BSD". But maybe Jörn can construct an example?
Here's an execute test:
int sum;
void
g (int i)
{
sum += i;
}
void
f(int j)
{
int i;
for (i = 0; i < 9; i++)
{
j++;
g (j);
j = 9;
}
}
int
main ()
{
f (0);
if (sum != 81)
abort ();
exit (0);
}