This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH 1/3] Complex type support (FFI_TYPE_COMPLEX)


On Tue, Jul 22, 2014 at 10:35:34AM +0100, Dominik Vogt wrote:
>    FFI_ASSERT_VALID_TYPE(cif->rtype);
> 
>    /* x86, x86-64 and s390 stack space allocation is handled in prep_machdep. */
> -#if !defined M68K && !defined X86_ANY && !defined S390 && !defined PA
> +#if !defined FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION

Just noticed that I forgot about M68K here.  The correct condition
is

  #if !defined M68K && !defined FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION

unless ...

>        FFI_ASSERT_VALID_TYPE(*ptr);
> 
> -#if !defined X86_ANY && !defined S390 && !defined PA
> +#if !defined FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION

... this condition forgets to check M68K by accident or in case it
does not matter.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]