diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-01-07 20:40:46 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-01-07 20:40:46 +0000 |
commit | 18146f456f5a66b20d9f9f886a38364369b0474c (patch) | |
tree | f4ac466c9b35679f58cc38f46554ecece9ad0d3a /gcc/jit/libgccjit.c | |
parent | f63c7f852468f409205d1d0182b2fba989c38f93 (diff) | |
download | gcc-18146f456f5a66b20d9f9f886a38364369b0474c.zip gcc-18146f456f5a66b20d9f9f886a38364369b0474c.tar.gz gcc-18146f456f5a66b20d9f9f886a38364369b0474c.tar.bz2 |
API extension: add GCC_JIT_UNARY_OP_ABS to enum gcc_jit_unary_op
gcc/jit/ChangeLog:
* docs/topics/expressions.rst (Unary Operations): Add
GCC_JIT_UNARY_OP_ABS.
* jit-playback.c (gcc::jit::playback::context::new_unary_op):
Likewise.
* jit-recording.c (unary_op_strings): Likewise.
* libgccjit.c (gcc_jit_context_new_unary_op): Update checking
of "op" to reflect addition of GCC_JIT_UNARY_OP_ABS.
* libgccjit.h (enum gcc_jit_unary_op): Add GCC_JIT_UNARY_OP_ABS.
* docs/_build/texinfo/libgccjit.texi: Regenerate.
gcc/testsuite/ChangeLog:
* jit.dg/test-expressions.c (make_tests_of_unary_ops): Add test of
GCC_JIT_UNARY_OP_ABS.
(verify_unary_ops): Likewise.
From-SVN: r219321
Diffstat (limited to 'gcc/jit/libgccjit.c')
-rw-r--r-- | gcc/jit/libgccjit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/jit/libgccjit.c b/gcc/jit/libgccjit.c index bd0ae91..6853bb0 100644 --- a/gcc/jit/libgccjit.c +++ b/gcc/jit/libgccjit.c @@ -1180,7 +1180,7 @@ gcc_jit_context_new_unary_op (gcc_jit_context *ctxt, /* LOC can be NULL. */ RETURN_NULL_IF_FAIL_PRINTF1 ( (op >= GCC_JIT_UNARY_OP_MINUS - && op <= GCC_JIT_UNARY_OP_LOGICAL_NEGATE), + && op <= GCC_JIT_UNARY_OP_ABS), ctxt, loc, "unrecognized value for enum gcc_jit_unary_op: %i", op); |