[PATCH][gcc] libgccjit: check result_type in gcc_jit_context_new_unary_op
Andrea Corallo
Andrea.Corallo@arm.com
Tue Jan 1 00:00:00 GMT 2019
Hi all,
second version of the patch here addressing comments.
make check-jit runs clean
Bests
Andrea
gcc/jit/ChangeLog
2019-07-18 Andrea Corallo <andrea.corallo@arm.com>
* jit-recording.c (unary_op_reproducer_strings): Make it extern.
(binary_op_reproducer_strings): Likewise.
* jit-recording.h (unary_op_reproducer_strings): Likewise.
(binary_op_reproducer_strings): Likewise.
* libgccjit.c (gcc_jit_context_new_unary_op): Check result_type to be a
numeric type.
* libgccjit.c (gcc_jit_context_new_binary_op): Improve 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:
Adjust error message.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unary_op_check_result_type.patch
Type: text/x-diff
Size: 4977 bytes
Desc: unary_op_check_result_type.patch
URL: <http://gcc.gnu.org/pipermail/jit/attachments/20190101/06191b9d/attachment.bin>
More information about the Jit
mailing list