diff options
Diffstat (limited to 'contrib/gcc/config/i386/i386-interix.h')
-rw-r--r-- | contrib/gcc/config/i386/i386-interix.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/gcc/config/i386/i386-interix.h b/contrib/gcc/config/i386/i386-interix.h index 962862f0858b..76357f3875c8 100644 --- a/contrib/gcc/config/i386/i386-interix.h +++ b/contrib/gcc/config/i386/i386-interix.h @@ -65,6 +65,7 @@ Boston, MA 02111-1307, USA. */ -D_M_IX86=300 -D_X86_=1 \ -D__stdcall=__attribute__((__stdcall__)) \ -D__cdecl=__attribute__((__cdecl__)) \ + -D__declspec(x)=__attribute__((x)) \ -Asystem=unix -Asystem=interix" #undef CPP_SPEC @@ -237,6 +238,7 @@ Boston, MA 02111-1307, USA. */ #undef LD_INIT_SWITCH #undef LD_FINI_SWITCH +#define EH_FRAME_IN_DATA_SECTION /* Note that there appears to be two different ways to support const sections at the moment. You can either #define the symbol @@ -410,10 +412,10 @@ extern void i386_pe_unique_section (); #define UNIQUE_SECTION(DECL,RELOC) i386_pe_unique_section (DECL, RELOC) #define SUPPORTS_ONE_ONLY 1 +#endif /* 0 */ /* Switch into a generic section. */ #define TARGET_ASM_NAMED_SECTION default_pe_asm_named_section -#endif /* 0 */ /* DWARF2 Unwinding doesn't work with exception handling yet. */ #define DWARF2_UNWIND_INFO 0 @@ -421,3 +423,11 @@ extern void i386_pe_unique_section (); /* Don't assume anything about the header files. */ #define NO_IMPLICIT_EXTERN_C +/* MSVC returns structs of up to 8 bytes via registers. */ + +#define DEFAULT_PCC_STRUCT_RETURN 0 + +#undef RETURN_IN_MEMORY +#define RETURN_IN_MEMORY(TYPE) \ + (TYPE_MODE (TYPE) == BLKmode || \ + (AGGREGATE_TYPE_P (TYPE) && int_size_in_bytes(TYPE) > 8 )) |