mid20031111143720.GK27498@v...">
* Robert Cragie (rcc@j...) wrote:
I had problems with diag_printf() with optimisations turned on but works OK
with optimisation turned off. I am not using multi-tasking facilities of
eCos yet.
Has anyone else experienced problems using optimisation (-02) with the
compiler?
Yes, there were reports of problems compiling eCos with -O2 optimizations
on opencores gcc-3.2.3 compiler. i think going to -O solved it. (it in the
archives a few months ago)
I encountered bugs with both long long and (soft) double floating point
support using gcc 3.1 and have made some fixes to the compiler to solve
these problems. I haven't submitted my patches because my changes
modify the ABI, rendering object files incompatible with code compiled
by the unmodified compiler. (The calling convention I use is more
efficient than the existing 3.1 version: 64-bit values (long longs and
doubles) are passed by value in registers rather than as references.)