libffi bug?

Tom Tromey tromey@redhat.com
Fri Jun 18 20:17:00 GMT 2004


>>>>> "Thomas" == Thomas Heller <theller@python.net> writes:

Thomas> I'm looking at this small program from libffi's testsuite,
Thomas> return_sc.c:
Thomas> [ ... ]

Thomas> This runs fine on a sparc solaris 9 system, but crashes with a
Thomas> bus error
Thomas> when I replace the
Thomas>   ffi_arg rint;
Thomas> line with this one
Thomas>   signed char rint;
Thomas> Hm, I thought libffi would handle this - is it a bug?

I don't think so.  According to libffi/README, the return value "must
[...] be at least word aligned".

Tom



More information about the Gcc mailing list