[gccsdk] GCC 4.7.4 Rel 1 Dev 2014-01-08: initial comments and feedback.

Lee Noar leenoar at sky.com
Sun Mar 2 04:39:21 PST 2014


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.





More information about the gcc mailing list