From: Carlo Nervi Newsgroups: comp.os.msdos.djgpp Subject: Optimize switch -O2 create FPU error Date: Mon, 16 Sep 1996 11:05:11 -0700 Organization: Laboratory of Molecular Electrochemistry Lines: 16 Message-ID: <323D96D7.5DA0@lem.ch.unito.it> NNTP-Posting-Host: chpc110.ch.unito.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Dear all, I'm new to this newsgroup and djgpp v2.00, but I had some experiences on old djgpp v1.12maint5. My problem is the following: my program works fine under djgpp v1.12, but exit with SIGFPE exception under djgpp v2.00. Using fsdb something strange happen: sometimes it exit with a Underflow exception, but sometime else running under fsdb the program runs, but with wrong numeric results. 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? Thanks for help, Carlo Nervi