@@ -77,11 +77,6 @@ along with GCC; see the file COPYING3. If not see
7777// #undef LOCAL_LABEL_PREFIX
7878// #define LOCAL_LABEL_PREFIX (TARGET_64BIT ? "." : "")
7979
80- #include <stdbool.h>
81- #ifdef __MINGW32__
82- #include <stdio.h>
83- #endif
84-
8580#define TARGET_ASM_NAMED_SECTION mingw_pe_asm_named_section
8681
8782/* Select attributes for named sections. */
@@ -93,24 +88,6 @@ along with GCC; see the file COPYING3. If not see
9388#undef TARGET_SEH
9489#define TARGET_SEH 1
9590
96- /* SEH support */
97- extern void i386_pe_seh_init (FILE * );
98- extern void i386_pe_seh_end_prologue (FILE * );
99- // extern void aarch64_pe_seh_function_prologue (FILE *);
100- // extern void aarch64_pe_seh_cold_init (FILE *, const char *);
101- extern void i386_pe_seh_unwind_emit (FILE * , rtx_insn * );
102- extern void i386_pe_seh_emit_except_personality (rtx );
103- extern void i386_pe_seh_init_sections (void );
104- // extern void aarch64_pe_seh_asm_final_postscan_insn (FILE *stream, rtx_insn *insn, rtx*, int);
105-
106- /* In winnt */
107- // extern void aarch64_print_reg (rtx, int, FILE*);
108- extern void i386_pe_end_function (FILE * f , const char * , tree );
109- extern void i386_pe_end_cold_function (FILE * f , const char * , tree );
110- // extern void aarch64_pe_end_epilogue (FILE *file);
111- // extern void aarch64_pe_begin_epilogue (FILE *file);
112- extern void i386_pe_record_external_function (tree , const char * );
113-
11491#define TARGET_VALID_DLLIMPORT_ATTRIBUTE_P mingw_pe_valid_dllimport_attribute_p
11592
11693/* Output function declarations at the end of the file. */
@@ -156,21 +133,14 @@ extern void i386_pe_record_external_function (tree, const char *);
156133#define TARGET_OS_CPP_BUILTINS () \
157134 do \
158135 { \
159- builtin_define ("__MSVCRT__"); \
160- builtin_define ("__MINGW32__"); \
161- builtin_define ("_WIN32"); \
162136 builtin_define ("__SEH__"); \
163- builtin_define_std ("WIN32"); \
164- builtin_define_std ("WINNT"); \
165137 builtin_define_with_int_value ("_INTEGRAL_MAX_BITS", \
166138 TYPE_PRECISION (intmax_type_node)); \
167- builtin_define ("__MINGW64__"); \
168- builtin_define_std ("WIN64"); \
169- builtin_define ("_WIN64"); \
170139 builtin_define ("__stdcall=__attribute__((__stdcall__))"); \
171140 builtin_define ("__fastcall=__attribute__((__fastcall__))"); \
172141 builtin_define ("__thiscall=__attribute__((__thiscall__))"); \
173142 builtin_define ("__cdecl=__attribute__((__cdecl__))"); \
143+ EXTRA_OS_CPP_BUILTINS (); \
174144 } \
175145 while (0)
176146
0 commit comments