From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AC6EF3858439; Wed, 1 Nov 2023 01:29:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC6EF3858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1698802173; bh=1Nhma5f7Vr2gN9JLqDz/y63x+LD4vMKgheZv2EpjJ3k=; h=From:To:Subject:Date:From; b=OA+suHtA7Ptm1vtpgRKfHLaxQf3QaRxTMh8qrmvFRHM9XVoN7rSnWJeEMbmTcIfao AwVwNtSxckkOeTrE4BO00+GhwyHGOEILXvbmMlw2tCIySm+0rKMREt7FFB1/UUWLGt M9qijfaBWxGKIgmP38OyCZNrY4AwiqrACOl3zU/E= From: "bruno at clisp dot org" To: glibc-bugs@sourceware.org Subject: [Bug manual/31019] New: The documentation of feenableexcept is incomplete Date: Wed, 01 Nov 2023 01:29:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: manual X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31019 Bug ID: 31019 Summary: The documentation of feenableexcept is incomplete Product: glibc Version: 2.35 Status: UNCONFIRMED Severity: normal Priority: P2 Component: manual Assignee: unassigned at sourceware dot org Reporter: bruno at clisp dot org CC: mtk.manpages at gmail dot com Target Milestone: --- Created attachment 15202 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D15202&action=3Ded= it test case foo.c The attached simple program, that enables floating-point exception traps on FE_INVALID, when the exception flag for FE_INVALID is already set, show CPU dependent behaviour. How to reproduce: 1. Compile it with: ${CC-gcc} -ggdb -Wall foo.c -lm 2. Run it with: ./a.out; echo $? Results with glibc: x86_64 0 i386 Floating point exception (core dumped) arm64 3 armelhf 3 armel 3 hppa 0 ia64 0 loongarch64 0 m68k 0 mips 0 mips64 0 powerpc Floating point exception powerpc64 Floating point exception powerpc64le Floating point exception riscv64 3 s390 0 s390x 0 sh4 0 sparc 0 sparc64 0 I think that it is not possible to make i386 and powerpc* behave like the o= ther CPU types; see https://lists.gnu.org/archive/html/bug-gnulib/2023-10/msg00104.html for why. Nevertheless it is surprising to see platform-dependent behaviour. This was also the reason for bug#16209. Since the function feenableexcept is not defined by a standard, the definit= ive documentation is the glibc manual. If there is a situation where the results are undefined or platform-dependent, the documentation should tell so. --=20 You are receiving this mail because: You are on the CC list for the bug.=