Skip to content

Commit 8fcc7ae

Browse files
committed
Remove checks for TARGET_AARCH64_MS_ABI
1 parent a6f0003 commit 8fcc7ae

File tree

6 files changed

+1
-45
lines changed

6 files changed

+1
-45
lines changed

gcc/config/aarch64/aarch64-builtins.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,8 +2485,6 @@ aarch64_general_init_builtins (void)
24852485
handle_arm_acle_h ();
24862486
}
24872487

2488-
#if defined (TARGET_AARCH64_MS_ABI)
2489-
24902488
/* Internal method for aarch64_ms_variadic_abi_init_builtins. */
24912489

24922490
void
@@ -2517,8 +2515,6 @@ aarch64_ms_variadic_abi_init_builtins (void)
25172515
BUILT_IN_VA_COPY, BUILT_IN_NORMAL, NULL, fnattr_ms);
25182516
}
25192517

2520-
#endif
2521-
25222518
/* Implement TARGET_BUILTIN_DECL for the AARCH64_BUILTIN_GENERAL group. */
25232519
tree
25242520
aarch64_general_builtin_decl (unsigned code, bool)

gcc/config/aarch64/aarch64-protos.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,10 +1109,7 @@ void aarch64_override_options_internal (struct gcc_options *);
11091109

11101110
const char *aarch64_general_mangle_builtin_type (const_tree);
11111111
void aarch64_general_init_builtins (void);
1112-
1113-
#if defined (TARGET_AARCH64_MS_ABI)
11141112
void aarch64_ms_variadic_abi_init_builtins (void);
1115-
#endif
11161113

11171114
tree aarch64_general_fold_builtin (unsigned int, tree, unsigned int, tree *);
11181115
gimple *aarch64_general_gimple_fold_builtin (unsigned int, gcall *,

gcc/config/aarch64/aarch64.cc

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -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

22882286
static 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

23082304
static 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

75807568
static 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

76017587
static rtx
@@ -21495,8 +21481,6 @@ aarch64_build_builtin_va_list (void)
2149521481
return va_list_type;
2149621482
}
2149721483

21498-
#if defined (TARGET_AARCH64_MS_ABI)
21499-
2150021484
/* Setup the builtin va_list data type and for 64-bit the additional
2150121485
calling convention specific va_list data types. */
2150221486

@@ -21512,8 +21496,6 @@ aarch64_ms_variadic_abi_build_builtin_va_list (void)
2151221496
return ms_va_list_type_node;
2151321497
}
2151421498

21515-
#endif
21516-
2151721499
/* Implement TARGET_EXPAND_BUILTIN_VA_START. */
2151821500
static void
2151921501
aarch64_expand_builtin_va_start (tree valist, rtx nextarg ATTRIBUTE_UNUSED)
@@ -21597,8 +21579,6 @@ aarch64_expand_builtin_va_start (tree valist, rtx nextarg ATTRIBUTE_UNUSED)
2159721579
expand_expr (t, const0_rtx, VOIDmode, EXPAND_NORMAL);
2159821580
}
2159921581

21600-
#if defined (TARGET_AARCH64_MS_ABI)
21601-
2160221582
/* Implement TARGET_EXPAND_BUILTIN_VA_START. */
2160321583

2160421584
static void
@@ -21668,8 +21648,6 @@ aarch64_ms_variadic_abi_canonical_va_list_type (tree type)
2166821648
return NULL_TREE;
2166921649
}
2167021650

21671-
#endif
21672-
2167321651
/* Implement TARGET_GIMPLIFY_VA_ARG_EXPR. */
2167421652

2167521653
static tree
@@ -22047,11 +22025,9 @@ aarch64_setup_incoming_varargs (cumulative_args_t cum_v,
2204722025

2204822026
/* We don't save the size into *PRETEND_SIZE because we want to avoid
2204922027
any complication of having crtl->args.pretend_args_size changed. */
22050-
#if defined (TARGET_AARCH64_MS_ABI)
2205122028
cfun->machine->frame.unaligned_saved_varargs_size = gr_saved * UNITS_PER_WORD;
22052-
#endif
2205322029
cfun->machine->frame.saved_varargs_size
22054-
= (ROUND_UP (gr_saved * UNITS_PER_WORD,
22030+
= (ROUND_UP (cfun->machine->frame.unaligned_saved_varargs_size,
2205522031
STACK_BOUNDARY / BITS_PER_UNIT)
2205622032
+ vr_saved * UNITS_PER_VREG);
2205722033
}
@@ -25250,8 +25226,6 @@ aarch64_post_cfi_startproc (FILE *f, tree ignored ATTRIBUTE_UNUSED)
2525025226
asm_fprintf (f, "\t.cfi_b_key_frame\n");
2525125227
}
2525225228

25253-
#if defined (TARGET_AARCH64_MS_ABI)
25254-
2525525229
/* Implement TARGET_STRICT_ARGUMENT_NAMING.
2525625230

2525725231
Return true if the location where a function argument is passed
@@ -25271,8 +25245,6 @@ aarch64_ms_variadic_abi_strict_argument_naming (cumulative_args_t pcum_v)
2527125245
return hook_bool_CUMULATIVE_ARGS_true(pcum_v);
2527225246
}
2527325247

25274-
#endif
25275-
2527625248
/* Implements TARGET_ASM_FILE_START. Output the assembly header. */
2527725249

2527825250
static void

gcc/config/aarch64/aarch64.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,10 +995,8 @@ struct GTY (()) aarch64_frame
995995
STACK_BOUNDARY. */
996996
HOST_WIDE_INT saved_varargs_size;
997997

998-
#if defined (TARGET_AARCH64_MS_ABI)
999998
/* The same as above except it is the original unaligned stack size. */
1000999
HOST_WIDE_INT unaligned_saved_varargs_size;
1001-
#endif
10021000

10031001
/* The number of bytes between the bottom of the static frame (the bottom
10041002
of the outgoing arguments) and the bottom of the register save area.

gcc/config/mingw/winnt.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ mingw_handle_selectany_attribute (tree *node, tree name, tree, int,
9494
return NULL_TREE;
9595
}
9696

97-
#if defined (TARGET_AARCH64_MS_ABI)
98-
9997
/* Handle a "ms_abi" attribute; arguments as in struct
10098
attribute_spec.handler. */
10199

@@ -118,8 +116,6 @@ aarch64_handle_ms_abi_attribute (tree *node, tree name, tree, int,
118116
return NULL_TREE;
119117
}
120118

121-
#endif
122-
123119

124120
/* Return the type that we should use to determine if DECL is
125121
imported or exported. */

gcc/config/mingw/winnt.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ along with GCC; see the file COPYING3. If not see
2121
#ifndef USED_FOR_TARGET
2222

2323
extern tree mingw_handle_selectany_attribute (tree *, tree, tree, int, bool *);
24-
25-
#if defined (TARGET_AARCH64_MS_ABI)
2624
extern tree aarch64_handle_ms_abi_attribute (tree *, tree, tree, int, bool *);
27-
#endif
2825

2926
extern void mingw_pe_asm_named_section (const char *, unsigned int, tree);
3027
extern void mingw_pe_asm_lto_start (void);

0 commit comments

Comments
 (0)