[PATCH][gcc] libgccjit: check result_type in gcc_jit_context_new_unary_op
Andrea Corallo
Andrea.Corallo@arm.com
Thu Jul 18 15:12:00 GMT 2019
Hi all,
I've just realized that what we has been done recently for
gcc_jit_context_new_binary_op should be done also for the unary
version.
This patch checks at record time for the result type of
gcc_jit_context_new_unary_op to be numeric type plus add a testcase
for the new check.
make check-jit runs clean
Is it okay for trunk?
Bests
Andrea
gcc/jit/ChangeLog
2019-07-18 Andrea Corallo <andrea.corallo@arm.com>
* libgccjit.c (gcc_jit_context_new_unary_op): Check result_type to be a
numeric type.
* libgccjit.c (gcc_jit_context_new_binary_op): Fix nit in error message.
gcc/testsuite/ChangeLog
2019-07-04 Andrea Corallo <andrea.corallo@arm.com>
* jit.dg/test-error-gcc_jit_context_new_unary_op-bad-res-type.c:
New testcase.
* jit.dg/test-error-gcc_jit_context_new_binary_op-bad-res-type.c:
Fix nit in error message.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unary_op_check_result_type.patch
Type: text/x-diff
Size: 3266 bytes
Desc: unary_op_check_result_type.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190718/9117c800/attachment.bin>
More information about the Gcc-patches
mailing list