svn commit: r243310 - head/share/mk
Jan Beich
jbeich at tormail.org
Fri Nov 23 01:41:30 UTC 2012
Jung-uk Kim <jkim at FreeBSD.org> writes:
> Author: jkim
> Date: Mon Nov 19 21:58:14 2012
> New Revision: 243310
> URL: http://svnweb.freebsd.org/changeset/base/243310
>
> Log:
> Add x86 CPUs supported by clang on head.
>
> Reviewed by: arch (silence)
> X-MFC: r242624
No penryn? My core2 supports sse41.
$ clang -v -march=native foo.c
... -target-cpu penryn ...
$ gcc47 -v -march=native foo.c
... -march=core2 ...
$ clang -march=penryn foo.c
$ gcc47 -march=penryn foo.c
foo.c:1:0: error: bad value (penryn) for -march= switch
$ gcc47 -march=core2 -dM -E -</dev/null | fgrep -i sse4
Exit 1
$ gcc47 -march=native -dM -E -</dev/null | fgrep -i sse4
#define __SSE4_1__ 1
Not to mention bsd.cpu.mk still thinks core2 doesn't need ssse3 on i386.
$ __MAKE_CONF= make -V CFLAGS CPUTYPE=core2 MACHINE_CPUARCH=i386
-O2 -pipe -march=prescott
$ /usr/bin/gcc -m32 -march=prescott -dM -E -</dev/null | fgrep -i sse
#define __SSE__ 1
#define __SSE2__ 1
#define __SSE3__ 1
$ /usr/bin/gcc -m32 -march=core2 -dM -E -</dev/null | fgrep -i sse
#define __SSSE3__ 1
#define __SSE__ 1
#define __SSE2__ 1
#define __SSE3__ 1
More information about the svn-src-head
mailing list