@@ -356,9 +356,9 @@ jit_error (gcc::jit::recording::context *ctxt,
356
356
gcc::jit::recording::type::accepts_writes_from virtual function on
357
357
LTYPE. */
358
358
359
- static bool
360
- compatible_types ( gcc :: jit :: recording :: type * ltype ,
361
- gcc :: jit :: recording :: type * rtype )
359
+ bool
360
+ gcc_jit_compatible_types ( gcc_jit_type * ltype ,
361
+ gcc_jit_type * rtype )
362
362
{
363
363
return ltype -> accepts_writes_from (rtype );
364
364
}
@@ -1461,8 +1461,8 @@ gcc_jit_global_set_initializer_value (gcc_jit_lvalue *global,
1461
1461
global -> get_debug_string ());
1462
1462
1463
1463
RETURN_IF_FAIL_PRINTF5 (
1464
- compatible_types ( global -> get_type (),
1465
- value -> get_type ()),
1464
+ gcc_jit_compatible_types (( gcc_jit_type * ) global -> get_type (),
1465
+ ( gcc_jit_type * ) value -> get_type ()),
1466
1466
NULL , NULL ,
1467
1467
"mismatching types for global \"%s\":"
1468
1468
" assignment to global %s (type: %s) from %s (type: %s)" ,
@@ -1736,8 +1736,8 @@ gcc_jit_context_new_rvalue_from_struct (gcc_jit_context *ctxt,
1736
1736
gcc ::jit ::recording ::type * field_type
1737
1737
= struct_type -> get_fields ()-> get_field (i )-> get_type ();
1738
1738
RETURN_NULL_IF_FAIL_PRINTF4 (
1739
- compatible_types ( field_type ,
1740
- fields [i ]-> get_type ()),
1739
+ gcc_jit_compatible_types (( gcc_jit_type * ) field_type ,
1740
+ ( gcc_jit_type * ) fields [i ]-> get_type ()),
1741
1741
ctxt , loc ,
1742
1742
"mismatching type for field[%zi] (expected type: %s): %s (type: %s)" ,
1743
1743
i ,
@@ -1794,8 +1794,8 @@ gcc_jit_context_new_rvalue_from_array (gcc_jit_context *ctxt,
1794
1794
RETURN_NULL_IF_FAIL_PRINTF1 (
1795
1795
elements [i ], ctxt , loc , "NULL elements[%zi]" , i );
1796
1796
RETURN_NULL_IF_FAIL_PRINTF4 (
1797
- compatible_types ( element_type ,
1798
- elements [i ]-> get_type ()),
1797
+ gcc_jit_compatible_types (( gcc_jit_type * ) element_type ,
1798
+ ( gcc_jit_type * ) elements [i ]-> get_type ()),
1799
1799
ctxt , loc ,
1800
1800
"mismatching type for array[%zi] (expected type: %s): %s (type: %s)" ,
1801
1801
i ,
@@ -1878,7 +1878,7 @@ gcc_jit_context_new_binary_op (gcc_jit_context *ctxt,
1878
1878
RETURN_NULL_IF_FAIL (a , ctxt , loc , "NULL a" );
1879
1879
RETURN_NULL_IF_FAIL (b , ctxt , loc , "NULL b" );
1880
1880
RETURN_NULL_IF_FAIL_PRINTF4 (
1881
- compatible_types ( a -> get_type (), b -> get_type ()),
1881
+ gcc_jit_compatible_types (( gcc_jit_type * ) a -> get_type (), ( gcc_jit_type * ) b -> get_type ()),
1882
1882
ctxt , loc ,
1883
1883
"mismatching types for binary op:"
1884
1884
" a: %s (type: %s) b: %s (type: %s)" ,
@@ -1987,8 +1987,8 @@ gcc_jit_context_new_call (gcc_jit_context *ctxt,
1987
1987
param -> get_type ()-> get_debug_string ());
1988
1988
1989
1989
RETURN_NULL_IF_FAIL_PRINTF6 (
1990
- compatible_types ( param -> get_type (),
1991
- arg -> get_type ()),
1990
+ gcc_jit_compatible_types (( gcc_jit_type * ) param -> get_type (),
1991
+ ( gcc_jit_type * ) arg -> get_type ()),
1992
1992
ctxt , loc ,
1993
1993
"mismatching types for argument %d of function \"%s\":"
1994
1994
" assignment to param %s (type: %s) from %s (type: %s)" ,
@@ -2076,8 +2076,8 @@ gcc_jit_context_new_call_through_ptr (gcc_jit_context *ctxt,
2076
2076
param_type -> get_debug_string ());
2077
2077
2078
2078
RETURN_NULL_IF_FAIL_PRINTF6 (
2079
- compatible_types ( param_type ,
2080
- arg -> get_type ()),
2079
+ gcc_jit_compatible_types (( gcc_jit_type * ) param_type ,
2080
+ ( gcc_jit_type * ) arg -> get_type ()),
2081
2081
ctxt , loc ,
2082
2082
"mismatching types for argument %d of fn_ptr: %s:"
2083
2083
" assignment to param %d (type: %s) from %s (type: %s)" ,
@@ -2528,8 +2528,8 @@ gcc_jit_block_add_assignment (gcc_jit_block *block,
2528
2528
RETURN_IF_FAIL (lvalue , ctxt , loc , "NULL lvalue" );
2529
2529
RETURN_IF_FAIL (rvalue , ctxt , loc , "NULL rvalue" );
2530
2530
RETURN_IF_FAIL_PRINTF4 (
2531
- compatible_types ( lvalue -> get_type (),
2532
- rvalue -> get_type ()),
2531
+ gcc_jit_compatible_types (( gcc_jit_type * ) lvalue -> get_type (),
2532
+ ( gcc_jit_type * ) rvalue -> get_type ()),
2533
2533
ctxt , loc ,
2534
2534
"mismatching types:"
2535
2535
" assignment to %s (type: %s) from %s (type: %s)" ,
@@ -2574,8 +2574,8 @@ gcc_jit_block_add_assignment_op (gcc_jit_block *block,
2574
2574
op );
2575
2575
RETURN_IF_FAIL (rvalue , ctxt , loc , "NULL rvalue" );
2576
2576
RETURN_IF_FAIL_PRINTF4 (
2577
- compatible_types ( lvalue -> get_type (),
2578
- rvalue -> get_type ()),
2577
+ gcc_jit_compatible_types (( gcc_jit_type * ) lvalue -> get_type (),
2578
+ ( gcc_jit_type * ) rvalue -> get_type ()),
2579
2579
ctxt , loc ,
2580
2580
"mismatching types:"
2581
2581
" assignment to %s (type: %s) involving %s (type: %s)" ,
@@ -2731,9 +2731,9 @@ gcc_jit_block_end_with_return (gcc_jit_block *block,
2731
2731
gcc ::jit ::recording ::function * func = block -> get_function ();
2732
2732
RETURN_IF_FAIL (rvalue , ctxt , loc , "NULL rvalue" );
2733
2733
RETURN_IF_FAIL_PRINTF4 (
2734
- compatible_types (
2735
- func -> get_return_type (),
2736
- rvalue -> get_type ()),
2734
+ gcc_jit_compatible_types (
2735
+ ( gcc_jit_type * ) func -> get_return_type (),
2736
+ ( gcc_jit_type * ) rvalue -> get_type ()),
2737
2737
ctxt , loc ,
2738
2738
"mismatching types:"
2739
2739
" return of %s (type: %s) in function %s (return type: %s)" ,
@@ -3731,8 +3731,8 @@ gcc_jit_context_new_rvalue_from_vector (gcc_jit_context *ctxt,
3731
3731
RETURN_NULL_IF_FAIL_PRINTF1 (
3732
3732
elements [i ], ctxt , loc , "NULL elements[%zi]" , i );
3733
3733
RETURN_NULL_IF_FAIL_PRINTF4 (
3734
- compatible_types ( element_type ,
3735
- elements [i ]-> get_type ()),
3734
+ gcc_jit_compatible_types (( gcc_jit_type * ) element_type ,
3735
+ ( gcc_jit_type * ) elements [i ]-> get_type ()),
3736
3736
ctxt , loc ,
3737
3737
"mismatching type for element[%zi] (expected type: %s): %s (type: %s)" ,
3738
3738
i ,
0 commit comments