From owner-freebsd-arch@FreeBSD.ORG Thu Jul 1 09:02:57 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 141A016A4CE for ; Thu, 1 Jul 2004 09:02:57 +0000 (GMT) Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id D39DB43D3F for ; Thu, 1 Jul 2004 09:02:56 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd11.aul.t-online.de by mailout04.sul.t-online.com with smtp id 1BfxSu-0004AY-06; Thu, 01 Jul 2004 11:02:44 +0200 Received: from Andro-Beta.Leidinger.net (S8GWyMZGoeEdW96FDc8n267ysNPeCJsT05R5D+Y7fz4CpxtacoX8Zt@[84.128.206.29]) by fmrl11.sul.t-online.com with esmtp id 1BfxSi-10m6Ea0; Thu, 1 Jul 2004 11:02:32 +0200 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) i6192V4D017319 for ; Thu, 1 Jul 2004 11:02:31 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Thu, 1 Jul 2004 11:02:31 +0200 From: Alexander Leidinger To: arch@freebsd.org Message-Id: <20040701110231.1d3a4c70@Magellan.Leidinger.net> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: S8GWyMZGoeEdW96FDc8n267ysNPeCJsT05R5D+Y7fz4CpxtacoX8Zt@t-dialin.net Subject: RFC: feature tests instead of compiler tests X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 09:02:57 -0000 Hi, the 106k large patch at http://www.leidinger.net/FreeBSD/current-patches/compiler_independence.diff introduces feature tests instead of checks for a particular compiler in the kernel source. The only checks for a particular compiler are in cdefs.h now. As per suggestion from bde I also removed parts of the backward compatibility to old gcc versions because the rest of the kernel can't be compiled anymore with those old versions. Interested parties may look at the cdefs.h part first and suggest some fixes (e.g. better names for the feature defines). The patch survives a run through the universe. Various revisions of this patch run fine on my desktop system since some months. Bye, Alexander. -- I'm available to get hired (preferred in .lu). http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7