Skip to content

Commit

Permalink
Fix for double initialization of Aarch64 builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Apr 29, 2024
1 parent a306607 commit 44b7998
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gcc/config/aarch64/aarch64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15484,11 +15484,19 @@ aarch64_insn_cost (rtx_insn *insn, bool speed)
static void
aarch64_init_builtins ()
{
// TODO: find a better fix than this to avoid the failure:
// SET_TYPE_VECTOR_SUBPARTS, in tree.h:4258
static bool builtins_initialized = false;
if (builtins_initialized)
return;

aarch64_general_init_builtins ();
aarch64_sve::init_builtins ();
#ifdef SUBTARGET_INIT_BUILTINS
SUBTARGET_INIT_BUILTINS;
#endif

builtins_initialized = true;
}

/* Implement TARGET_FOLD_BUILTIN. */
Expand Down

0 comments on commit 44b7998

Please sign in to comment.