Re: [Cegcc-devel] Program crash when optimisation is on

2008-01-21 Thread pgeorges
Pedro Alves a écrit : > pgeorges wrote: >> I ported this program to evc4, and I get the same type of crash. So >> cegcc is ok, but I don't understand why this code works well with gcc >> on x86, and why the crash only occurs with optimisation on. >> > > Sounds a lot like you're having some alignm

Re: [Cegcc-devel] Program crash when optimisation is on

2008-01-20 Thread Pedro Alves
pgeorges wrote: > I ported this program to evc4, and I get the same type of crash. So > cegcc is ok, but I don't understand why this code works well with gcc on > x86, and why the crash only occurs with optimisation on. > Sounds a lot like you're having some alignment problems. x86 is happy de

Re: [Cegcc-devel] Program crash when optimisation is on

2008-01-19 Thread pgeorges
pgeorges a écrit : > Hi, > > I port chess engines to Pocket PC ARM, and for one of them (others are > ok), the program crashes as soon as I compile it with -O1, -O2 or -O3 > option. > I managed to get in which functions it crashes, but as it is a complex > program I am not able currently to prod

[Cegcc-devel] Program crash when optimisation is on

2008-01-19 Thread pgeorges
Hi, I port chess engines to Pocket PC ARM, and for one of them (others are ok), the program crashes as soon as I compile it with -O1, -O2 or -O3 option. I managed to get in which functions it crashes, but as it is a complex program I am not able currently to produce small portion of code that