File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -1035,8 +1035,6 @@ jit_end_diagnostic (diagnostic_context *context,
1035
1035
gcc::jit::active_playback_ctxt->add_diagnostic (context, *diagnostic);
1036
1036
}
1037
1037
1038
- static bool builtins_initialized = false ;
1039
-
1040
1038
/* Language hooks. */
1041
1039
1042
1040
static bool
@@ -1075,12 +1073,16 @@ jit_langhook_init (void)
1075
1073
eventually be controllable by a command line option. */
1076
1074
mpfr_set_default_prec (256 );
1077
1075
1078
- // TODO: check if this is a good fix.
1079
- if (!builtins_initialized)
1080
- {
1081
- targetm.init_builtins ();
1082
- builtins_initialized = true ;
1083
- }
1076
+ // FIXME: This code doesn't work as it erases the `target_builtins` map
1077
+ // without checking if it's already filled before. A better check would be
1078
+ // `if target_builtins.len() == 0` (or whatever this `hash_map` type method
1079
+ // name is).
1080
+ // static bool builtins_initialized = false;
1081
+ // if (!builtins_initialized)
1082
+ // {
1083
+ targetm.init_builtins ();
1084
+ // builtins_initialized = true;
1085
+ // }
1084
1086
1085
1087
return true ;
1086
1088
}
You can’t perform that action at this time.
0 commit comments