Date: Mon, 28 Sep 1998 18:42:51 +0300 (IDT) From: Eli Zaretskii To: "EFT.Eric Devolder" cc: djgpp AT delorie DOT com Subject: RE: Program goes wrong when optimized under gcc 2.8 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 28 Sep 1998, EFT.Eric Devolder wrote: > I've made the change, but the problem still remain. I really don't know > what is the problem. > > If you want to have a run, just perform Sorry, I don't have time right now to debug this for you. I suggest that you compile it with both -O3 and -g and run the optimized version under a debugger. In fact, since GCC allows to use -g with optimizations, I recommend to always compile your programs with -g -O2/O3 and debug that version. Debugging a non-optimized version, then compiling with optimizations and releasing the software is like learning to swim in shallow water with the safety gear on, then throwing it away when diving into the sea.