From owner-freebsd-stable Tue Aug 7 13:32:16 2001 Delivered-To: freebsd-stable@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id 703B737B409 for ; Tue, 7 Aug 2001 13:32:10 -0700 (PDT) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id GAA22000; Wed, 8 Aug 2001 06:32:07 +1000 (EST) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37645) with ESMTP id <01K6VR219NOGVO1U3H@cim.alcatel.com.au>; Wed, 8 Aug 2001 06:31:57 +1000 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.1/8.11.1) id f77KW4v25411; Wed, 08 Aug 2001 06:32:04 +1000 (EST envelope-from jeremyp) Content-return: prohibited Date: Wed, 08 Aug 2001 06:32:03 +1000 From: Peter Jeremy Subject: Re: Current stable (fresh sup) broken for no opt In-reply-to: <0108070132380H.03705@prime.vsservices.com>; from gclarkii@geektech.com on Tue, Aug 07, 2001 at 01:32:38AM -0500 To: GB Clark II Cc: freebsd-stable@FreeBSD.ORG Mail-Followup-To: GB Clark II , freebsd-stable@FreeBSD.ORG Message-id: <20010808063203.M506@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <0108070132380H.03705@prime.vsservices.com> 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 2001-Aug-07 01:32:38 -0500, GB Clark II wrote: >When I compile a kernel with no optimiztion(sp) it will bomb in >atomic with a problem in the asm. With -O it works fine. I presume you're talking about the i386 here... There are problems with gcc's constraint checking - last time I tried, I couldn't write a set of operand constraints (for these atomic operations) that would compile both with and without "-O". You could try using the "gcc <= 2.8 version" of the ATOMIC_ASM macro - based on a quick check, this appears to work correctly with "-O0". Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message