From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 913 invoked by alias); 5 Nov 2013 17:05:27 -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 30071 invoked by uid 48); 5 Nov 2013 17:03:25 -0000 From: "richard.koolhans at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/58020] Code for handling IEEE exceptions Date: Tue, 05 Nov 2013 17:05: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: richard.koolhans at gmail dot com 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg00412.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58020 --- Comment #21 from richard.koolhans at gmail dot com --- I'm not really an expert on any architecture. But there is an important po= int that I think should not be missed. According to Van Snyder, a long-time me= mber of the Fortran standards committee, if there is no support for the IEEE exceptions, a module must be provided that enables a program to query wheth= er such support is provided. I strongly recommend that such an intrinsic modu= le be provided for architectures that are not supported.=20=20 In the test driver I've attempted to have full coverage. In particular the status flags from the FPU and SSE units are "or-ed" or =E2=80=9Cand-ed=E2= =80=9D together to catch or clear exceptions that may occur in either place. Since there are = no 64 bit status registers, I don't see any difference in code for 32 vs 64-bi= t.=20 Little use of the FPU is made in the machine code these days. But this fea= ture was important because an assembly code could use the FPU, have an exception, and only dealing with the SSE flags would miss it. Your question in 2. was not answered, but I don=E2=80=99t understand these= issues.=20 There is a document IEEE.pdf in the distributed package that has some discussion about decisions made to deal with threads. Richard J. Hanson >>From gcc-bugs-return-433636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 05 17:09:55 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8917 invoked by alias); 5 Nov 2013 17:09:55 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6159 invoked by uid 48); 5 Nov 2013 17:07:53 -0000 From: "kcc at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/58718] Invalid check in libsanitizer Date: Tue, 05 Nov 2013 17:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kcc at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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-11/txt/msg00413.txt.bz2 Content-length: 251 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58718 --- Comment #6 from Kostya Serebryany --- Can we keep this bug in one place, please? Let https://code.google.com/p/address-sanitizer/issues/detail?id=239 be the primary one