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]

Re: libffi 3.0.9rc6


On 12/26/2009 06:50 AM, Andreas Tobler wrote:
On 26.12.09 11:11, Andreas Schwab wrote:
Andreas Tobler<andreast-list@fgznet.ch> writes:

This huge_struct test fails under powerpc-*-linux

See<http://sourceware.org/ml/libffi-discuss/2009/msg00337.html> and <http://sourceware.org/ml/libffi-discuss/2009/msg00360.html>.

Thank you Andreas!


With the patch mentioned above the FreeBSD and Linux PowerPC port pass w/o failure.

Additionally, if I apply the attached diff, I also pass the huge_struct test case on i386-pc-solaris2.11 and sparc-sun-solaris2.10 (It also passes on all other archs here.)

The issue is this, the %p modifier for printf under solaris does not add a leading 0x. So I modified the test case to use %#x and cast the value to (unsigned int). Do you think this feasible?

Thanks,
Andreas


I had to change it to %#lx and (unsigned long) on x86-64 linux to make it compile cleanly. See the attached patch. I can test on a bunch of linux systems now (x86-64, powerpc, armv5tel, etc). If you can check Solaris and *bsd, then I think we have a winner.


ftp://sources.redhat.com/pub/libffi/libffi-3.0.9rc8.tar.gz

AG


Attachment: huge_struct.patch
Description: Text document


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