From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id BBAAF3858D1E; Tue, 31 Oct 2023 12:34:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBAAF3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1698755641; bh=TAyBgCzdIs/U/f4C9m48Lmo5GpbUZ2VX1/SNSEUz5HY=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=twlPY+an+nxL96b+HbeIPZYAVflpmphOoI0/B2wH0dmyn0DK3FSxkFM9qMQxPZSJB RuMIKVKCCrFA9H8fMpa5mZ14RKkP0gPHZ1GJL/T4CLaEkIRMxK/0yHDT0emDDMyoUS bqhBdNIZg1vCWwsjy+WdwHk/Ks5d3mQ6qFqTAuIo= Received: by calimero.vinschen.de (Postfix, from userid 500) id EF73DA80BE5; Tue, 31 Oct 2023 13:33:59 +0100 (CET) Date: Tue, 31 Oct 2023 13:33:59 +0100 From: Corinna Vinschen To: Bruno Haible Cc: cygwin@cygwin.com Subject: Re: feraiseexcept does not raise traps in Cygwin Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: Bruno Haible , cygwin@cygwin.com References: <39807966.XM6RcZxFsP@nimes> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <39807966.XM6RcZxFsP@nimes> List-Id: Hi Bruno, On Oct 25 11:21, Bruno Haible via Cygwin wrote: > Hi, > > Seen on > - Cygwin 3.4.6 or 2.9.0 on x86_64. > - Cygwin 2.9.0 on i386. > > According to ISO C 23 ยง 7.6.4.3 > "The feraiseexcept function attempts to raise the supported floating-point > exceptions represented by its argument. 266) > Footnote 266) The effect is intended to be similar to that of floating-point > exceptions raised by arithmetic operations. Hence, implementation extensions > associated with raising a floating-point exception (for example, enabled > traps or IEC 60559 alternate exception handling) should be honored." > > This does not work. How to reproduce: > [...] Thanks for the report and the simple testcase. I checked in a patch. It will be in the test build cygwin-3.5.0-0.450.g2ef627c46eb2 in an hour or two, if you want to give it a try. Thanks again, Corinna