This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libffi bug?
- From: Tom Tromey <tromey at redhat dot com>
- To: Thomas Heller <theller at python dot net>
- Cc: GCC Hackers <gcc at gcc dot gnu dot org>
- Date: 18 Jun 2004 14:05:01 -0600
- Subject: Re: libffi bug?
- References: <1xkclpd8.fsf@python.net>
- Reply-to: tromey at redhat dot com
>>>>> "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