From cbf8434e44ebd6bc05022d1fbe0400267520184f Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Fri, 20 Mar 2015 11:25:30 +0100 Subject: Improvements in the StructReturn transformation (ABI conformance for passing composites). - Implement the "1/2/4/8" composite return policy, used by IA32/MacOS X and IA32/BSD. - Move the default passing conventions from Machine.ml to compcert.ini, making it easier to test the various conventions. - More comprehensive interoperability test in regression/interop1.c. --- cparser/Machine.mli | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'cparser/Machine.mli') diff --git a/cparser/Machine.mli b/cparser/Machine.mli index 76cea879..fb7321f9 100644 --- a/cparser/Machine.mli +++ b/cparser/Machine.mli @@ -44,16 +44,9 @@ type t = { alignof_fun: int option; bigendian: bool; bitfields_msb_first: bool; - supports_unaligned_accesses: bool; - struct_return_as_int: int; - struct_passing_style: struct_passing_style + supports_unaligned_accesses: bool } -and struct_passing_style = - | SP_ref_callee (* by reference, callee takes copy *) - | SP_ref_caller (* by reference, caller takes copy *) - | SP_split_args (* by value, as a sequence of ints *) - (* The current configuration *) val config : t ref @@ -69,7 +62,6 @@ val x86_64 : t val win32 : t val win64 : t val ppc_32_bigendian : t -val ppc_32_bigendian_linux : t val arm_littleendian : t val gcc_extensions : t -> t -- cgit