Mozilla bug# 545634 : Make the header compile on AIX with IBM XLC/C++ compiler

Uli Link ul.mcamafia@linkitup.de
Thu Feb 3 13:05:00 GMT 2011


Dan Witte of Mozilla advised me to also push this patch back upstream.

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
-- 
Uli Link
Arnimstr. 8
D-81369 Munich
mailto: ulink@linkitup.de
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libffi-aix5-ibm-xlc.patch
URL: <http://sourceware.org/pipermail/libffi-discuss/attachments/20110203/a32885b6/attachment.ksh>


More information about the Libffi-discuss mailing list