This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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: [Patch] libffi testsuite: Correct some type specifiers.


Tom Tromey wrote:
"David" == David Daney <ddaney@avtrex.com> writes:

David> Whilst hacking things up to get MIPS64 working better in libffi, I David> came across several test cases where structure elements were declared David> as type 'int' but the libffi type specifier identified them as uint32.

David> This patch corrects some (but probably not all) of these incongruities.

I think a patch to fix a disparity like this would qualify as obvious.

However... if the struct definition says 'int', and the test case is
says ffi_type_sint32, then that seems like a bug in itself.  There's
no guarantee that int == 32 bits.  Wouldn't it be more correct to use
ffi_type_sint?

I thought of that after I sent the patch, and I agree. The problem is pervasive in the testsuite. Patch withdrawn.


I will submit a revised patch soon.

David Daney


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