From owner-cvs-all Wed Oct 28 20:26:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA27781 for cvs-all-outgoing; Wed, 28 Oct 1998 20:26:33 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA27775; Wed, 28 Oct 1998 20:26:32 -0800 (PST) (envelope-from jdp@FreeBSD.org) From: John Polstra Received: (from jdp@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA06619; Wed, 28 Oct 1998 20:27:07 -0800 (PST) Date: Wed, 28 Oct 1998 20:27:07 -0800 (PST) Message-Id: <199810290427.UAA06619@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/contrib/gcc/config/i386 freebsd.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk jdp 1998/10/28 20:27:07 PST Modified files: contrib/gcc/config/i386 freebsd.h Log: Add a new predefined preprocessor symbol "__FreeBSD_cc_version", with a numeric value that describes the feature level of the compiler. This can be used to check for the presence/absence of FreeBSD-specific compiler features. The value is a decimal number whose digits have the form VRRRRFF, where: V = Compiler vendor. 0 (elided) means gcc. RRRR = Vendor's version number, e.g., 2721 for the current gcc version (2.7.2.1). FF = FreeBSD-specific revision level. 00 means the stock compiler from the vendor. The value of "__FreeBSD_cc_version" is hard-coded in "src/contrib/gcc/config/i386/freebsd.h" and must be incremented when new FreeBSD-specific compiler features are added. I considered simply picking up the value of FreeBSD_version from . But that would break cross compiles of gcc. PR: Part of the fix for gnu/8452 Suggested by: bde Revision Changes Path 1.20 +1 -1 src/contrib/gcc/config/i386/freebsd.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message