www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/18/02:40:28

From: "Michael Schuster" <Schuster AT eev DOT e-technik DOT uni-erlangen DOT de>
Organization: LS f. Elektr. Energieversorgung
To: Cees Wesseling <Wesseling AT frw DOT ruu DOT nl>, djgpp AT delorie DOT com
Date: Wed, 18 Sep 1996 08:06:44 MEZ
Subject: Re: Optimize switch -O2 create FPU error
Message-Id: <371FC8B468C@merlin2.e-technik.uni-erlangen.de>

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019