[PATCH] FreeBSD AArch64 support

Andrew Turner andrew at fubar.geek.nz
Thu Nov 13 03:36:53 PST 2014


On Wed, 12 Nov 2014 10:00:32 -0800
Tim Northover <t.p.northover at gmail.com> wrote:
> Hi Andrew,
> 
> On 12 November 2014 08:42, Andrew Turner <andrew at fubar.geek.nz> wrote:
> > I've run check-all before and after this change and found the same
> > two tests failing. I can also add new FreeBSD/AArch64 specific
> > tests if anyone has a suggestion which to add.
> 
> That would be a good idea. The key places I'd suggest are
> test/Driver/freebsd.c (which seems to be testing the backend
> command-line for OS-specific details like the dynamic loader, crt
> files and so on), and test/Preprocessor/init.c which tests for the
> predefines you want to see, and some other ABI issues (Is char signed?
> What is size_t? What is wchar_t? ...).
These should be as described in the AArch64 ABI documentation. There
should be no need to differ without a good reason.

I've attached an updated patch with the above tests added.

> 
> I'm afraid I've no idea what specific ABI details FreeBSD is adopting
> for AArch64, so you might have to check against GCC or whatever the
> canonical compiler is. Or ask on some BSD list.

I am free, within reason, to set the specifics of the ABI FreeBSD will
adopt as I'm working on porting FreeBSD to AArch64. I am also the
author of the GCC FreeBSD AArch64 changes. I expect FreeBSD will use
clang as the canonical compiler for AArch64.

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang_freebsd_aarch64.diff
Type: text/x-patch
Size: 12692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141113/eca670a4/attachment.bin>


More information about the cfe-commits mailing list