[cfe-dev] Hack for FreeBSD ABI support
David Chisnall
csdavec at swansea.ac.uk
Mon Aug 17 12:02:13 PDT 2009
On 17 Aug 2009, at 19:45, Jonathan Gray wrote:
> you can of course derive this information from looking at the gcc
> config dir, but the short answer is
>
> beos-elf.h:#define DEFAULT_PCC_STRUCT_RETURN 1
> linux.h:#define DEFAULT_PCC_STRUCT_RETURN 1
> lynx.h:#define DEFAULT_PCC_STRUCT_RETURN 1
> nto.h:#define DEFAULT_PCC_STRUCT_RETURN 1
> netbsd-elf.h:#define DEFAULT_PCC_STRUCT_RETURN 1
>
> cygming.h:#define DEFAULT_PCC_STRUCT_RETURN 0
> darwin.h:#define DEFAULT_PCC_STRUCT_RETURN 0
> freebsd.h:#define DEFAULT_PCC_STRUCT_RETURN 0
> netware.h:#define DEFAULT_PCC_STRUCT_RETURN 0
> openbsd.h:#define DEFAULT_PCC_STRUCT_RETURN 0
Thanks, I've updated the code so that it now sets the second flag if
the target triple contains one of cygwin, mingw, netware,freebsd,
openbsd, or darwin and set the first flag if it contains darwin.
Anyone want to object before I commit?
David
More information about the cfe-dev
mailing list