On 02/03/14 12:18, Duncan Moore wrote:
On 28/02/2014 12:32, Lee Noar wrote:
On 27/02/14 12:18, Duncan Moore wrote:
4) This program loops infinitely:
#include <stdio.h>
int main(void) {
for (int i=0;i<6;++i)
printf("%i\n",i);
return 0;
}
*gcc -std=c99 abc.c -O2
*a/out
-O1 and -O3 are OK!
I can't reproduce this. I've built using the cross and native compilers
running under rpcemu, but the program exits correctly.
Can anyone else reproduce the infinite loop? What's the best way to
resolve this
Do you have the latest SharedUnixLibrary module installed? Should be
v1.12.
Perhaps if you email me your a/out binary I can try it here and see if
I get the same result and I can compare it against mine.
would the ELF help?
The ELF? I'm not sure what you're referring to there.
Lee.
_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK