From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19289 invoked by alias); 12 Apr 2011 19:09:29 -0000 Received: (qmail 19262 invoked by uid 22791); 12 Apr 2011 19:09:28 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cc-smtpout3.netcologne.de (HELO cc-smtpout3.netcologne.de) (89.1.8.213) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Apr 2011 19:09:23 +0000 Received: from cc-smtpin1.netcologne.de (cc-smtpin1.netcologne.de [89.1.8.201]) by cc-smtpout3.netcologne.de (Postfix) with ESMTP id D34BE12595; Tue, 12 Apr 2011 21:09:21 +0200 (CEST) Received: from [192.168.0.197] (xdsl-87-79-192-206.netcologne.de [87.79.192.206]) by cc-smtpin1.netcologne.de (Postfix) with ESMTPSA id 88C3B11E77; Tue, 12 Apr 2011 21:09:19 +0200 (CEST) Message-ID: <4DA4A35E.7070207@netcologne.de> Date: Tue, 12 Apr 2011 19:09:00 -0000 From: Thomas Koenig User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 MIME-Version: 1.0 To: Janne Blomqvist CC: Fortran List , GCC Patches Subject: Re: [Patch, libfortran] Type cleanup References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed 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: 2011-04/txt/msg00927.txt.bz2 Hi Janne, > the attached patch does a bit of janitorial type cleanup for the > library. It replaces the use of ssize_t with ptrdiff_t or index_type > where appropriate; this is entirely for documentation purposes, as on > all targets we support ssize_t == ptrdiff_t. > > ssize_t is a POSIX type used in the IO functions, and refers to the > size of an object or -1 for an error (hence there is SSIZE_MAX but not > SSIZE_MIN). > > ptrdiff_t is a C89 type which is the result of subtracting two > pointers; hence it's also the "natural" type for array indexes. > > Regtested on x86_64-unknown-linux-gnu, Ok for trunk? OK. Thanks for the patch! Thomas