This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: RFC: Delegates (or something)
- From: William Ahern <william at 25thandClement dot com>
- To: libffi-discuss at sourceware dot org
- Date: Sat, 18 Apr 2009 16:01:53 -0700
- Subject: Re: RFC: Delegates (or something)
- References: <20090418220433.GA442@wilbur.25thandClement.com>
On Sat, Apr 18, 2009 at 03:04:33PM -0700, William Ahern wrote:
> I'm curious of people's thoughts on this. Especially if somebody can point
> out a bug, including the "you just got lucky that it works" kind.
>
FYI, GCC 4.2.4 on Ubuntu Hardy (host x86_64, target x86_64) returns false
for
__builtin_types_compatible_p(long long, int64_t)
In fact, it seems to return false for all the stdint.h types I tried. But
not necessarily for any typedef, since manaully defining a long long
typedef gives the correct/expected result.
A fix would be to extend the ffi_typeof and ffi_type macros, I suppose.