This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: float problem with optimization on pcc platforms


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]