Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Apr 2003 12:41:39 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Dmitry Sivachenko <mitya@cavia.pp.ru>
Cc:        stable@freebsd.org
Subject:   Re: compiling kernel without -O
Message-ID:  <20030425124046.C82378@woozle.rinet.ru>
In-Reply-To: <20030425083108.GA53793@fling-wing.demos.su>
References:  <20030425083108.GA53793@fling-wing.demos.su>

next in thread | previous in thread | raw e-mail | index | archive | help
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> <snip>
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 ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030425124046.C82378>