From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22477 invoked by alias); 3 Nov 2011 20:22:46 -0000 Received: (qmail 22467 invoked by uid 22791); 3 Nov 2011 20:22:45 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Nov 2011 20:22:31 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RM3ny-0005bv-K9 from joseph_myers@mentor.com ; Thu, 03 Nov 2011 13:22:30 -0700 Received: from digraph.polyomino.org.uk ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 3 Nov 2011 20:22:28 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.74) (envelope-from ) id 1RM3nv-0001vu-Nb; Thu, 03 Nov 2011 20:22:27 +0000 Date: Thu, 03 Nov 2011 20:33:00 -0000 From: "Joseph S. Myers" To: Aldy Hernandez cc: gcc-patches Subject: Re: [patch] 10/n: trans-mem: compiler tests (1 of 3) In-Reply-To: <4EB2DDC9.7030504@redhat.com> Message-ID: References: <4EB2DDC9.7030504@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: 2011-11/txt/msg00424.txt.bz2 On Thu, 3 Nov 2011, Aldy Hernandez wrote: > +#if (__SIZEOF_LONG_LONG__ == __SIZEOF_POINTER__) > +typedef unsigned long long ptrcast; > +#elif (__SIZEOF_LONG__ == __SIZEOF_POINTER__) > +typedef unsigned long ptrcast; > +#elif (__SIZEOF_INT__ == __SIZEOF_POINTER__) > +typedef unsigned int ptrcast; > +#else > +#error Add target support here > +#endif Using __UINTPTR_TYPE__ (or including and using uintptr_t) would seem better. -- Joseph S. Myers joseph@codesourcery.com