From owner-freebsd-questions Tue Jan 4 6:39:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from server.baldwin.cx (ric-40.freedomnet.com [198.240.105.40]) by hub.freebsd.org (Postfix) with ESMTP id 2824315320 for ; Tue, 4 Jan 2000 06:39:10 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from john.baldwin.cx (john [10.0.0.2]) by server.baldwin.cx (8.9.3/8.9.3) with ESMTP id JAA34430; Tue, 4 Jan 2000 09:37:49 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-Id: <200001041437.JAA34430@server.baldwin.cx> X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 04 Jan 2000 09:37:49 -0500 (EST) From: John Baldwin To: Jonathon McKitrick Subject: RE: gcc vs egcs Cc: freebsd-questions@FreeBSD.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 28-Dec-99 Jonathon McKitrick wrote: > > Correct me if i'm wrong, but is BSD moving to egcs in 4.0? How will this > change the generated code? Is it just more C++ compatible? On a -current box: > cc -v Using builtin specs. gcc version 2.95.2 19991024 (release) Thus, -current is using egcs for its C compiler. gcc 2.95.2 is an ANSI C++ compiler, which does result in some changes from the behavior of even egcs 1.x. For example, some older versions contain tests for the 'inline' and 'const' keywords that work with gcc 2.[78].x and egcs 1.x but are actually invalid according to the relatively new ANSI C++ standard and thus fail on gcc 2.95.2. If you are really interested in learning more about the C compiler, e-mail obrien@FreeBSD.org, as he is Mr. C Compiler. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message