From owner-cvs-all@FreeBSD.ORG Mon Jun 2 09:36:26 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC99537B401; Mon, 2 Jun 2003 09:36:26 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1076E43FA3; Mon, 2 Jun 2003 09:36:26 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.9) with ESMTP id h52GaCVm092187; Mon, 2 Jun 2003 09:36:17 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h52Ga8i2092182; Mon, 2 Jun 2003 09:36:08 -0700 (PDT) Date: Mon, 2 Jun 2003 09:36:08 -0700 From: "David O'Brien" To: Dag-Erling Smorgrav Message-ID: <20030602163608.GA92164@dragon.nuxi.com> References: <200306020029.h520TZwK088820@repoman.freebsd.org> <20030602161356.GA89038@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030602161356.GA89038@dragon.nuxi.com> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.1-BETA Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/include profile.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@FreeBSD.org List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2003 16:36:27 -0000 On Mon, Jun 02, 2003 at 09:13:56AM -0700, David O'Brien wrote: > On Mon, Jun 02, 2003 at 10:56:15AM +0200, Dag-Erling Smorgrav wrote: > > "David E. O'Brien" writes: > > > Log: > > > Use C99 compatable asm statements. > > > > Wrong. The keyword reserved by C99 for inline assembly is asm, not > > __asm. > > J.5.10 _The_asm_keyword_ > > The 'asm' keyword may be used to insert assembly language directly > into the translator output (6.8). The most common implementation is > via a statement of the form: > > asm ( 'character-string-literal' ) ; > > my read is that the compiler *may* implement it as above, or it may use > something different. Since GCC uses > ("character-string-literal" : : ); > I guess they decided GCC isn't compatable with J.5.10. I asked the GCC list about this: From: Tony Finch Section J.5 is very similar to section G.5 in ISO 9899:1990, so this is not a C99 issue. You appear to have missed the fact that the annexes are not normative, and that J.5 starts with the text: The following extensions are widely used in many systems, but are not portable to all implementations. The inclusion of any extension that may cause a strictly conforming program to become invalid renders an implementation nonconforming. Examples of such extensions are new keywords, extra library functions declared in standard headers, or predefined macros with names that do not begin with an underscore.