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]

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


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

Attachment: libffi-aix5-ibm-xlc.patch
Description: Text document


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