From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32752 invoked by alias); 28 Mar 2007 04:29:01 -0000 Received: (qmail 32735 invoked by uid 22791); 28 Mar 2007 04:28:59 -0000 X-Spam-Check-By: sourceware.org Received: from server.usilu.net (HELO mail.usilu.net) (195.176.178.200) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Mar 2007 05:28:56 +0100 Received: from [1.240.182.245] ([213.140.22.65] RDNS failed) by mail.usilu.net over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Mar 2007 06:31:54 +0200 Message-ID: <4609EEE9.5050409@lu.unisi.ch> Date: Wed, 28 Mar 2007 06:10:00 -0000 From: Paolo Bonzini Reply-To: bonzini@gnu.org User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Paolo Carlini CC: Richard Henderson , libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: References: <20070327220453.GA4342@redhat.com> <46099F40.4060409@suse.de> In-Reply-To: <46099F40.4060409@suse.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg01819.txt.bz2 > Yes, that's a problem, it's available only in C99, and we can't assume > that kind of libc, in general. I don't know, maybe we can use long long > (or maybe better, unsigned long long), and choose the right type via > something like: > > typedef __gnu_cxx::__conditional_type<(sizeof(const void*) <= > sizeof(unsigned long)), unsigned long, unsigned long long>::__type > _UIntPtrType; You can also use typedef unsigned int __attribute__((__mode__(__pointer__))) _UIntPtrType; Paolo