public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Timothy Wall <twall@users.sf.net>
To: chennam <csit@axway.com>
Cc: libffi-discuss@sourceware.org
Subject: Re: error in src/powerpc/ffi_darwin.c
Date: Thu, 01 Mar 2012 13:40:00 -0000	[thread overview]
Message-ID: <D7AF8AD1-5872-4FF2-9F43-70532CBD213A@users.sf.net> (raw)
In-Reply-To: <33421057.post@talk.nabble.com>

That looks fine (although I think in general much of the bad_abi handling in libffi is broken).

This doesn't affect your failing closure tests, does it?

On Mar 1, 2012, at 8:14 AM, chennam wrote:

> 
> Hi Anthony,
> 
> I am testing libffi v 3.0.10 & 3.0.11 on PowerPC/AIX, I think there is an
> error in src/powerpc/ffi_darwin.c  
> 1. It misses a "break" for case FFI_AIX:
> 2. It fails the testcases for FFI_BAD_ABI (e.g. err_bad_abi.c)
> 
> 
> Here is the local modification I made:
> Could you validate them ?
> 
> --- ffi_darwin.c        (revision 229)
> +++ ffi_darwin.c        (working copy)
> @@ -1065,11 +1065,12 @@
>       closure->cif = cif;
>       closure->fun = fun;
>       closure->user_data = user_data;
> +      break;
> 
>     default:
> 
> -      FFI_ASSERT(0);
> -      break;
> +//    FFI_ASSERT(0);
> +      return FFI_BAD_ABI;
>     }
>   return FFI_OK;
> }
> -- 
> View this message in context: http://old.nabble.com/error-in-src-powerpc-ffi_darwin.c-tp33421057p33421057.html
> Sent from the Sourceware - libffi-discuss mailing list archive at Nabble.com.
> 

  reply	other threads:[~2012-03-01 13:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 13:14 chennam
2012-03-01 13:40 ` Timothy Wall [this message]
2012-03-01 13:51   ` chennam

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=D7AF8AD1-5872-4FF2-9F43-70532CBD213A@users.sf.net \
    --to=twall@users.sf.net \
    --cc=csit@axway.com \
    --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).