]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgccjit.h: Uncomment macro definition for testing gcc_jit_context_new_bitcast support
authorVibhav Pant <vibhavp@gmail.com>
Tue, 9 Aug 2022 23:06:43 +0000 (19:06 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 9 Aug 2022 23:06:52 +0000 (19:06 -0400)
(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 <dmalcolm@redhat.com>
gcc/jit/libgccjit.h

index 062f06d691a9eedc5449b95eee788ceffca963c8..b3c389e93f68f0c35b555b79db8cb0fff3cddc45 100644 (file)
@@ -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