Skip to content

Commit a0cb762

Browse files
committed
Comment code for FLOATN since we now support all float types
1 parent bcafd46 commit a0cb762

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

gcc/jit/dummy-frontend.cc

+9-7
Original file line numberDiff line numberDiff line change
@@ -1173,13 +1173,6 @@ recording::type* tree_type_to_jit_type (tree type)
11731173
// For __builtin_sysv_va_copy.
11741174
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
11751175
}
1176-
for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++)
1177-
{
1178-
if (type == FLOATN_NX_TYPE_NODE (i))
1179-
{
1180-
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
1181-
}
1182-
}
11831176
if (type == void_type_node)
11841177
{
11851178
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID);
@@ -1335,6 +1328,15 @@ recording::type* tree_type_to_jit_type (tree type)
13351328
}
13361329
else
13371330
{
1331+
// TODO: remove if not needed anymore.
1332+
/*for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++)
1333+
{
1334+
if (type == FLOATN_NX_TYPE_NODE (i))
1335+
{
1336+
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
1337+
}
1338+
}*/
1339+
13381340
// Attempt to find an unqualified type when the current type has qualifiers.
13391341
tree tp = TYPE_MAIN_VARIANT (type);
13401342
for ( ; tp != NULL ; tp = TYPE_NEXT_VARIANT (tp))

0 commit comments

Comments
 (0)