I think that this (return 8 byte structures in registers) should also go in
mingw32.h config file for GCC.  I'm not sure about cygwin.h  ldiv() returns
an 8-byte structure.  I can't think of any others, but if  we're serious
about compatability with MS object files, this would seema good thing.

Danny

 --- Richard Kenner <[EMAIL PROTECTED]> wrote: > Date: Fri, 12 Apr
02 15:46:22 EDT
> From: [EMAIL PROTECTED] (Richard Kenner)
> To: [EMAIL PROTECTED]
> Subject: Updates to x86-Interix config files
> 
> I applied these to the 3.1 branch and the trunk.
> 
> 2002-04-12  Douglas B Rupp  <[EMAIL PROTECTED]>
> 
>       * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
>       (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
>       (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
>       * config/i386/t-interix (USER_H): Remove.

<snip>

> 
> *** config/i386/i386-interix.h        16 Dec 2001 15:43:40 -0000      1.23
> --- config/i386/i386-interix.h        12 Apr 2002 19:41:42 -0000
> *** 422,423 ****
> --- 423,432 ----
>   #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 ))


http://messenger.yahoo.com.au - Yahoo! Messenger
- A great way to communicate long-distance for FREE!

Reply via email to