From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7285 invoked by alias); 27 Mar 2007 18:07:48 -0000 Received: (qmail 7212 invoked by uid 22791); 27 Mar 2007 18:07:47 -0000 X-Spam-Check-By: sourceware.org Received: from e36.co.us.ibm.com (HELO e36.co.us.ibm.com) (32.97.110.154) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Mar 2007 19:07:40 +0100 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e36.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id l2RI7cnG013744 for ; Tue, 27 Mar 2007 14:07:38 -0400 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l2RI7c5m062340 for ; Tue, 27 Mar 2007 12:07:38 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l2RI7bdl025424 for ; Tue, 27 Mar 2007 12:07:38 -0600 Received: from [9.10.86.122] (spokane1.rchland.ibm.com [9.10.86.122]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l2RI7b99025368; Tue, 27 Mar 2007 12:07:37 -0600 Message-ID: <46096124.6050504@us.ibm.com> Date: Tue, 27 Mar 2007 18:07:00 -0000 From: Steven Munroe User-Agent: Mozilla/5.0 (X11; U; Linux ppc64; en-US; rv:1.8.0.9) Gecko/20060906 SUSE/1.8_seamonkey_1.0.7-1.1 SeaMonkey/1.0.7 MIME-Version: 1.0 To: Jakub Jelinek CC: Glibc hackers , Ulrich Drepper , Peter Eberlein Subject: Re: [PATCH] PPC fenv fixes. References: <20070322145345.GZ1826@sunsite.mff.cuni.cz> <4602FCE5.7060203@us.ibm.com> <460941B8.2050501@us.ibm.com> <20070327160708.GA355@devserv.devel.redhat.com> In-Reply-To: <20070327160708.GA355@devserv.devel.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00040.txt.bz2 Jakub Jelinek wrote: > On Tue, Mar 27, 2007 at 11:09:28AM -0500, Steven Munroe wrote: > >> 2007-03-26 Steven Munroe >> >> * sysdeps/powerpc/fpu/feupdateenv.c: Change mask to merge exceptions >> from env. >> > > Will that actually raise SIGFPE signals when exceptions are enabled? > From my reading of POSIX that's what should happen with the > `old' exceptions (and other arches are calling feraiseexcept that will do > that). I didn't add a testcase for it because I'm not 100% sure about that. > > hmmm not unless the SIGFPE is eanbled by the MSR FE bits. So we will need to call __fe_nomask_env() in feupdateenv similar to what we do in feenableexcept(). Probably should add the __fe_mask_env() call for when the application remasks FP exceptions. This allows the hardware to run faster when we are taking the default action. I will rework the patch.