Skip to content

Commit

Permalink
Comment code for FLOATN since we now support all float types
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Sep 6, 2024
1 parent bcafd46 commit a0cb762
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions gcc/jit/dummy-frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1173,13 +1173,6 @@ recording::type* tree_type_to_jit_type (tree type)
// For __builtin_sysv_va_copy.
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
}
for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++)
{
if (type == FLOATN_NX_TYPE_NODE (i))
{
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
}
}
if (type == void_type_node)
{
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID);
Expand Down Expand Up @@ -1335,6 +1328,15 @@ recording::type* tree_type_to_jit_type (tree type)
}
else
{
// TODO: remove if not needed anymore.
/*for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++)
{
if (type == FLOATN_NX_TYPE_NODE (i))
{
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
}
}*/

// Attempt to find an unqualified type when the current type has qualifiers.
tree tp = TYPE_MAIN_VARIANT (type);
for ( ; tp != NULL ; tp = TYPE_NEXT_VARIANT (tp))
Expand Down

0 comments on commit a0cb762

Please sign in to comment.