From owner-freebsd-current@FreeBSD.ORG Thu Mar 10 11:07:13 2011 Return-Path: Delivered-To: current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 4613B1065675; Thu, 10 Mar 2011 11:07:13 +0000 (UTC) Date: Thu, 10 Mar 2011 11:07:13 +0000 From: Alexander Best To: George Liaskos Message-ID: <20110310110713.GA92011@freebsd.org> References: <4D7799FD.9040008@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Martin Matuska , current@freebsd.org Subject: Re: [TESTING] ssse3 backport from gcc 4.3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2011 11:07:13 -0000 On Wed Mar 9 11, George Liaskos wrote: > > I have prepared a patch that finishes the "core2" support part and > > backports from gcc-4.3 > > the SSSE3 instruction set (-mssse3, -mno-ssse3). > > It is enabled for -march=core2 by default. > > > > Testing and comments are welcome. > > > > Patch: > > http://people.freebsd.org/~mm/patches/head-gcc-ssse3.patch > > > > The backport covers three GPLv2 revisions from gcc 4.3: > > http://gcc.gnu.org/viewcvs?view=revision&revision=117958 (applies cleanly) > > http://gcc.gnu.org/viewcvs?view=revision&revision=121687 (small adjustment) > > http://gcc.gnu.org/viewcvs?view=revision&revision=121726 (small adjustment) > > http://gcc.gnu.org/viewcvs?view=revision&revision=123639 (small adjustment) > > Just finished compiling world and kernel with the patch, no issues > whatsoever but i have some questions :) > > I have a Q6600, with -march=native gcc still uses nocona instead of > core2, clang does the right thing. Is this a bug? > Is it possible to support sse4.1 for penryn or is there a problem with > the license? same issue here: otaku% /usr/bin/gcc -### -march=native blabla.c Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.1 20070719 [FreeBSD] "/usr/libexec/cc1" "-quiet" "-D_LONGLONG" "null.c" "-march=nocona" "-mtune=generic" "-quiet" "-dumpbase" "null.c" "-auxbase" "null" "-o" "/var/tmp//cca3OQb6.s" "/usr/bin/as" "-Qy" "-o" "/var/tmp//ccmuWSiZ.o" "/var/tmp//cca3OQb6.s" "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "-L/usr/lib" "/var/tmp//ccmuWSiZ.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o" it seems "native" isn't "core2" aware. could this be backported to our gcc or does that code fall under the gplv3? cheers. alex > > Regards -- a13x