aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit
diff options
context:
space:
mode:
authorVibhav Pant <vibhavp@gmail.com>2022-08-09 11:30:18 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2022-08-09 11:36:36 -0400
commit9385cd9c74cf6662f43038aafe4d2467899f322e (patch)
tree094bb7374707f04c63b0f0903ee9ee8708dd6767 /gcc/jit
parent16877cc2006ede41486bebc70459bbbd60d5edc9 (diff)
downloadgcc-9385cd9c74cf6662f43038aafe4d2467899f322e.zip
gcc-9385cd9c74cf6662f43038aafe4d2467899f322e.tar.gz
gcc-9385cd9c74cf6662f43038aafe4d2467899f322e.tar.bz2
libgccjit.h: 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/ChangeLog: * libgccjit.h (LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast): Move definition out of comment. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/jit')
-rw-r--r--gcc/jit/libgccjit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/jit/libgccjit.h b/gcc/jit/libgccjit.h
index 062f06d..b3c389e 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