float problem with optimization on pcc platforms

Dimitry Andric dimitry@andric.com
Mon Nov 20 13:21:00 GMT 2006


Ivan LAURETTE wrote:
> Compiled with the following options:
>> g++ main.cpp -O -o test
> the program results in:
>> ./test
> 200 0.000000
> 
> Compiled with:
>> g++ main.cpp -g -o test
> the result is:
>> ./test
> 200 200.000000
> 
> What's the problem ?

Can you try running with -S to generate assembler output for both
cases?  I'm not sure if many people here know ppc assembler, but we
might spot obvious errors. :)

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list