This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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 bug?


>>>>> "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


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