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 ***
------------------------------------------------------------------------