From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130448 invoked by alias); 12 Mar 2015 01:41:44 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 130432 invoked by uid 89); 12 Mar 2015 01:41:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-qc0-f180.google.com Received: from mail-qc0-f180.google.com (HELO mail-qc0-f180.google.com) (209.85.216.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 12 Mar 2015 01:41:41 +0000 Received: by qcvp6 with SMTP id p6so15132406qcv.5 for ; Wed, 11 Mar 2015 18:41:39 -0700 (PDT) X-Received: by 10.140.88.244 with SMTP id t107mr49370296qgd.11.1426124499228; Wed, 11 Mar 2015 18:41:39 -0700 (PDT) Received: from Vredefort-3.local (c-98-229-126-92.hsd1.ma.comcast.net. [98.229.126.92]) by mx.google.com with ESMTPSA id l49sm3830215qgd.21.2015.03.11.18.41.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2015 18:41:38 -0700 (PDT) Message-ID: <5500EED1.8000405@iki.fi> Date: Thu, 12 Mar 2015 01:41:00 -0000 From: Jarkko Hietaniemi Reply-To: jhi@iki.fi User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: libffi-discuss@sourceware.org Subject: [PATCH] libffi 3.2.1 on Tru64 5.1B Content-Type: multipart/mixed; boundary="------------050403010402080008010104" X-IsSubscribed: yes X-SW-Source: 2015/txt/msg00043.txt.bz2 This is a multi-part message in MIME format. --------------050403010402080008010104 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 696 The attached patch makes libffi compile on Tru64 5.1B. Without it, the compilation stops on this in src/alpha/osf.S: #error "osf.S out of sync with ffi.h" Since "make check" requires dejagnu but I don't have it, I tried the "puts" example from http://www.atmark-techno.com/~yashi/libffi.html, and it worked. (It would be good to have some trivial test suite that works without dejagnu...) Compiled with the ancient gcc 2.9 the system has. The patch simply removes the check of FFI_TYPE_LAST being 14 or FFI_TYPE_POINTER. Not necessarily the most correct thing to do, but hey. I have also access to an IRIX 6.5 box, but there the situation seems to be more dire. (gcc 3.3, FWIW.) --------------050403010402080008010104 Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="libffi-tru64.pat" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="libffi-tru64.pat" Content-length: 456 LS0tIHNyYy9hbHBoYS9vc2YuUy5kaXN0CVRodSBNYXIgMTIgMDE6MTY6NDkg MjAxNQorKysgc3JjL2FscGhhL29zZi5TCVRodSBNYXIgMTIgMDE6MTY6NTkg MjAxNQpAQCAtMjkzLDggKzI5Myw3IEBACiAJfHwgRkZJX1RZUEVfVUlOVDY0 ICE9IDExCVwKIAl8fCBGRklfVFlQRV9TSU5UNjQgIT0gMTIJXAogCXx8IEZG SV9UWVBFX1NUUlVDVCAhPSAxMwlcCi0JfHwgRkZJX1RZUEVfUE9JTlRFUiAh PSAxNAlcCi0JfHwgRkZJX1RZUEVfTEFTVCAhPSAxNAorCXx8IEZGSV9UWVBF X1BPSU5URVIgIT0gMTQKICNlcnJvciAib3NmLlMgb3V0IG9mIHN5bmMgd2l0 aCBmZmkuaCIKICNlbmRpZgogCg== --------------050403010402080008010104--