Mail Archives: djgpp/1996/09/18/02:40:28
> Carlo Nervi wrote:
> > Finally I was able to catch the problem: by using -O2 or -O3
> > optimization switches the problem persist, whereas by using -O
> > the problem disappear totally.
> > Anybody had similar experience or it is due to a bug already solved
> > which a don't know?
Cees Wesseling wrote:
> Yes, I did have the same problem, in a piece of code that has very
> long and complicated expression. My guess is that this version of
> gcc just flaws on the optimization. I simply wait for the next
> release. You might want to try some code re-arranging to solve the
> problem.
I had a similar behaviour of one of my programms. When using the -O2
or -03 switch it crashed. The solution was simple. I didn't
initialize a pointer- that didn't have an effect on the
programm when compiling with the lower optimization.
After I did initialize the pointer everything was fine with O2 and
O3, too.
Michi
**********************************************
Michael Schuster
E-mail: Schuster AT eev DOT e-technik DOT uni-erlangen DOT de
Universitaet Erlangen/Nuernberg
Lehrstuhl fuer Elektrische Energieversorgung
Cauerstrasse 4
91058 Erlangen
http://www.eev.e-technik.uni-erlangen.de/
**********************************************
- Raw text -