[PATCH][gcc] libgccjit: check result_type in gcc_jit_context_new_binary_op
Andrea Corallo
Andrea.Corallo@arm.com
Tue Jan 1 00:00:00 GMT 2019
Hi all,
I would like to propose this patch to check for the return type of
binary operators to be a numeric type.
Not doing so can lead the compiler into funny crashes.
Does not introduce regressions running make check-jit.
OK for trunk?
Bests
Andrea
2019-06-09 Andrea Corallo andrea.corallo@arm.com
* libgccjit.c (gcc_jit_context_new_binary_op): Check result_type to be a
numeric type.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binary_op_check_result_type.patch
Type: text/x-diff
Size: 587 bytes
Desc: binary_op_check_result_type.patch
URL: <http://gcc.gnu.org/pipermail/jit/attachments/20190101/315fa2f9/attachment.bin>
More information about the Jit
mailing list