@@ -345,9 +345,9 @@ jit_error (gcc::jit::recording::context *ctxt,
345
345
gcc::jit::recording::type::accepts_writes_from virtual function on
346
346
LTYPE. */
347
347
348
- static bool
349
- compatible_types ( gcc :: jit :: recording :: type * ltype ,
350
- gcc :: jit :: recording :: type * rtype )
348
+ bool
349
+ gcc_jit_compatible_types ( gcc_jit_type * ltype ,
350
+ gcc_jit_type * rtype )
351
351
{
352
352
return ltype -> accepts_writes_from (rtype );
353
353
}
@@ -2119,7 +2119,7 @@ gcc_jit_context_new_binary_op (gcc_jit_context *ctxt,
2119
2119
RETURN_NULL_IF_FAIL (a , ctxt , loc , "NULL a" );
2120
2120
RETURN_NULL_IF_FAIL (b , ctxt , loc , "NULL b" );
2121
2121
RETURN_NULL_IF_FAIL_PRINTF4 (
2122
- a -> get_type ()-> unqualified () == b -> get_type ()-> unqualified ( ),
2122
+ gcc_jit_compatible_types (( gcc_jit_type * ) a -> get_type (), ( gcc_jit_type * ) b -> get_type ()),
2123
2123
ctxt , loc ,
2124
2124
"mismatching types for binary op:"
2125
2125
" a: %s (type: %s) b: %s (type: %s)" ,
@@ -2228,8 +2228,8 @@ gcc_jit_context_new_call (gcc_jit_context *ctxt,
2228
2228
param -> get_type ()-> get_debug_string ());
2229
2229
2230
2230
RETURN_NULL_IF_FAIL_PRINTF6 (
2231
- compatible_types ( param -> get_type (),
2232
- arg -> get_type ()),
2231
+ gcc_jit_compatible_types (( gcc_jit_type * ) param -> get_type (),
2232
+ ( gcc_jit_type * ) arg -> get_type ()),
2233
2233
ctxt , loc ,
2234
2234
"mismatching types for argument %d of function \"%s\":"
2235
2235
" assignment to param %s (type: %s) from %s (type: %s)" ,
@@ -2317,8 +2317,8 @@ gcc_jit_context_new_call_through_ptr (gcc_jit_context *ctxt,
2317
2317
param_type -> get_debug_string ());
2318
2318
2319
2319
RETURN_NULL_IF_FAIL_PRINTF6 (
2320
- compatible_types ( param_type ,
2321
- arg -> get_type ()),
2320
+ gcc_jit_compatible_types (( gcc_jit_type * ) param_type ,
2321
+ ( gcc_jit_type * ) arg -> get_type ()),
2322
2322
ctxt , loc ,
2323
2323
"mismatching types for argument %d of fn_ptr: %s:"
2324
2324
" assignment to param %d (type: %s) from %s (type: %s)" ,
@@ -2770,8 +2770,8 @@ gcc_jit_block_add_assignment (gcc_jit_block *block,
2770
2770
RETURN_IF_FAIL (lvalue , ctxt , loc , "NULL lvalue" );
2771
2771
RETURN_IF_FAIL (rvalue , ctxt , loc , "NULL rvalue" );
2772
2772
RETURN_IF_FAIL_PRINTF4 (
2773
- compatible_types ( lvalue -> get_type (),
2774
- rvalue -> get_type ()),
2773
+ gcc_jit_compatible_types (( gcc_jit_type * ) lvalue -> get_type (),
2774
+ ( gcc_jit_type * ) rvalue -> get_type ()),
2775
2775
ctxt , loc ,
2776
2776
"mismatching types:"
2777
2777
" assignment to %s (type: %s) from %s (type: %s)" ,
@@ -2816,8 +2816,8 @@ gcc_jit_block_add_assignment_op (gcc_jit_block *block,
2816
2816
op );
2817
2817
RETURN_IF_FAIL (rvalue , ctxt , loc , "NULL rvalue" );
2818
2818
RETURN_IF_FAIL_PRINTF4 (
2819
- compatible_types ( lvalue -> get_type (),
2820
- rvalue -> get_type ()),
2819
+ gcc_jit_compatible_types (( gcc_jit_type * ) lvalue -> get_type (),
2820
+ ( gcc_jit_type * ) rvalue -> get_type ()),
2821
2821
ctxt , loc ,
2822
2822
"mismatching types:"
2823
2823
" assignment to %s (type: %s) involving %s (type: %s)" ,
@@ -2973,9 +2973,9 @@ gcc_jit_block_end_with_return (gcc_jit_block *block,
2973
2973
gcc ::jit ::recording ::function * func = block -> get_function ();
2974
2974
RETURN_IF_FAIL (rvalue , ctxt , loc , "NULL rvalue" );
2975
2975
RETURN_IF_FAIL_PRINTF4 (
2976
- compatible_types (
2977
- func -> get_return_type (),
2978
- rvalue -> get_type ()),
2976
+ gcc_jit_compatible_types (
2977
+ ( gcc_jit_type * ) func -> get_return_type (),
2978
+ ( gcc_jit_type * ) rvalue -> get_type ()),
2979
2979
ctxt , loc ,
2980
2980
"mismatching types:"
2981
2981
" return of %s (type: %s) in function %s (return type: %s)" ,
@@ -3973,8 +3973,8 @@ gcc_jit_context_new_rvalue_from_vector (gcc_jit_context *ctxt,
3973
3973
RETURN_NULL_IF_FAIL_PRINTF1 (
3974
3974
elements [i ], ctxt , loc , "NULL elements[%zi]" , i );
3975
3975
RETURN_NULL_IF_FAIL_PRINTF4 (
3976
- compatible_types ( element_type ,
3977
- elements [i ]-> get_type ()),
3976
+ gcc_jit_compatible_types (( gcc_jit_type * ) element_type ,
3977
+ ( gcc_jit_type * ) elements [i ]-> get_type ()),
3978
3978
ctxt , loc ,
3979
3979
"mismatching type for element[%zi] (expected type: %s): %s (type: %s)" ,
3980
3980
i ,
0 commit comments