From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5348 invoked by alias); 10 Dec 2013 17:17:03 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 5338 invoked by uid 89); 10 Dec 2013 17:17:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from Unknown (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Dec 2013 17:17:01 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1VqQvN-0007KC-3N from joseph_myers@mentor.com ; Tue, 10 Dec 2013 09:16:45 -0800 Received: from SVR-IES-FEM-02.mgc.mentorg.com ([137.202.0.106]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 10 Dec 2013 09:16:44 -0800 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.2.247.3; Tue, 10 Dec 2013 17:16:42 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.76) (envelope-from ) id 1VqQvJ-0005EU-Lj; Tue, 10 Dec 2013 17:16:41 +0000 Date: Tue, 10 Dec 2013 17:17:00 -0000 From: "Joseph S. Myers" To: DJ Delorie CC: , Subject: Re: proposal to make SIZE_TYPE more flexible In-Reply-To: <201312100334.rBA3YwMq017441@greed.delorie.com> Message-ID: References: <201310300422.r9U4M6Mx002568@greed.delorie.com> <201310302219.r9UMJg9e001309@greed.delorie.com> <201311140158.rAE1wCkg006136@greed.delorie.com> <201311152338.rAFNc9CJ007961@greed.delorie.com> <201311212241.rALMf15B028014@greed.delorie.com> <201311220828.rAM8Ss0q011135@greed.delorie.com> <201311221933.rAMJXDUt031382@greed.delorie.com> <201311222118.rAMLIxag003002@greed.delorie.com> <201312100334.rBA3YwMq017441@greed.delorie.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2013-12/txt/msg00127.txt.bz2 On Mon, 9 Dec 2013, DJ Delorie wrote: > First pass at actual code. I took the path of using a new macro in > TARGET-modes.def and having genmodes build the relevent tables. Part > of the table is created by genmodes, the rest is created at runtime. This seems mostly plausible, though I don't see anything to ensure that __intN does not exist at all if the size matches one of the standard C types, or if the mode fails targetm.scalar_mode_supported_p. (To move __int128 to this system, given that its availability will depend on the options passed to the compiler, I suppose the macro call to create the type will be in machmode.def alongside the definition of TImode, but whether it does in fact end up creating a type will depend on such conditionals in the compiler - and code will need to check for NULL tree nodes for types not supported with the given options passed to the compiler.) -- Joseph S. Myers joseph@codesourcery.com