From owner-freebsd-stable Mon Jul 8 4:47:32 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 4FFC737B400; Mon, 8 Jul 2002 04:47:29 -0700 (PDT) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id A067143E4A; Mon, 8 Jul 2002 04:47:27 -0700 (PDT) (envelope-from ust@cert.siemens.de) Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by david.siemens.de (8.11.6/8.11.6) with ESMTP id g68BlPb29861; Mon, 8 Jul 2002 13:47:26 +0200 (MEST) Received: from mars.cert.siemens.de (ust.mchp.siemens.de [139.23.201.17]) by mail3.siemens.de (8.11.6/8.11.6) with ESMTP id g68BlPV11511; Mon, 8 Jul 2002 13:47:25 +0200 (MEST) Received: from alaska.cert.siemens.de (alaska.cert.siemens.de [139.23.202.134]) by mars.cert.siemens.de (8.12.5/8.12.5/Siemens CERT [ $Revision: 1.25 ]) with ESMTP id g68BlPug071935; Mon, 8 Jul 2002 13:47:25 +0200 (CEST) (envelope-from ust@alaska.cert.siemens.de) Received: from alaska.cert.siemens.de (alaska.cert.siemens.de [127.0.0.1]) by alaska.cert.siemens.de (8.12.5/8.12.5/alaska [ $Revision: 1.12 ]) with ESMTP id g68BlPoF067780; Mon, 8 Jul 2002 13:47:25 +0200 (CEST) (envelope-from ust@alaska.cert.siemens.de) Received: (from ust@localhost) by alaska.cert.siemens.de (8.12.5/8.12.5/alaska [ $Revision: 1.3 ]) id g68BlLT1067779; Mon, 8 Jul 2002 13:47:21 +0200 (CEST) (envelope-from ust) Date: Mon, 8 Jul 2002 13:47:20 +0200 From: Udo Schweigert To: Ying-Chieh Liao Cc: stable@FreeBSD.ORG Subject: Re: make buildkernel fails Message-ID: <20020708114720.GA67696@alaska.cert.siemens.de> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20020708113230.GA20705@terry.dragon2.net> X-Operating-System: FreeBSD 4.6-STABLE User-Agent: Mutt/1.5.1i 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 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