From owner-freebsd-stable Thu Oct 24 7:32:16 2002 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 6B67837B401 for ; Thu, 24 Oct 2002 07:32:15 -0700 (PDT) Received: from topperwein.dyndns.org (acs-24-154-51-184.zoominternet.net [24.154.51.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7184243E65 for ; Thu, 24 Oct 2002 07:32:14 -0700 (PDT) (envelope-from behanna@zbzoom.net) Received: from topperwein.pennasoft.com ([192.168.168.10]) by topperwein.dyndns.org (8.12.6/8.12.5) with ESMTP id g9OEWE3n065043 for ; Thu, 24 Oct 2002 10:32:14 -0400 (EDT) (envelope-from behanna@zbzoom.net) Date: Thu, 24 Oct 2002 10:32:09 -0400 (EDT) From: Chris BeHanna Reply-To: Chris BeHanna To: FreeBSD-Stable Subject: Re: did someone break -STABLE? In-Reply-To: <20021023100145.GA52743@marvin.bsdng.org> Message-ID: <20021024102918.I64739-100000@topperwein.pennasoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 23 Oct 2002, Kyle Martin wrote: > just cvsup'ed 10 minutes ago, and attempted to build a kernel with no > optimizations (CFLAGS=, COPTFLAGS=), heres what i end up with: > > cc -c -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include > -I../../contrib/ipfilter -D_KERNEL -include opt_global.h -elf > -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' > [...snip...] > *** Error code 1 > > Stop in /usr/src/sys/compile/MARVIN. This is (or should be) a FAQ. For asm to get inlined appropriately, you need at least -O. Without it, code with inline asm will fail to compile, every time (at least with GCC-2.95.x). -pipe is not an optimization; it tells the different compiler phases to communicate via pipelines instead of using scratch files in /tmp. Unless /tmp is very, very fast (e.g., a memory filesystem), using -pipe should speed the compile rather nicely. -- Chris BeHanna http://www.pennasoft.com Principal Consultant PennaSoft Corporation chris@pennasoft.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message