From owner-freebsd-questions@FreeBSD.ORG Sun Feb 28 14:24:26 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12E9A106564A for ; Sun, 28 Feb 2010 14:24:26 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 9EE698FC33 for ; Sun, 28 Feb 2010 14:24:25 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 25so349017eya.9 for ; Sun, 28 Feb 2010 06:24:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=LbZ28DHtSe7E2vvgnlptC7l3QfRIMgTpSewnOklP+NQ=; b=gq8IiQSMbRDIFZ6ZeCsyqE1NnMV8LyaTnKmFq2liJUDCOBK/bPPOisXwVdyITI4VtB mfnCE31I/Z7dnCt5CCpDFe1s1GIG7gSHCqrmB6LKN+fUG1JkL9MEX13fb8a1YyIreFn7 TaU79X1VjqB5vKVpo0j0UO7Jpd4r9QvnFByqM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GN9gI1yiw3HpRzKFMxTKCMyCsxovBrB6CyT7ULNJttyv1DONgLJt442iZGhwgYy1xB ClWhalTemKg15m7LuOgZTkVvJ0bjZgRDQCC/k69S3VrqFyrDI6PpDgHl9nduR2UvaI6d XmyW5mRwG9xfa7moBgb5N/t15iyAtS9wFZEdQ= MIME-Version: 1.0 Received: by 10.213.97.78 with SMTP id k14mr2167252ebn.24.1267367052796; Sun, 28 Feb 2010 06:24:12 -0800 (PST) In-Reply-To: <4B8A63D5.90104@gmail.com> References: <4B8A63D5.90104@gmail.com> Date: Sun, 28 Feb 2010 14:24:12 +0000 Message-ID: <3a142e751002280624w6f38d297o65b88301b3e5f8d@mail.gmail.com> From: Paul B Mahol To: Aaron Lewis Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: Compiler Flags problem with core2 CPU X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2010 14:24:26 -0000 On 2/28/10, Aaron Lewis wrote: > Hi, > I gonna recompile kernel for my core2 CPU , so i'd like to pass some > flags to gcc. > Kinds of "-march=core2" , i tried to modify /etc/make.conf > > e.g CFLAGS += -march=core2 -O20 -ffast-math -mfpmath=sse > But it fails .. bad arch switch , core2 cpu is not supported ? It is bad idea to compile kernel with custom flags. And gcc in FreeBSD doesn't know about core2, use 'native' if you must. > > And is that useful to let gcc select cpu specified asm code ? Only for some userland stuff like openssl.