@@ -2281,8 +2281,6 @@ aarch64_takes_arguments_in_sve_regs_p (const_tree fntype)
22812281 return false;
22822282}
22832283
2284- #if defined(TARGET_AARCH64_MS_ABI)
2285-
22862284/* Return true if a function has variadic arguments. */
22872285
22882286static bool
@@ -2301,8 +2299,6 @@ is_variadic_function_type (const_tree fntype) {
23012299 return arg_count > 0;
23022300}
23032301
2304- #endif
2305-
23062302/* Implement TARGET_FNTYPE_ABI. */
23072303
23082304static const predefined_function_abi &
@@ -7126,8 +7122,6 @@ aarch64_arg_size (const function_arg_info &arg)
71267122 return ROUND_UP (size, UNITS_PER_WORD);
71277123}
71287124
7129- #if defined (TARGET_AARCH64_MS_ABI)
7130-
71317125/* Layout a function argument according to the AAPCS64 rules. The rule
71327126 numbers refer to the rule numbers in the AAPCS64. The Microsoft Arm64
71337127 variadic function call ABI uses only C.12-C15 rules.
@@ -7192,8 +7186,6 @@ aarch64_ms_variadic_abi_layout_arg (cumulative_args_t pcum_v,
71927186 pcum->aapcs_arg_processed = true;
71937187}
71947188
7195- #endif
7196-
71977189/* Layout a function argument according to the AAPCS64 rules. The rule
71987190 numbers refer to the rule numbers in the AAPCS64. ORIG_MODE is the
71997191 mode that was originally given to us by the target hook, whereas the
@@ -7217,12 +7209,10 @@ aarch64_layout_arg (cumulative_args_t pcum_v, const function_arg_info &arg)
72177209 if (pcum->aapcs_arg_processed)
72187210 return;
72197211
7220- #if defined (TARGET_AARCH64_MS_ABI)
72217212 if (pcum->pcs_variant == ARM_PCS_MS_VARIADIC) {
72227213 aarch64_ms_variadic_abi_layout_arg (pcum_v, arg);
72237214 return;
72247215 }
7225- #endif
72267216
72277217 bool warn_pcs_change
72287218 = (warn_psabi
@@ -7573,8 +7563,6 @@ aarch64_finish_sme_mode_switch_args (CUMULATIVE_ARGS *pcum)
75737563 return gen_rtx_PARALLEL (VOIDmode, argvec);
75747564}
75757565
7576- #if defined (TARGET_AARCH64_MS_ABI)
7577-
75787566/* Implement TARGET_ARG_PARTIAL_BYTES. */
75797567
75807568static int
@@ -7594,8 +7582,6 @@ aarch64_arg_partial_bytes (cumulative_args_t pcum_v,
75947582 return 0;
75957583}
75967584
7597- #endif
7598-
75997585/* Implement TARGET_FUNCTION_ARG. */
76007586
76017587static rtx
@@ -21804,8 +21790,6 @@ aarch64_build_builtin_va_list (void)
2180421790 return va_list_type;
2180521791}
2180621792
21807- #if defined (TARGET_AARCH64_MS_ABI)
21808-
2180921793/* Setup the builtin va_list data type and for 64-bit the additional
2181021794 calling convention specific va_list data types. */
2181121795
@@ -21821,8 +21805,6 @@ aarch64_ms_variadic_abi_build_builtin_va_list (void)
2182121805 return ms_va_list_type_node;
2182221806}
2182321807
21824- #endif
21825-
2182621808/* Implement TARGET_EXPAND_BUILTIN_VA_START. */
2182721809static void
2182821810aarch64_expand_builtin_va_start (tree valist, rtx nextarg ATTRIBUTE_UNUSED)
@@ -21906,8 +21888,6 @@ aarch64_expand_builtin_va_start (tree valist, rtx nextarg ATTRIBUTE_UNUSED)
2190621888 expand_expr (t, const0_rtx, VOIDmode, EXPAND_NORMAL);
2190721889}
2190821890
21909- #if defined (TARGET_AARCH64_MS_ABI)
21910-
2191121891/* Implement TARGET_EXPAND_BUILTIN_VA_START. */
2191221892
2191321893static void
@@ -21977,8 +21957,6 @@ aarch64_ms_variadic_abi_canonical_va_list_type (tree type)
2197721957 return NULL_TREE;
2197821958}
2197921959
21980- #endif
21981-
2198221960/* Implement TARGET_GIMPLIFY_VA_ARG_EXPR. */
2198321961
2198421962static tree
@@ -22356,11 +22334,9 @@ aarch64_setup_incoming_varargs (cumulative_args_t cum_v,
2235622334
2235722335 /* We don't save the size into *PRETEND_SIZE because we want to avoid
2235822336 any complication of having crtl->args.pretend_args_size changed. */
22359- #if defined (TARGET_AARCH64_MS_ABI)
2236022337 cfun->machine->frame.unaligned_saved_varargs_size = gr_saved * UNITS_PER_WORD;
22361- #endif
2236222338 cfun->machine->frame.saved_varargs_size
22363- = (ROUND_UP (gr_saved * UNITS_PER_WORD ,
22339+ = (ROUND_UP (cfun->machine->frame.unaligned_saved_varargs_size ,
2236422340 STACK_BOUNDARY / BITS_PER_UNIT)
2236522341 + vr_saved * UNITS_PER_VREG);
2236622342}
@@ -25563,8 +25539,6 @@ aarch64_post_cfi_startproc (FILE *f, tree ignored ATTRIBUTE_UNUSED)
2556325539 asm_fprintf (f, "\t.cfi_b_key_frame\n");
2556425540}
2556525541
25566- #if defined (TARGET_AARCH64_MS_ABI)
25567-
2556825542/* Implement TARGET_STRICT_ARGUMENT_NAMING.
2556925543
2557025544 Return true if the location where a function argument is passed
@@ -25584,8 +25558,6 @@ aarch64_ms_variadic_abi_strict_argument_naming (cumulative_args_t pcum_v)
2558425558 return hook_bool_CUMULATIVE_ARGS_true(pcum_v);
2558525559}
2558625560
25587- #endif
25588-
2558925561/* Implements TARGET_ASM_FILE_START. Output the assembly header. */
2559025562
2559125563static void
0 commit comments