From patchwork Sun Nov 9 21:53:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 123861 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 64AEF3858412 for ; Sun, 9 Nov 2025 22:16:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64AEF3858412 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=TsdFH5pd X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sea.source.kernel.org (sea.source.kernel.org [IPv6:2600:3c0a:e001:78e:0:1991:8:25]) by sourceware.org (Postfix) with ESMTPS id E05443858422 for ; Sun, 9 Nov 2025 21:53:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E05443858422 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E05443858422 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2600:3c0a:e001:78e:0:1991:8:25 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1762725226; cv=none; b=JTqBjfqKIqEUjABkcIEbl12bIb6CWoqhgGGKTr9FzxHHPmh2DQqh1bF2PaCLh++Ys/Y85uxrrBMmbkujJY6w+w69sGh8P85/yOgpYLduPIYYB/x9pUYJAVYwNDdhW7LOFb2f94vI1W1RHurRvyHEBqItb3N7KJF795FGn48kUMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1762725226; c=relaxed/simple; bh=06nd6RF4liIwfI6lQxqHwbf4ESFnkcY1LjkocuEkXlI=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=OdJ8gLluNCmaIAQs03oPZi3NkEUNe2fIxAvWklnthqkFB+V5vJm2GevYWXRaB++QhOooQw+m+JXsw+U7o+bwIUryYVQtGQ8Ttd7YeV0KWAZWxCUWxN3AU/OA+dt8juUBg0UqxYMZNQMYPd/XGA2nqXUhl80SvPZgvm1MkY84POo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E05443858422 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 45F754369A for ; Sun, 9 Nov 2025 21:53:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D04AC116B1; Sun, 9 Nov 2025 21:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762725225; bh=06nd6RF4liIwfI6lQxqHwbf4ESFnkcY1LjkocuEkXlI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TsdFH5pda1fnXajYo4CeGaU30HNUIDlxnx0viNtuSW67wzQOWUXozvtFV2bEZVKPC QSopSdY+fIUrBioSvTdtRh2jZvYCxTqcvTGUELxG1iV17DB/UScD+P4vcY47m1dJVM sZU4IX7J0f8hovsObScW6hjXwY1Tfj9Yq+jKLNURl/Q4qBesriHtfQtd0jCTCT8eOm zoWJnHveE8Aqry5MK3b9ZEtbq7P1EWgw2SvDD8vHI84oBHevrke7affIfU0FNlUl1b gXUggj+NjH+NzoCt0kq1PZfzRXkcPxN+9q2AYanzfIWhrct4G/4mEPysbRwZ+SVfAD ztH5TpAEPG9wA== Date: Sun, 9 Nov 2025 22:53:42 +0100 From: Alejandro Colomar To: libc-alpha@sourceware.org Cc: Alejandro Colomar Subject: [PATCH v1 22/35] soft-fp/: Remove _FP_UNREACHABLE macro Message-ID: X-Mailer: git-send-email 2.51.0 References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP 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 It's unconditionally defined as __builtin_unreachable(). Signed-off-by: Alejandro Colomar --- soft-fp/op-common.h | 8 ++++---- soft-fp/soft-fp.h | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/soft-fp/op-common.h b/soft-fp/op-common.h index 6400926b61..f8e6ded958 100644 --- a/soft-fp/op-common.h +++ b/soft-fp/op-common.h @@ -925,7 +925,7 @@ break; \ \ default: \ - _FP_UNREACHABLE; \ + __builtin_unreachable (); \ } \ } \ while (0) @@ -1092,7 +1092,7 @@ break; \ \ default: \ - _FP_UNREACHABLE; \ + __builtin_unreachable (); \ } \ \ /* T = X * Y is zero, infinity or NaN. */ \ @@ -1148,7 +1148,7 @@ break; \ \ default: \ - _FP_UNREACHABLE; \ + __builtin_unreachable (); \ } \ done_fma: ; \ } \ @@ -1216,7 +1216,7 @@ break; \ \ default: \ - _FP_UNREACHABLE; \ + __builtin_unreachable (); \ } \ } \ while (0) diff --git a/soft-fp/soft-fp.h b/soft-fp/soft-fp.h index a949962a63..086fb34a28 100644 --- a/soft-fp/soft-fp.h +++ b/soft-fp/soft-fp.h @@ -47,10 +47,6 @@ # endif #endif -/* For unreachable default cases in switch statements over bitwise OR - of FP_CLS_* values. */ -# define _FP_UNREACHABLE __builtin_unreachable () - #if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) \ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L)) # define _FP_STATIC_ASSERT(expr, msg) \