From patchwork Sat Jul 23 08:01:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 139 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f503:0:0:0:0:0 with SMTP id q3csp586067wro; Sat, 23 Jul 2022 01:02:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uOO0gYGlURRfqv+0JV1QxaWZiUAJP14avgzfW8XFmuxVQwGQv9Ez6bEcMBXI+9c0ENhx2V X-Received: by 2002:a17:907:2d86:b0:72b:4aee:7729 with SMTP id gt6-20020a1709072d8600b0072b4aee7729mr2703516ejc.143.1658563326610; Sat, 23 Jul 2022 01:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658563326; cv=none; d=google.com; s=arc-20160816; b=Cc2aT5jenJOn24tgC9KNPkYB8OoGREVGxIDLBTzuwIZkZLH0EPE8myNr9X6axRBQdx ZNKsHMKDc/xLOSVRq0LWb6nmnWph4O/WQ6k4en30rCqcVhAmMzVZ7lD5xibdAVTtrGKu e99YmT9wV6bcwy53PwibynYatcXVDUJpXEHAgln1QpyLaUzoq7Fhw8APHb4U/++Tf6Ok pYXtyt6nzoD0C51Gw9ihtwxAQhIMQQcEd3wRi/rFB2h6aK7S+FsyuTlwn8fECdAeLXpw 7Oe9IeJJ6ch+WZGz9JR9OYqSpdu4PdbzZ2ntgXMwqRc9AJ27loM0katRwloVi75doO1B xtSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:user-agent:date:to:subject:message-id:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=BuGMANPt9pXJXLojSp+BtoEc/46MAH8XJWMSu2BCxR4=; b=KMDMaMl1iVoJXGnBCPu5SY3ehe+neXCtHKgI6+87abDdE6OnSxf5ucPSDf+N0NdZXm IBaJ4J7wFs0OtIC1D90IRQZPJhQA69OaKHPZe6AY2Dkwxfl7UNEIn3uyxUR2tVGmZErt h2Q9zGpt72tp28HrUU9D38mr9fRU5bDm/weZgoGH+nFgWy+uuDjfCb0kh20EDNE+SiOh xwVoYnbbxNoxH4Nr5cGLD87wVE5c9rZmBRbf/2ANlhrbh395gMLeKXo/vuXTtPEbt5IC 6YIlYfiI3PksOd3erd7NbWVjsrrL/r0tMitDGytdxvLFGX9ecJnsboDrZhbOMKvXFLAR 3QoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=PMVNW0I9; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id sd6-20020a1709076e0600b0072f1cccbc62si8840795ejc.641.2022.07.23.01.02.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 01:02:06 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=PMVNW0I9; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 37B373858006 for ; Sat, 23 Jul 2022 08:02:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37B373858006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1658563325; bh=BuGMANPt9pXJXLojSp+BtoEc/46MAH8XJWMSu2BCxR4=; h=Subject:To:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=PMVNW0I9nB5TowF86tYHikMA8vOHrbAhtEKS8oXpjdGV1uEsTB/baoyimxWc1KKCd bCogYRrdovQ5MaCu0tyOOOdPXdm6y/YR3J9s0CsJw6b3NCvBotDPdjO3lcnLSV0WI1 +0uNSfa0eEdXXEFw+3jdT3scQXpucDUDKbJQbv00= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 14D5F3858C50; Sat, 23 Jul 2022 08:01:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 14D5F3858C50 Received: by mail-pf1-x42d.google.com with SMTP id c3so6187485pfb.13; Sat, 23 Jul 2022 01:01:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:reply-to:to:cc:date :user-agent:mime-version; bh=BuGMANPt9pXJXLojSp+BtoEc/46MAH8XJWMSu2BCxR4=; b=7OBi2mZUyT6KdL2Krs3I0+IVz3tsExDwYLcOS4u5AOoZZeFfGCJt4afd10yIutpFpF TCB3hEw/cCrocmsGMYabVkP5aVpGgI/9at/HT/qcjNjwd8GRP8xyYohI3bEDdRMuLNmr /McCEum8eHxAAPiSQ+DRtGH6GTNdxWDLMxqqaolaba+P2eoFyRYy9AA3hEBSMUjqKxaF iwsqAD0gSnljNHd9kqM5L+2SBLNfqC6Wnj5Vta6ydhdIDx55z75GTHURNMi6wdsdEbhl licmRCBEldcIGp5mcBeXs7rsPFicDky0SOOPmiAtNcHZEK/yG6B8MyBEYpQFjy9HaG6w VsPQ== X-Gm-Message-State: AJIora+WvsrsRERcEm9U5+7jvshGD5ax9bHyoHn08ynigKjZ7QjniRMx bGe5FM1q3ALLfgX/vUSVNEFxOs9TH5Awig== X-Received: by 2002:a05:6a00:114f:b0:528:2c7a:634c with SMTP id b15-20020a056a00114f00b005282c7a634cmr3576517pfm.41.1658563279184; Sat, 23 Jul 2022 01:01:19 -0700 (PDT) Received: from ?IPv6:2401:4900:1f35:eaf8:973a:17fe:b639:fdd4? ([2401:4900:1f35:eaf8:973a:17fe:b639:fdd4]) by smtp.gmail.com with ESMTPSA id y195-20020a6264cc000000b00528d4f647f2sm5329016pfb.91.2022.07.23.01.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 01:01:18 -0700 (PDT) Message-ID: <8ce556135d6366aeb434794e7247e8ca806ea736.camel@gmail.com> Subject: [PATCH] libgccjit.h: Make the macro definition for testing gcc_jit_context_new_bitcast correctly available. To: jit@gcc.gnu.org Date: Sat, 23 Jul 2022 13:31:15 +0530 User-Agent: Evolution 3.44.3 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vibhav Pant via Gcc-patches From: "Li, Pan2 via Gcc-patches" Reply-To: vibhavp@gmail.com Cc: gcc-patches@gcc.gnu.org Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1739129699086285898?= X-GMAIL-MSGID: =?utf-8?q?1739129699086285898?= The macro definition for LIBGCCJIT_HAVE_gcc-jit_context_new_bitcast was earlier located in the documentation comment for gcc_jit_context_new_bitcast, making it unavailable to code that consumed libgccjit.h. This patch moves the definition out of the comment, making it effective. Thanks, Vibhav From 13f7b010962d57a9a133b657838727486e4241c9 Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Sat, 23 Jul 2022 13:18:05 +0530 Subject: [[PATCH] libgccjit.h: Make the macro definition for testing gcc_jit_context_new_bitcast correctly available.] Uncomment macro definition for testing gcc_jit_context_new_bitcast support The macro definition for LIBGCCJIT_HAVE_gcc-jit_context_new_bitcast was earlier located in the documentation comment for gcc_jit_context_new_bitcast, making it unavailable to code that consumed libgccjit.h. This commit moves the definition out of the comment, making it effective. --- gcc/jit/libgccjit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/jit/libgccjit.h b/gcc/jit/libgccjit.h index 062f06d691a..b3c389e93f6 100644 --- a/gcc/jit/libgccjit.h +++ b/gcc/jit/libgccjit.h @@ -1252,10 +1252,10 @@ gcc_jit_context_new_cast (gcc_jit_context *ctxt, gcc_jit_rvalue *rvalue, gcc_jit_type *type); -/* Reinterpret a value as another type. - #define LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast +/* Reinterpret a value as another type. + The types must be of the same size. This API entrypoint was added in LIBGCCJIT_ABI_21; you can test for its -- 2.37.1