From c0dcbb8f56100af0aa2022ecefa7cbfb74caab19 Mon Sep 17 00:00:00 2001 From: rin Date: Sat, 7 Oct 2023 12:07:37 +0000 Subject: [PATCH] gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [14/21] Add a TARGET_INIT_BUILTINS hook (required to be able to compile gfortran) --- external/gpl3/gcc.old/dist/gcc/config/vax/vax.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/external/gpl3/gcc.old/dist/gcc/config/vax/vax.c b/external/gpl3/gcc.old/dist/gcc/config/vax/vax.c index 2af2980d5caf..98f2053dfd88 100644 --- a/external/gpl3/gcc.old/dist/gcc/config/vax/vax.c +++ b/external/gpl3/gcc.old/dist/gcc/config/vax/vax.c @@ -46,6 +46,7 @@ along with GCC; see the file COPYING3. If not see #include "target-def.h" static void vax_option_override (void); +static void vax_init_builtins (void); static bool vax_legitimate_address_p (machine_mode, rtx, bool); static void vax_file_start (void); static void vax_init_libfuncs (void); @@ -77,6 +78,9 @@ static int vax_bitfield_may_trap_p (const_rtx, unsigned); #undef TARGET_INIT_LIBFUNCS #define TARGET_INIT_LIBFUNCS vax_init_libfuncs +#undef TARGET_INIT_BUILTINS +#define TARGET_INIT_BUILTINS vax_init_builtins + #undef TARGET_ASM_OUTPUT_MI_THUNK #define TARGET_ASM_OUTPUT_MI_THUNK vax_output_mi_thunk #undef TARGET_ASM_CAN_OUTPUT_MI_THUNK @@ -157,6 +161,15 @@ vax_option_override (void) SUBTARGET_OVERRIDE_OPTIONS; #endif } +/* Implement the TARGET_INIT_BUILTINS target hook. */ + +static void +vax_init_builtins (void) +{ +#ifdef SUBTARGET_INIT_BUILTINS + SUBTARGET_INIT_BUILTINS; +#endif +} static void vax_add_reg_cfa_offset (rtx insn, int offset, rtx src)