Skip to content

Commit b518f40

Browse files
committed
fixup! Add support for machine-dependent builtins
1 parent 2c6329f commit b518f40

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gcc/jit/dummy-frontend.cc

+6
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,10 @@ recording::type* tree_type_to_jit_type (tree type)
789789
{
790790
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_LONG_DOUBLE);
791791
}
792+
else if (type == bfloat16_type_node)
793+
{
794+
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
795+
}
792796
else if (type == dfloat128_type_node)
793797
{
794798
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
@@ -819,6 +823,8 @@ recording::type* tree_type_to_jit_type (tree type)
819823
{
820824
if (TYPE_QUALS (tp) == 0)
821825
{
826+
// FIXME: this is extremely error-prone. This can lead to an infinite recursion if a condition is missing
827+
// above.
822828
recording::type* result = tree_type_to_jit_type (tp);
823829
if (result != NULL)
824830
{

0 commit comments

Comments
 (0)