From owner-freebsd-stable@FreeBSD.ORG Fri Apr 25 01:31:13 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 E9F4B37B401 for ; Fri, 25 Apr 2003 01:31:13 -0700 (PDT) Received: from demos.su (mx.demos.su [194.87.0.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23A1243F93 for ; Fri, 25 Apr 2003 01:31:12 -0700 (PDT) (envelope-from mitya@fling-wing.demos.su) Received: from [194.87.5.69] (HELO fling-wing.demos.su) by demos.su (CommuniGate Pro SMTP 4.0.6/D4) with ESMTP-TLS id 68500121 for stable@freebsd.org; Fri, 25 Apr 2003 12:31:10 +0400 Received: from fling-wing.demos.su (localhost [127.0.0.1]) by fling-wing.demos.su (8.12.9/8.12.6) with ESMTP id h3P8V9Nu054610 for ; Fri, 25 Apr 2003 12:31:09 +0400 (MSD) (envelope-from mitya@fling-wing.demos.su) Received: (from mitya@localhost) by fling-wing.demos.su (8.12.9/8.12.6/Submit) id h3P8V8oS054608 for stable@freebsd.org; Fri, 25 Apr 2003 12:31:08 +0400 (MSD) Date: Fri, 25 Apr 2003 12:31:08 +0400 From: Dmitry Sivachenko To: stable@freebsd.org Message-ID: <20030425083108.GA53793@fling-wing.demos.su> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline WWW-Home-Page: http://mitya.pp.ru/ X-PGP-Key: http://mitya.pp.ru/mitya.asc User-Agent: Mutt/1.5.4i Subject: 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:31:14 -0000 Hello! Is it possible to compile kernel without '-O' option? When my COPTFLAGS=-O -pipe, it compiles fine. When I change COPTFLAGS=-pipe, it breaks: cc -c -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmis sing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipfilter -D_KER NEL -include opt_global.h -mpreferred-stack-boundary=2 -fomit-frame-pointer ../ ../i386/i386/atomic.c In file included from ../../i386/i386/atomic.c:47: machine/atomic.h: In function `atomic_set_char': machine/atomic.h:106: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_clear_char': machine/atomic.h:107: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_add_char': machine/atomic.h:108: inconsistent operand constraints in an `asm' Is it OK? Thanks!