svn commit: r248856 - head/share/mk
Andrew Turner
andrew at fubar.geek.nz
Thu Mar 28 22:58:16 UTC 2013
As of this commit clang is the default compiler on little-endian ARM.
Can people test this and report back any issues they find. I would like
to keep it as the compiler for when 10 is released.
This doesn't affect big-endian ARM as it is not yet supported by
llvm/clang.
Andrew
On Thu, 28 Mar 2013 22:49:49 +0000 (UTC)
Andrew Turner <andrew at FreeBSD.org> wrote:
> Author: andrew
> Date: Thu Mar 28 22:49:49 2013
> New Revision: 248856
> URL: http://svnweb.freebsd.org/changeset/base/248856
>
> Log:
> Welcome clang as the default compiler on ARM.
>
> Change the default compiler for little-endian ARM to clang to allow
> for more testing before 10.0 is released. As LLVM and clang currnetly
> lack support for big-endian ARM leave gcc as the default there.
>
> This will also allow us to investigate moving to use the hard
> floating-point version of the ARM EABI on SoCs that include the
> Vector Floating Point unit. A version of this is included in all
> ARMv6 and ARMv7 SoCs we currently, and are likely to support.
>
> Both the current ABI and the new EABI are supported by clang and it
> will be built correctly depending on which is selected by the user.
>
> Modified:
> head/share/mk/bsd.own.mk
>
> Modified: head/share/mk/bsd.own.mk
> ==============================================================================
> --- head/share/mk/bsd.own.mk Thu Mar 28 21:26:19 2013
> (r248855) +++ head/share/mk/bsd.own.mk Thu Mar 28 22:49:49
> 2013 (r248856) @@ -401,8 +401,9 @@
> __DEFAULT_NO_OPTIONS+=CLANG_FULL .else
> __DEFAULT_NO_OPTIONS+=CLANG CLANG_FULL
> .endif
> -# Clang the default system compiler only on x86.
> -.if ${__T} == "amd64" || ${__T} == "i386"
> +# Clang the default system compiler only on little-endian arm and
> x86. +.if ${__T} == "amd64" || ${__T} == "arm" || ${__T} == "armv6"
> || \
> + ${__T} == "i386"
> __DEFAULT_YES_OPTIONS+=CLANG_IS_CC
> .else
> __DEFAULT_NO_OPTIONS+=CLANG_IS_CC
>
>
More information about the freebsd-arm
mailing list