From owner-freebsd-bugs@FreeBSD.ORG Mon May 3 11:20:23 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3FA34106566B for ; Mon, 3 May 2010 11:20:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 2F3038FC38 for ; Mon, 3 May 2010 11:20:23 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o43BKMDE045945 for ; Mon, 3 May 2010 11:20:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o43BKMPt045780; Mon, 3 May 2010 11:20:22 GMT (envelope-from gnats) Date: Mon, 3 May 2010 11:20:22 GMT Message-Id: <201005031120.o43BKMPt045780@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Anonymous Cc: Subject: Re: conf/112997: [patch] Add note about the 'native' mtune option to share/examples/etc/make.conf X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anonymous List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2010 11:20:23 -0000 The following reply was made to PR conf/112997; it has been noted by GNATS. From: Anonymous To: bug-followup@FreeBSD.org Cc: Subject: Re: conf/112997: [patch] Add note about the 'native' mtune option to share/examples/etc/make.conf Date: Mon, 03 May 2010 15:18:33 +0400 I disagree, native and ${YOUR_CPU} aren't equivalent. Here is what I get on gcc45 + core2@amd64 system: $ cc -E -v -march=core2 - &1 \ | awk '/SSE|MMX/ && !/MATH/ { FS="__"; gsub("_",".",$$2); print tolower($$2) }' $ make -f a.mk -V MACHINE_CPU amd64 mmx sse2 sse $ make -f a.mk -V MACHINE_CPU CPUTYPE=native amd64 sse4.1 mmx sse2 ssse3 sse sse3 $ make -f a.mk -V MACHINE_CPU CPUTYPE=native CC=/usr/bin/cc amd64 mmx sse sse2 sse3