From owner-cvs-src@FreeBSD.ORG Wed Apr 28 00:29:10 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3811116A4CE; Wed, 28 Apr 2004 00:29:10 -0700 (PDT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FB0143D48; Wed, 28 Apr 2004 00:29:09 -0700 (PDT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i3S7Xh7m009818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Apr 2004 10:33:44 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i3S7SLos025400; Wed, 28 Apr 2004 10:28:21 +0300 (EEST) (envelope-from ru) Date: Wed, 28 Apr 2004 10:28:21 +0300 From: Ruslan Ermilov To: Julian Elischer Message-ID: <20040428072821.GC25064@ip.net.ua> References: <58076.1083096035@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GPJrCs/72TxItFYR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: cvs-src@FreeBSD.org cc: Poul-Henning Kamp cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: "M. Warner Losh" Subject: Re: cvs commit: src/sys/boot/i386/boot0 Makefile boot0.s boot0_512.s boot0sio.s X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 07:29:10 -0000 --GPJrCs/72TxItFYR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 27, 2004 at 02:37:10PM -0700, Julian Elischer wrote: > On Tue, 27 Apr 2004, Poul-Henning Kamp wrote: [...] > > If we have such a convention: yes. I wasn't aware of it. > >=20 > It has been the convention since before I made the first bootblocks. > The Makefiles know how to produce a .s from a .S using the C > preprocessor. > (or did I get this the other way around :-) >=20 It's not a "convention" per se. Instead, it gives the correct hint to the compiler. From gcc.info: : `FILE.s' : Assembler code. :=20 : `FILE.S' : Assembler code which must be preprocessed. :=20 : `-x c' : `-x c++' : `-x objective-c' : `-x assembler-with-cpp' : Specify the source language: C, C++, Objective-C, or assembly. : This has nothing to do with standards conformance or extensions; : it merely selects which base syntax to expect. If you give none : of these options, cpp will deduce the language from the extension : of the source file: `.c', `.cc', `.m', or `.S'. Some other common : extensions for C++ and assembly are also recognized. If cpp does : not recognize the extension, it will treat the file as C; this is : the most generic mode. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --GPJrCs/72TxItFYR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAj10VUkv4P6juNwoRAkvTAJ96AwWZM+apD2uJ8ORaHsA7YVjWugCeIGqc x5/oOzE5mfT5iftINNxbgYU= =g2qz -----END PGP SIGNATURE----- --GPJrCs/72TxItFYR--