From patchwork Mon Nov 6 13:27:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 741393 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1083736wrr; Mon, 6 Nov 2023 05:27:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpybXng7VqhUWFAoNAMOUdW+ebfmIcJ2zUT+WIRmoBO37GwjmLN5K9BZgNJ0OnhA941Df4 X-Received: by 2002:a1f:9bc9:0:b0:49a:6dc0:5a89 with SMTP id d192-20020a1f9bc9000000b0049a6dc05a89mr26419283vke.5.1699277268254; Mon, 06 Nov 2023 05:27:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699277268; cv=pass; d=google.com; s=arc-20160816; b=Pri91hktqUjQRDEVoayWLLksY6dBHBefTzdVoIdGjPEB3LUBEXXrwCVmkdmXUlEEej KIE35JFH91lcm2l0FN6J6/yJGJamN7GEWhB4+3xbD79smZrF1KZcbmyngt8dvJjHkryi OpfjMfZw+K7trOIPAXIaxQtjdVD8WdC/0CqjVc8tqfL/CScsL8c77s1NIQKx2FOtXUyC j6Ly6/ds2q7l2i8FWzEeKCMvdS17DjyyrcW0+cMIrAjcZ55BvH4r2605YIuZS47AxdfJ zGGIfI9THG1DI7yBjR9DgfEvDujaivwP/zTYvMafGbArnQSOOWrDAS7331Jg3yr9MvLr ZOtg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=dAGhyw5HHu+H6+bHRnW8EePkEXjIB3hBIAUm3XJpJj4=; fh=01HD8dtuIqmy9rV/eMJuvD8dAGq4TXBqBjIxWaMzNQI=; b=Bp3ixns8rir0yrHofQKdEgssHRXAME03IIGsHQxUQcl9b/xJqLSgm183YfIBBC7Fa8 eewDokNHdR9vlxxkezTJvewpiJWBQlzcTVanN1j8fU4pA/m8lGpbyTeUsE04nVLY/oNr uDFHNnOEjLqycVz7i+X1wcFhtWvVrEmNZpgYzZXp/VFsVtgfyDrKGw3w6hEXJb7HPvI/ Enyh//ZDw+dA0XqRKHRRbx/KKB8RENMKioeeSHlGm1rTDUWUnnbLnz4tSqR6sACIXlaT 6OOWK+ElaD8ZV8+o2nFtRFdCppFfVvqlX1QnexeDhUf9fVtRQzAFm6shAswpix6BlKFN okIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rdRGpfUQ; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c8-20020a0ceb48000000b0067073944baesi5544865qvq.335.2023.11.06.05.27.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 05:27:48 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rdRGpfUQ; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB3EF3875DEA for ; Mon, 6 Nov 2023 13:27:46 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by sourceware.org (Postfix) with ESMTPS id 8559B3858428 for ; Mon, 6 Nov 2023 13:27:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8559B3858428 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8559B3858428 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::729 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699277247; cv=none; b=r/jUzsAYRp1RhyV35m5oScEQ3C41iku9m4UG6VFibI9W/ZIOwlSYWEvw8FanJ5avwwZ5Wro8K7R6hMcCDzEaTTKNIozceuaFQ6NRWv72O+sJ0ecupM/rGf/4PNH9fGfyF+kXjePt9SzgF/PigJbR78qRFrMQecBgvVuZ5ZPakJ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699277247; c=relaxed/simple; bh=Tl+E39BbNxh7zjvyhvq68XGIyNGGF8DfSBkhO1ffuUQ=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=ZCOEUyTlWPcp1hs1KUldBA7xg8dHCjKRT8OeEvTyQ5AW6G+mo5EnyfkSXE89qem39iqeKsixs5LcFkyf6z28+TVNWLC2w2DbivlkvzIIqUDYlONQe0h+33rc2YYT20rNChssJru891XoOMTVGKFx+y6PDKoYd3/Zc4smdd/LvDA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-779f2718accso319293885a.1 for ; Mon, 06 Nov 2023 05:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699277245; x=1699882045; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=dAGhyw5HHu+H6+bHRnW8EePkEXjIB3hBIAUm3XJpJj4=; b=rdRGpfUQStuAyOGb7ixwbDcJrCqAENZKRWbE4ZBEwGFI4lrtPBcBsivdd1awKyr2ck 7S8C9upisBZwt6MC4MSZkPs9gOtDZJqMwrfTllXt7jyqk7omQ7ukf+fldiLkod83xX4o Cg3hIxPewFbsReHuD/pvDCZzVh5mkiS8Enrd8hBpnn43+lSwhlfJADAk8ZYjj7slSLU9 Rn+FbKWW4HOcevW4Ehd0PcPb7HIl13jZwcOCiZD0LeiCpHdgQX2dWp0Araqm0p7p0AmM kqywb8AR3SpgmDi0gAfX2FGsYhsT9Wc8JNOUhpbwWnZwc6jQydj9T1jW6+IgXdS5u+73 MNyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699277245; x=1699882045; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dAGhyw5HHu+H6+bHRnW8EePkEXjIB3hBIAUm3XJpJj4=; b=T9QWR8jtzpppCQC1vbuHlNwhHYZ0/QA5aXNcja7pEZNEDcWzD0m5zdFhzlg5IemzmX UcxkHWcHY2BWINLMt3PVqGPzw4OqsbWGjbd6HGcPjuM5echhjxk7jU8YI2dnQOXgCr8q cf9Dq317SphMy/ytX0pWy6zXDdzg3YtzlJRshbLbwfm5EBWLcKmTnEHv7soMJ3tjYRmP gPNlLMSvqgGjgFd+0lm6ElfmeJ1kpQ0RmwFSKAUBvNeVjdsk7hsWl+cZdDKGzTHnwICj x6fk8aSRVGn1p08WnTNAJc16IihqXnmdNBfBkcc6dSy0Upe7dvIRqcpW0VtkmPsADWRl QEQQ== X-Gm-Message-State: AOJu0YxlBZ+f/4nloHch1G/heqoh0uJYDRIV8Nc4HFIf5l8YTjbG/jxP lkYZM2Ljbs7TSH2/y1igSaixp7W59M/8WdnvbiLqwg== X-Received: by 2002:a05:620a:8c0f:b0:778:9a8e:57c with SMTP id qz15-20020a05620a8c0f00b007789a8e057cmr21621155qkn.78.1699277245090; Mon, 06 Nov 2023 05:27:25 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c0:a715:c1a0:7281:6384:2ee9]) by smtp.gmail.com with ESMTPSA id k3-20020a05620a142300b0076f12fcb0easm3272722qkj.2.2023.11.06.05.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 05:27:24 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Bruno Haible Subject: [PATCH v2 4/7] manual: Clarify undefined behavior of feenableexcept (BZ 31019) Date: Mon, 6 Nov 2023 10:27:10 -0300 Message-Id: <20231106132713.953501-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231106132713.953501-1-adhemerval.zanella@linaro.org> References: <20231106132713.953501-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org From: Bruno Haible Explain undefined behavior of feenableexcept in a special case. Reviewed-by: Carlos O'Donell --- manual/arith.texi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manual/arith.texi b/manual/arith.texi index fa7110e992..be24c20493 100644 --- a/manual/arith.texi +++ b/manual/arith.texi @@ -1176,6 +1176,12 @@ enabled, the status of the other exceptions is not changed. The function returns the previous enabled exceptions in case the operation was successful, @code{-1} otherwise. + +Note: Enabling traps for an exception for which the exception flag is +currently already set (@pxref{Status bit operations}) has unspecified +consequences: it may or may not trigger a trap immediately. +@c It triggers a trap immediately on powerpc*, at the next floating- +@c instruction on i386, and not at all on the other CPUs. @end deftypefun @deftypefun int fedisableexcept (int @var{excepts})