diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-11-23 15:03:48 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-11-23 15:03:48 +0000 |
commit | 120e92fc5e94fc7d18f6d5ff27a33291cc549b9a (patch) | |
tree | e38bac10c06cc144f6138dd3ac6f55123c11e8ea /gcc | |
parent | 356db29280db321ec601dc64740cc2f07b158813 (diff) | |
download | gcc-120e92fc5e94fc7d18f6d5ff27a33291cc549b9a.zip gcc-120e92fc5e94fc7d18f6d5ff27a33291cc549b9a.tar.gz gcc-120e92fc5e94fc7d18f6d5ff27a33291cc549b9a.tar.bz2 |
[libgccjit] Wrap RETURN_NULL_IF_FAIL_NONNULL_NUMERIC_TYPE in JIT_{BEGIN,END}_STMT.
2017-11-23 Tom de Vries <tom@codesourcery.com>
* libgccjit.c (RETURN_NULL_IF_FAIL_NONNULL_NUMERIC_TYPE): Wrap in
JIT_{BEGIN,END}_STMT.
From-SVN: r255101
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/jit/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/jit/libgccjit.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/jit/ChangeLog b/gcc/jit/ChangeLog index 87b5473..35f2108 100644 --- a/gcc/jit/ChangeLog +++ b/gcc/jit/ChangeLog @@ -1,3 +1,8 @@ +2017-11-23 Tom de Vries <tom@codesourcery.com> + + * libgccjit.c (RETURN_NULL_IF_FAIL_NONNULL_NUMERIC_TYPE): Wrap in + JIT_{BEGIN,END}_STMT. + 2017-10-31 David Malcolm <dmalcolm@redhat.com> * docs/internals/index.rst (Running the test suite): Document diff --git a/gcc/jit/libgccjit.c b/gcc/jit/libgccjit.c index c00acbf..8bad4f6 100644 --- a/gcc/jit/libgccjit.c +++ b/gcc/jit/libgccjit.c @@ -1115,11 +1115,13 @@ gcc_jit_rvalue_get_type (gcc_jit_rvalue *rvalue) result of gcc_jit_context_get_type (GCC_JIT_TYPE_INT). */ #define RETURN_NULL_IF_FAIL_NONNULL_NUMERIC_TYPE(CTXT, NUMERIC_TYPE) \ + JIT_BEGIN_STMT \ RETURN_NULL_IF_FAIL (NUMERIC_TYPE, CTXT, NULL, "NULL type"); \ RETURN_NULL_IF_FAIL_PRINTF1 ( \ NUMERIC_TYPE->is_numeric (), ctxt, NULL, \ "not a numeric type: %s", \ - NUMERIC_TYPE->get_debug_string ()); + NUMERIC_TYPE->get_debug_string ()); \ + JIT_END_STMT /* Public entrypoint. See description in libgccjit.h. |