From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id 83523388A422 for ; Sun, 9 Jan 2022 22:22:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 83523388A422 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1n6gaI-0003T8-7j for fortran@gcc.gnu.org; Sun, 09 Jan 2022 23:22:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: fortran@gcc.gnu.org From: Harald Anlauf Subject: Re: gfc_char_t Date: Sun, 9 Jan 2022 23:22:37 +0100 Message-ID: <293768dc-f61e-b4e2-e499-70ac3fdf0165@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Cc: fortran@gcc.gnu.org Content-Language: en-US In-Reply-To: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2022 22:22:45 -0000 Message-ID: <20220109222237.DrQa9PDtwdsTZneDLXIcWeh5IeBVofAUOEO5W9A_1Ww@z> Hi Andrew, Am 09.01.22 um 23:00 schrieb Andrew Pinski via Fortran: > On Sun, Jan 9, 2022 at 1:46 PM Harald Anlauf via Fortran > I suspect HOST_BITS_PER_INT will always be 32bit for all hosts GCC > will be supported but who knows. The point of the check is to find a > type which is at least 32bits enough to hold the wide character. > HOST_BITS_PER_* are defined in hwint.h: > #define HOST_BITS_PER_CHAR CHAR_BIT > #define HOST_BITS_PER_SHORT (CHAR_BIT * SIZEOF_SHORT) > #define HOST_BITS_PER_INT (CHAR_BIT * SIZEOF_INT) > #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) > #define HOST_BITS_PER_PTR (CHAR_BIT * SIZEOF_VOID_P) > > Where SIZEOF_* are defined while doing a configure and CHAR_BIT is > defined in limits.h which is defined as a preprocessor constant. > Does that help you understand the code better? ok, that makes things clearer now. (I've actually never looked into hwint.h before. I should have.) Thanks, Harald > Thanks, > Andrew Pinski > > >> >> Thanks for any enlightenment, >> Harald >> >