svn commit: r247166 - head/contrib/llvm/tools/clang/lib/Driver

Konstantin Belousov kostikbel at gmail.com
Fri Feb 22 23:53:40 UTC 2013


On Fri, Feb 22, 2013 at 10:40:10PM +0000, Dimitry Andric wrote:
> Author: dim
> Date: Fri Feb 22 22:40:10 2013
> New Revision: 247166
> URL: http://svnweb.freebsd.org/changeset/base/247166
> 
> Log:
>   Pull in r172354 from upstream clang trunk:
>   
>     Refactor the x86 CPU name logic in the driver and pass -march and -mcpu
>     flag information down from the Clang driver into the Gold linker plugin
>     for LTO. This allows specifying -march on the linker commandline and
>     should hopefully have it pass all the way through to the LTO optimizer.
>   
>     Fixes PR14697.
>   
>   Pull in r175919 from upstream clang trunk:
>   
>     Driver: Pass down the -march setting down to -cc1as on x86 too.
>   
>     The assembler historically didn't make use of any target features, but this has
>     changed when support for old CPUs that don't support long nops was added.
>   
>   This should fix the long nops that still occurred in crt*.o, and
>   possibly other object files, if the system was compiled for a CPU that
>   does not support those, such as Geode.
>   
>   Note that gcc on i386 also does not pass through any -march, -mcpu or
>   -mtune setting to gas, but this has not caused any trouble yet, because
>   gas defaults to i386.

Are you saying that assembler (in the 'cc' invocation) miscompiles
the .s files on i386 ? Why does it use instructions by default which
are not supported on the i486 architecture, implicitely ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20130223/1cb30cbf/attachment.sig>


More information about the svn-src-all mailing list