From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 00:59:07 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 8131316A4CE for ; Thu, 12 Feb 2004 00:59:07 -0800 (PST) Received: from postino-1.etat.lu (postino-1.etat.lu [194.154.205.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 522BE43D1D for ; Thu, 12 Feb 2004 00:59:07 -0800 (PST) (envelope-from didier.wiroth@mcesr.etat.lu) Received: from avirus-1.cie.etat.lu (dispatch-1.cie.etat.lu [148.110.137.6]) by postino-1.etat.lu (Postfix) with ESMTP id 32364465EB1 for ; Thu, 12 Feb 2004 09:59:06 +0100 (CET) Received: from avirus-1.cie.etat.lu (dispatch-1.cie.etat.lu [148.110.137.6]) by localhost (CIE ESMTP Dispatch 1) with ESMTP id 3C493A5 for ; Thu, 12 Feb 2004 09:59:06 +0100 (CET) Received: from hermes-2 (hermes-2.cie.etat.lu [148.110.136.57]) 21E7FA1 for ; Thu, 12 Feb 2004 09:59:06 +0100 (CET) Received: from conversion-daemon.mail.etat.lu by mail.etat.lu (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) id <0HSY00M01R4Q20@mail.etat.lu> for freebsd-questions@freebsd.org; Thu, 12 Feb 2004 09:59:06 +0100 (MET) Received: from lucy ([148.110.43.189])18 2003)) with ESMTP id <0HSY00L77RM4MY@mail.etat.lu>; Thu, 12 Feb 2004 09:58:52 +0100 (MET) Date: Thu, 12 Feb 2004 09:58:58 +0100 From: Didier WIROTH In-reply-to: <402A986F.4010703@hqst.com> To: 'Roop Nanuwa' Message-id: <0HSY00L78RM4MY@mail.etat.lu> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Thread-index: AcPw4nozQ/lXhfA5QECsU1LowkWp4AAYq5fw cc: freebsd-questions@freebsd.org 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 08:59:07 -0000 > >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"