gcc/libffi/testsuite
Jakub Jelinek 041f741770 libffi: Fix up x86_64 classify_argument
As the following testcase shows, libffi didn't handle properly
classify_arguments of structures at byte offsets not divisible by
UNITS_PER_WORD.  The following patch adjusts it to match what
config/i386/ classify_argument does for that and also ports the
PR38781 fix there (the second chunk).

This has been committed to upstream libffi already:
5651bea284

2021-06-16  Jakub Jelinek  <jakub@redhat.com>

	* src/x86/ffi64.c (classify_argument): For FFI_TYPE_STRUCT set words
	to number of words needed for type->size + byte_offset bytes rather
	than just type->size bytes.  Compute pos before the loop and check
	total size of the structure.
	* testsuite/libffi.call/nested_struct12.c: New test.
2021-06-16 10:45:27 +02:00
..
config
lib
libffi.call libffi: Fix up x86_64 classify_argument 2021-06-16 10:45:27 +02:00
libffi.complex
libffi.go ffi.c (ffi_struct_type): Put type declaration on separate line. 2016-09-04 17:39:05 +00:00
libffi.special
Makefile.am libffi/test: Fix compilation for build sysroot 2020-04-25 21:27:14 +01:00
Makefile.in libffi/test: Fix compilation for build sysroot 2020-04-25 21:27:14 +01:00