From d8973d8ea2b1356219e9c0bfafbfce74593b0376 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 25 Apr 2024 23:09:34 +0200 Subject: [PATCH] Fix wrong reinitialization of `target_builtins` --- gcc/jit/dummy-frontend.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gcc/jit/dummy-frontend.cc b/gcc/jit/dummy-frontend.cc index c5e54fe9dabd8..0398be2c304d7 100644 --- a/gcc/jit/dummy-frontend.cc +++ b/gcc/jit/dummy-frontend.cc @@ -1035,8 +1035,6 @@ jit_end_diagnostic (diagnostic_context *context, gcc::jit::active_playback_ctxt->add_diagnostic (context, *diagnostic); } -static bool builtins_initialized = false; - /* Language hooks. */ static bool @@ -1076,11 +1074,12 @@ jit_langhook_init (void) mpfr_set_default_prec (256); // TODO: check if this is a good fix. - if (!builtins_initialized) - { - targetm.init_builtins (); - builtins_initialized = true; - } + // static bool builtins_initialized = false; + // if (!builtins_initialized) + // { + // targetm.init_builtins (); + // builtins_initialized = true; + // } return true; }