From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2355 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Design idea for subarchs/abivariants Date: Wed, 28 Nov 2012 23:38:02 +0100 Message-ID: <20121128223801.GL10895@port70.net> References: <20121128192618.GA7491@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1354142298 8160 80.91.229.3 (28 Nov 2012 22:38:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2012 22:38:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2356-gllmg-musl=m.gmane.org@lists.openwall.com Wed Nov 28 23:38:30 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TdqGv-0007T8-6f for gllmg-musl@plane.gmane.org; Wed, 28 Nov 2012 23:38:25 +0100 Original-Received: (qmail 7601 invoked by uid 550); 28 Nov 2012 22:38:13 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7590 invoked from network); 28 Nov 2012 22:38:13 -0000 Content-Disposition: inline In-Reply-To: <20121128192618.GA7491@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2355 Archived-At: * Rich Felker [2012-11-28 14:26:18 -0500]: > 2. Making bits/endian.h, bits/fenv.h, and any other bits headers that > need to vary per-subarch into generated headers. I think this could be > accomplished with a single rule for generating bits/%.h from > bits/%.h.sh the way alltypes.h is generated now. The full > $(ARCH)$(ENDIAN)$(SUBARCH) could be passed to the script as $1, > allowing simple shell logic to choose the right version to output. i'm not sure about having many generated headers.. it could be a single generated bits/config.h with #define __FPU 1 #define __BYTEORDER 1234 and other bits/*.h could use these macros this way the generator is probably simpler, the drawback is that the cpp may need to do more work if bits/*.h have many conditional #if __FPU etc