Skip to content

Commit 954bd74

Browse files
committed
Comment code for FLOATN since we now support all float types
1 parent 8b43115 commit 954bd74

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
@@ -1174,13 +1174,6 @@ recording::type* tree_type_to_jit_type (tree type)
11741174
// For __builtin_sysv_va_copy.
11751175
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
11761176
}
1177-
for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++)
1178-
{
1179-
if (type == FLOATN_NX_TYPE_NODE (i))
1180-
{
1181-
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
1182-
}
1183-
}
11841177
if (type == void_type_node)
11851178
{
11861179
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID);
@@ -1336,6 +1329,15 @@ recording::type* tree_type_to_jit_type (tree type)
13361329
}
13371330
else
13381331
{
1332+
// TODO: remove if not needed anymore.
1333+
/*for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++)
1334+
{
1335+
if (type == FLOATN_NX_TYPE_NODE (i))
1336+
{
1337+
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
1338+
}
1339+
}*/
1340+
13391341
// Attempt to find an unqualified type when the current type has qualifiers.
13401342
tree tp = TYPE_MAIN_VARIANT (type);
13411343
for ( ; tp != NULL ; tp = TYPE_NEXT_VARIANT (tp))

0 commit comments

Comments
 (0)