This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: Mozilla bug# 545634 : Make the header compile on AIX with IBM XLC/C++ compiler
- From: Anthony Green <green at redhat dot com>
- To: Uli Link <ul dot mcamafia at linkitup dot de>
- Cc: libffi-discuss at sourceware dot org, dwitte at gmail dot com
- Date: Thu, 03 Feb 2011 09:39:16 -0500
- Subject: Re: Mozilla bug# 545634 : Make the header compile on AIX with IBM XLC/C++ compiler
- References: <4D4AA7E8.9030106@linkitup.de>
Uli Link <ul.mcamafia@linkitup.de> writes:
> Dan Witte of Mozilla advised me to also push this patch back upstream.
Thanks Uli. It looks fine -- I'll merge it in.
AG
>
> libffi can easily compiled with GCC 4.x.x but Mozilla products must
> use the native IBM compiler on AIX.
> So the header ffi.h must use properly type suffixed literals as the
> IBM compiler assume int32_t as size for unsuffixed literals so the
> 64bit comparison will fail, even if there is a int64_t on 32bit AIX5
> (and later). When compiling in 64bit mode literals are also assumed
> 32bit max.
>
> Reference:
> <https://bugzilla.mozilla.org/show_bug.cgi?id=545634>
> where most of the patch is for building only the libffi lib with GCC
> and else use XLC/C++ compiler on AIX.
>
> The patch is tested with Firefox 3.6.13/3.6.14 and Thunderbird 3.1.7/3.1.8
>
>
> With kind regards from Germany