From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29763 invoked by alias); 21 Jul 2011 22:38:26 -0000 Received: (qmail 29615 invoked by uid 22791); 21 Jul 2011 22:38:25 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Jul 2011 22:37:57 +0000 Received: from hpaq14.eem.corp.google.com (hpaq14.eem.corp.google.com [172.25.149.14]) by smtp-out.google.com with ESMTP id p6LMbtiT023922 for ; Thu, 21 Jul 2011 15:37:55 -0700 Received: from iyh42 (iyh42.prod.google.com [10.241.50.234]) by hpaq14.eem.corp.google.com with ESMTP id p6LMaOPD031458 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Thu, 21 Jul 2011 15:37:54 -0700 Received: by iyh42 with SMTP id 42so2090480iyh.11 for ; Thu, 21 Jul 2011 15:37:54 -0700 (PDT) Received: by 10.231.70.2 with SMTP id b2mr689145ibj.23.1311287874329; Thu, 21 Jul 2011 15:37:54 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id hq1sm2426224icc.2.2011.07.21.15.37.52 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jul 2011 15:37:53 -0700 (PDT) From: Ian Lance Taylor To: Basile Starynkevitch Cc: gcc@gcc.gnu.org Subject: Re: C99 Status - inttypes.h References: <4E283680.7040704@gmail.com> <20110721180549.47be5d76ef4813df693d2bf0@starynkevitch.net> Date: Thu, 21 Jul 2011 22:45:00 -0000 In-Reply-To: <20110721180549.47be5d76ef4813df693d2bf0@starynkevitch.net> (Basile Starynkevitch's message of "Thu, 21 Jul 2011 18:05:49 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes 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 X-SW-Source: 2011-07/txt/msg00415.txt.bz2 Basile Starynkevitch writes: > This brings another question. Can a GCC pass use intptr_t (the standard int of the same > size as a void* pointer)? This is quite useful, for instance when one wants to compute an > hash, or a unique sorted rank (to be used inside B-trees) from the address of a gimple > or a tree. Yes. There are a number of uses of intptr_t already in the gcc source code. We can get away with this because the configure script uses AC_TYPE_INTPTR_T (via GCC_STDINT_TYPES). Ian