public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jarkko Hietaniemi <jhi@iki.fi>
To: libffi-discuss@sourceware.org
Subject: [PATCH] libffi 3.2.1 on Tru64 5.1B
Date: Thu, 12 Mar 2015 01:41:00 -0000	[thread overview]
Message-ID: <5500EED1.8000405@iki.fi> (raw)

[-- Attachment #1: Type: text/plain, Size: 696 bytes --]

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.)







[-- Attachment #2: libffi-tru64.pat --]
[-- Type: text/plain, Size: 334 bytes --]

--- src/alpha/osf.S.dist	Thu Mar 12 01:16:49 2015
+++ src/alpha/osf.S	Thu Mar 12 01:16:59 2015
@@ -293,8 +293,7 @@
 	|| FFI_TYPE_UINT64 != 11	\
 	|| FFI_TYPE_SINT64 != 12	\
 	|| FFI_TYPE_STRUCT != 13	\
-	|| FFI_TYPE_POINTER != 14	\
-	|| FFI_TYPE_LAST != 14
+	|| FFI_TYPE_POINTER != 14
 #error "osf.S out of sync with ffi.h"
 #endif
 

             reply	other threads:[~2015-03-12  1:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12  1:41 Jarkko Hietaniemi [this message]
2015-03-12  2:07 ` Jay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5500EED1.8000405@iki.fi \
    --to=jhi@iki.fi \
    --cc=libffi-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).