From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3734 invoked by alias); 4 Sep 2009 12:53:03 -0000 Received: (qmail 3721 invoked by uid 22791); 4 Sep 2009 12:53:02 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f207.google.com (HELO mail-fx0-f207.google.com) (209.85.220.207) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Sep 2009 12:52:56 +0000 Received: by fxm3 with SMTP id 3so646266fxm.8 for ; Fri, 04 Sep 2009 05:52:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.24.71 with SMTP id u7mr9135936bkb.35.1252068774022; Fri, 04 Sep 2009 05:52:54 -0700 (PDT) In-Reply-To: <4AA10C84.9010309@net-b.de> References: <4AA10C84.9010309@net-b.de> Date: Fri, 04 Sep 2009 12:53:00 -0000 Message-ID: <90baa01f0909040552v1b27414bo37a7e60ad0438b5b@mail.gmail.com> Subject: Re: [patch]: Add check for stdint header From: Kai Tietz To: Tobias Burnus Cc: gcc patches , Paolo Bonzini , Richard Guenther , Richard Henderson , Ralf Wildenhues Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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: 2009-09/txt/msg00353.txt.bz2 2009/9/4 Tobias Burnus : > Paolo Bonzini wrote: >> You can use GCC_STDINT_TYPES (new in this version) instead of >> GCC_HEADER_STDINT since GCC does not need int_leastNN_t and int_fastNN_t. > > That is not completely true. The Fortran front end needs to know the > storage size of the int_{least,fast}*_t in order to make the > c_int_{least,fast}*_t kind parameters available in the ISO_C_BINDING > module (for interoperability with C). The size needs to match the one on > the target system in order that C and Fortran can interoperate. > > I have not checked whether the change affects this (cf. > gcc/fortran/iso-c-binding.def and users of this file), but one should > check this before submittal. > > Tobias > Well, I bootstrapped this with Paolo's stdint.m4 patch, and it worked on linux32 and linux64 (i386), and for x86_64-pc-mingw32, too. Just out of curiosity, who is the size in gfortran frontend for int_{least,fast}*_t done, as for gcc until now no stdint.h/inttypes.h file was used? Kai -- | (\_/) This is Bunny. Copy and paste | (='.'=) Bunny into your signature to help | (")_(") him gain world domination