From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27422 invoked from network); 31 May 2023 09:25:46 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 31 May 2023 09:25:46 -0000 Received: (qmail 1742 invoked by uid 550); 31 May 2023 09:23:43 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 1217 invoked from network); 31 May 2023 09:23:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=kvr0JhShhjptkQ1h0drJQGv470mBa06CU5BCkKfdaWY=; b=KOelgCa3IKVV2VlOksu9hUcr8FiH7qZPFJlMTS6T1P9yTdiN7+NMrAhF LGIq9jqvJfhlywwg3raPMw1CzCBrrluX8bwCFLACFEWypzE0KmLyCSvqy cHZSjLd315McU1rscSjcK5bB5N9aFeHH9PRzOo/gm95UIk/hOMbTdtnaZ M=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=Jens.Gustedt@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.00,205,1681164000"; d="scan'208";a="57428759" From: Jens Gustedt To: musl@lists.openwall.com Date: Wed, 31 May 2023 11:23:02 +0200 Message-Id: <61787ab80d581f7611360d7aad0f04195198988b.1685522953.git.Jens.Gustedt@inria.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [C23 divers headers 15/17] C23: add the unreachable macro This was not previously reserved and uses a common word, so protect it. --- include/stddef.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/stddef.h b/include/stddef.h index f25b8639..f77a1b49 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -24,4 +24,8 @@ #define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 )) #endif +#if __STDC_VERSION__ >= 202000L +#define unreachable() __builtin_unreachable() +#endif + #endif -- 2.34.1