Date: Thu, 25 Jun 1998 13:54:58 +0300 (IDT) From: Eli Zaretskii To: Nicolas Blais cc: djgpp AT delorie DOT com Subject: Re: Optimize does not work with Allegro In-Reply-To: <35919180.58DB8C3B@netrover.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 24 Jun 1998, Nicolas Blais wrote: > Hi, remember that problem with Allegro I had, well I found out that > using -O3 made it crash. Without any optimization switches, my program > works fine. It is probably some bug in your program that is exposed by compiler optimizations. You need to debug your code at the point of the crash. Since GCC allows to compile with both -O3 and -g, you can run the optimized code under a debugger and see what goes wrong at the locus of the crash. The crash traceback printed when the program crashes should tell you where to start debugging, if you run SYMIFY on it. (If you don't know what SYMIFY is, read section 9.2 of the DJGPP FAQ list, which is available as v2/faq210b.zip from the same place you get DJGPP.)