From owner-freebsd-stable@FreeBSD.ORG Fri Apr 25 01:41:43 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73DCB37B401 for ; Fri, 25 Apr 2003 01:41:43 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FC4A43FD7 for ; Fri, 25 Apr 2003 01:41:42 -0700 (PDT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.9/8.12.9) with ESMTP id h3P8fdeR083414; Fri, 25 Apr 2003 12:41:39 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Fri, 25 Apr 2003 12:41:39 +0400 (MSD) From: Dmitry Morozovsky To: Dmitry Sivachenko In-Reply-To: <20030425083108.GA53793@fling-wing.demos.su> Message-ID: <20030425124046.C82378@woozle.rinet.ru> References: <20030425083108.GA53793@fling-wing.demos.su> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: stable@freebsd.org Subject: Re: compiling kernel without -O X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 08:41:43 -0000 On Fri, 25 Apr 2003, Dmitry Sivachenko wrote: DS> Is it possible to compile kernel without '-O' option? DS> When my COPTFLAGS=-O -pipe, it compiles fine. When I change DS> COPTFLAGS=-pipe, it breaks: DS> DS> cc -c -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmis DS> sing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi DS> -g -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipfilter -D_KER DS> NEL -include opt_global.h -mpreferred-stack-boundary=2 -fomit-frame-pointer ../ DS> ../i386/i386/atomic.c DS> In file included from ../../i386/i386/atomic.c:47: DS> machine/atomic.h: In function `atomic_set_char': DS> machine/atomic.h:106: inconsistent operand constraints in an `asm' DS> machine/atomic.h: In function `atomic_clear_char': DS> machine/atomic.h:107: inconsistent operand constraints in an `asm' DS> machine/atomic.h: In function `atomic_add_char': DS> machine/atomic.h:108: inconsistent operand constraints in an `asm' DS> DS> DS> DS> Is it OK? As far as I know, compiling kernel without -O is not supporterd due to incompatibilities with assembler-optimized kernel routinges. Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------