[Bug rtl-optimization/17860] Wrong generated code for loop with inlined function inside.

rguenth at tat dot physik dot uni-tuebingen dot de gcc-bugzilla@gcc.gnu.org
Wed Oct 6 13:15:00 GMT 2004


------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de  2004-10-06 13:15 -------
Proper testcase:

extern void abort();
int foo=100;
inline int f ()
{
 foo = 0;
}
void main ()
{
 int i;
 for (i = 0; i < foo; i++)
     f ();
 if (i != 1)
   abort();
}

Also the rtl-optimization bug may be latent on mainline, how do we know?

-- 


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



More information about the Gcc-bugs mailing list