From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2209) id D4AFF3858401; Tue, 9 Aug 2022 23:08:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4AFF3858401 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: David Malcolm To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-8674] libgccjit.h: Uncomment macro definition for testing gcc_jit_context_new_bitcast support X-Act-Checkin: gcc X-Git-Author: Vibhav Pant X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 79a86a608691621659b3ce3a24a72aeea4054668 X-Git-Newrev: 92f2582f3ec7b833a5f6b70ef05af4c7e511b860 Message-Id: <20220809230847.D4AFF3858401@sourceware.org> Date: Tue, 9 Aug 2022 23:08:47 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2022 23:08:48 -0000 https://gcc.gnu.org/g:92f2582f3ec7b833a5f6b70ef05af4c7e511b860 commit r12-8674-g92f2582f3ec7b833a5f6b70ef05af4c7e511b860 Author: Vibhav Pant Date: Tue Aug 9 19:06:43 2022 -0400 libgccjit.h: Uncomment macro definition for testing gcc_jit_context_new_bitcast support (cherry-picked from r13-2004-g9385cd9c74cf66) 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/ChangeLog: * libgccjit.h (LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast): Move definition out of comment. Signed-off-by: David Malcolm Diff: --- 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