Module Name: src Committed By: rin Date: Sat Oct 7 12:07:37 UTC 2023
Modified Files: src/external/gpl3/gcc.old/dist/gcc/config/vax: vax.c Log Message: 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) To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 \ src/external/gpl3/gcc.old/dist/gcc/config/vax/vax.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc.old/dist/gcc/config/vax/vax.c diff -u src/external/gpl3/gcc.old/dist/gcc/config/vax/vax.c:1.17 src/external/gpl3/gcc.old/dist/gcc/config/vax/vax.c:1.18 --- src/external/gpl3/gcc.old/dist/gcc/config/vax/vax.c:1.17 Sat Oct 7 12:05:35 2023 +++ src/external/gpl3/gcc.old/dist/gcc/config/vax/vax.c Sat Oct 7 12:07:37 2023 @@ -46,6 +46,7 @@ along with GCC; see the file COPYING3. #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 (cons #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)