From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 01:16:19 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2623C16A4CF for ; Thu, 12 Feb 2004 01:16:19 -0800 (PST) Received: from guard.sparc.spb.su (relay.sparc.spb.su [193.125.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7181643D1D for ; Thu, 12 Feb 2004 01:16:18 -0800 (PST) (envelope-from moreau@myrealbox.com) Received: from mail.sparc.spb.su (mail.sparc.spb.su. [192.168.205.210]) by guard.sparc.spb.su (8.12.10/8.12.6) with ESMTP id i1C9GGfi000726; Thu, 12 Feb 2004 12:16:16 +0300 (MSK) (envelope-from moreau@myrealbox.com) Received: from router.sparc.spb.su (router.sparc.spb.su [192.168.205.53]) by mail.sparc.spb.su (8.12.9/8.12.9) with ESMTP id i1C9GGxd088746; Thu, 12 Feb 2004 12:16:16 +0300 (MSK) (envelope-from moreau@myrealbox.com) Received: from myrealbox.com (den [192.168.205.185]) by router.sparc.spb.su (8.11.7+Sun/8.8.5) with ESMTP id i1C9GFL11900; Thu, 12 Feb 2004 12:16:15 +0300 (MSK) Message-ID: <402B44B5.6070209@myrealbox.com> Date: Thu, 12 Feb 2004 12:17:41 +0300 From: den User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Didier WIROTH , freebsd-questions@freebsd.org References: <0HSY00L78RM4MY@mail.etat.lu> In-Reply-To: <0HSY00L78RM4MY@mail.etat.lu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: /usr/src/sys/dev/aic7xxx errors when compiling X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2004 09:16:19 -0000 You are right - only COPTFLAGS used when you compiling the kernel. BUT YOU should note that when you compile the kernel you don't compile only it ! You also compile many modules . You have problem namely with module. So COPTFLAGS= -O2 -pipe -funroll-loops has affect only on kernel. But CFLAGS= -O3 -pipe -funroll-loops will be used for compiling your modules. In other words kernel will be optimized with -O2 , but modules will be optimized with -O3. Actually you don't have problem with compiling your KERNEL. You have problem with compiling some modules. My solution actually - compiling with option -O2 such modules that cannot be compiled with -O3 . All other modules I has compiled with -O3. Didier WIROTH wrote: >>>Hi, thanks for answering >>>I'm using this in make.conf >>>COPTFLAGS= -O2 -pipe -funroll-loops >>>CFLAGS= -O3 -pipe -funroll-loops >>> >>> > >Thx for answering. > >But... hmm..., I'm not using -O3 for the kernel, or at least I thought I >wasn't!? > >When using COPTFLAGS in make.conf, isn't CFLAGS ignored when building the >kernel? >I build the kernel with: >make -j2 buildkernel KERNCONF=MYKERNEL > >Does it mean that COPTFLAGS & CFLAGS are actually merged?! >This: >COPTFLAGS= -O2 -pipe -funroll-loops >CFLAGS= -O3 -pipe -funroll-loops > >Results in this: >gcc -O2 -O3 -pipe -funroll-loops > >thx > > > >>This is because using -O3 adds the option -finline-functions. >>You should only use -O when compiling the kernel and that's >>all that is actually supported. >> >>--roop >>_______________________________________________ >>freebsd-questions@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to >>"freebsd-questions-unsubscribe@freebsd.org" >> >> > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > >