svn commit: r236962 - in head/contrib/gcc: . config/i386 doc

Pedro Giffuni pfg at FreeBSD.org
Tue Jun 12 15:51:49 UTC 2012


On 06/12/12 10:04, Pedro F. Giffuni wrote:
> Author: pfg
> Date: Tue Jun 12 15:04:18 2012
> New Revision: 236962
> URL: http://svn.freebsd.org/changeset/base/236962
>
> Log:
>    Add experimental support for amdfam10/barcelona from the GCC 4.3 branch.
>
>    Initial support for the AMD barcelona chipsets has been available in the
>    gcc43 branch under GPLv2 but was not included when the Core 2 support
>    was brought to the system gcc.
>
>    AMD and some linux distributions (OpenSUSE) did a backport of the amdfam10
>    support and made them available. Unfortunately this is still experimental
>    and while it can improve performance, enabling the CPUTYPE may break some
>    C++ ports (like clang).
>
>    Special care was taken to make sure that the patches predate the GPLv3
>    switch upstream.
>
>    Tested by:	Vladimir Kushnir
>    Reviewed by:	mm
>    Approved by:	jhb (mentor)
>    MFC after:	2 weeks
>
>

As a side note, I didn't add the CPUTYPE to bsd.cpu.mk
because it may break buildworld in clang, so normally
most of this optimizations are not available.

The patch does include some minor fixes for optimizations
that GCC developers didn't consider regressions so were
never back ported. This was, of course, tested by building
world on amd64 (not amdfam10) and shouldn't cause any
trouble.

I think this ends the series of GPLv2 patches we could
bring in.

Pedro.



More information about the svn-src-head mailing list