This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Gcc -O(1-3) produce worse code on MPC5200


I use macraiger gcc port for PPC. When I compile my software with gcc -O0
zero the program work as excpected
But I as soon as I use optimization option like -O2 my software crash. I
can't figure what case this until now. My assumtion is that the stack is got
currupted.

I use uC-II RTOS as a kernel.

Has someone experience such case? 
Have someone some hints for me?

Thanks,
Amir


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