From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5280 invoked by alias); 1 Aug 2013 13:00:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5066 invoked by uid 48); 1 Aug 2013 13:00:00 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/58020] Code for handling IEEE exceptions Date: Thu, 01 Aug 2013 13:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00021.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58020 --- Comment #11 from Dominique d'Humieres --- > The issues have hopefully been resolved and are now in the package. > See http://mathalacarte.com/hpcconsult > Thanks for the comments made above. Give feedback where it makes sense. When c_control.c is compiled with -O3 or above, IEEE_tests_gfortran.f90 aborts at run time with: Computing (w/x87) D=sqrt(A/B+C), D=0., A=0., B=0., C=0., correctly signals IEEE_INVALID using gfortran Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation. Backtrace for this error: #0 0x1000240c2 #1 0x100025a1e #2 0x7fff80df91b9 Floating exception The test runs without problem with -O2.