From owner-freebsd-arch@FreeBSD.ORG Mon Feb 6 18:46:21 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E397106564A for ; Mon, 6 Feb 2012 18:46:21 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay011.isp.belgacom.be (mailrelay011.isp.belgacom.be [195.238.6.178]) by mx1.freebsd.org (Postfix) with ESMTP id 88B978FC14 for ; Mon, 6 Feb 2012 18:46:19 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvwEAFQYME9bsaFX/2dsb2JhbABDr0OBBoJPI4EaiDa4aYsuASoGAQsBCAUDAwkIF4J6DixtBA4CCgIhgxwEnlsDiSY Received: from 87.161-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.161.87]) by relay.skynet.be with ESMTP; 06 Feb 2012 19:16:50 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.5/8.14.5) with ESMTP id q16IGmH3004224; Mon, 6 Feb 2012 19:16:48 +0100 (CET) (envelope-from tijl@coosemans.org) From: Tijl Coosemans Date: Mon, 6 Feb 2012 19:16:41 +0100 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.3; i386; ; ) MIME-Version: 1.0 To: freebsd-arch@freebsd.org Content-Type: multipart/signed; boundary="nextPart1888453.YQFfBMEuoy"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201202061916.45998.tijl@coosemans.org> Cc: Damjan Jovanovic Subject: amd64 cc -m32 support and headers project branch X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 18:46:21 -0000 --nextPart1888453.YQFfBMEuoy Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, After a hiatus of almost a year I'd like to continue with merging i386 and amd64 headers to get "cc -m32" working on amd64. Previously I tried to fix any problems with the headers first before merging, but this turned out to be a long tedious process. So, because lack of -m32 support is blocking other development I'd like to just merge a minimal set of headers without any macro/type definition changes or other reorganisations. The result will be similar to existing powerpc and mips headers which already support both 32 and 64 bit. When that's done I can create a development branch to work on the problems that have come up. Possible goals for such a branch are: - Fix inconsistencies such as types defined in sys/ and their limits in machine/. Also, sometimes the limits don't have the correct type. - For types/limits defined under machine/ there is a lot of duplication between architectures. Try to move some to sys/. - Try to make headers compiler agnostic; limit use of __attribute__, __builtin_* to a single file. - Maybe remove support for gcc 2.*. The oldest version in ports is 3.4 and I suspect some headers don't compile anymore with gcc 2.*. - Add support for new compiler attributes/built-ins. - Add missing POSIX prototypes, maybe commented out with /* UNIMPL ... */ or similar so they can be grepped. - The gcc ports currently patch some system headers where they think something is non-standard. These patched headers override the system headers which means you have to rebuild these ports whenever you do installworld to make sure they contain the latest changes. Some headers are trivial to fix, others less so. If there are no objections, I'd like to start with the -m32 work in a week or so. --nextPart1888453.YQFfBMEuoy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iF4EABEIAAYFAk8wGQ0ACgkQfoCS2CCgtis7CQD7BNh94As/PtYliomKKL5RGARb 5y0MBTnSTZpnwASNNn0A/04yU/w6v+E8Yz1fNlVtIQcXfyLvcIV1/ZsO+yqjnJ20 =4vYu -----END PGP SIGNATURE----- --nextPart1888453.YQFfBMEuoy--