Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 2002 13:47:20 +0200
From:      Udo Schweigert <udo.schweigert@siemens.com>
To:        Ying-Chieh Liao <ijliao@FreeBSD.ORG>
Cc:        stable@FreeBSD.ORG
Subject:   Re: make buildkernel fails
Message-ID:  <20020708114720.GA67696@alaska.cert.siemens.de>
In-Reply-To: <20020708113230.GA20705@terry.dragon2.net>
References:  <1025817347.65620.0.camel@blue.mcneil.com> <20020705130910.GA891@terry.dragon2.net> <20020705145359.GA3161@terry.dragon2.net> <20020705172942.GA8309@terry.dragon2.net> <20020707125040.GA63922@terry.dragon2.net> <20020708111800.GA20463@terry.dragon2.net> <20020708113230.GA20705@terry.dragon2.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 08, 2002 at 19:32:30 +0800, Ying-Chieh Liao wrote:
> On Mon, Jul 08, 2002 at 19:18:00 +0800, Ying-Chieh Liao wrote:
>> I dont know what happened to GCC
>> but after I add -O2 to CFLAGS, everything is OK !
> 
> I've re-produced this bug on another machine
> build kernel without any -O failed, -O or -O2 is ok
> 
> anybody else could you please test this ?

Yes, for me it fails here:

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'
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'
machine/atomic.h: In function `atomic_subtract_char':
..............

With "-O -pipe" it's OK.

Best regards

--
Udo Schweigert, Siemens AG   | Voice      : +49 89 636 42170
CT IC CERT, Siemens CERT     | Fax        : +49 89 636 41166
D-81730 Muenchen / Germany   | email      : udo.schweigert@siemens.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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