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 Netto X-Patchwork-Id: 79191 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 35CC8385735E for ; Mon, 6 Nov 2023 13:27:55 +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-Google-Smtp-Source: AGHT+IGfI49KVznQc+3vUNN9U6Jp8np3EbI7iNyFhUywfHHqwrUGpovl6wMtKWDCrbyQdcDdyZGvNw== 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+patchwork=sourceware.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})