This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [COMMITTED] Merge libffi with upstream
- From: Iain Sandoe <iain at codesourcery dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Dominique d'Humières <dominiq at lps dot ens dot fr>, <ro at CeBiTec dot Uni-Bielefeld dot de>, <gcc-patches at gcc dot gnu dot org>, <mrs at gcc dot gnu dot org>, <rth at gcc dot gnu dot org>
- Date: Thu, 29 Jan 2015 09:10:11 +0000
- Subject: Re: [COMMITTED] Merge libffi with upstream
- Authentication-results: sourceware.org; auth=none
- References: <20150128142820 dot C577D105 at mailhost dot lps dot ens dot fr> <54C92480 dot 40609 at redhat dot com> <56B68F0F-4127-4E20-9159-A32629A467AB at lps dot ens dot fr> <54C92761 dot 3020109 at redhat dot com>
On 28 Jan 2015, at 18:16, Richard Henderson wrote:
> On 01/28/2015 10:10 AM, Dominique d'Humières wrote:
>>> I can't think of any reason they shouldn't work. Were they not running before,
>>> or did something else change?
>>
>> AFAIU the commit, the tests were not run on x86_64-*-*, so the tests and the corresponding failures are new.
>
> Well, the commit fixed the fact that they weren't running on x86_64 for the
> -m32 multilib. If you had built a i686-darwin before the commit, the tests
> should have already been running (and, presumably, failing).
I don't think (To Be Confirmed) this mode has ever been tested on Darwin in previous incarnations of libffi.
(i.e darwin + windows call markers) ISTM that the first occassion was following your commit 12th Jan.
>> If you think the failures are a bug, I’ll open a PR for them.
>
> I do think the failures are a bug. If Darwin wasn't supposed to support these
> abis, they ought to have failed test compilation, not test execution.
Well, somewhat confusingly "x86/darwin_c.c" is shared between darwin and the various Windows 32 bit implementations. It might be nice to rename it (but that can wait ...).
A quick look suggests that FFI_THISCALL and friends will result in an abort or a return of "invalid ABI" on Darwin, but I don't (yet) see a compile-time error. We need to look into adding that - and disabling any inappropriate tests on Darwin.
Iain