From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100889 invoked by alias); 22 Nov 2017 18:42:07 -0000 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 Received: (qmail 100865 invoked by uid 89); 22 Nov 2017 18:42:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_LOW,SPAM_BODY autolearn=no version=3.3.2 spammy=HTo:U*tkoenig, Hx-spam-relays-external:sk:fronten, H*RU:sk:fronten X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 Nov 2017 18:42:05 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3yhrsQ5fX9z1rhGY; Wed, 22 Nov 2017 19:42:01 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3yhrsP5SYMz1qr3W; Wed, 22 Nov 2017 19:42:01 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id qC3aM5khQCmC; Wed, 22 Nov 2017 19:42:00 +0100 (CET) X-Auth-Info: MqOFhLbdMxSIe/RlG5dKK6/N5L1Uk8n5BSkAGP/Rd80ityc89ezQGpKOEhZ2/jjS Received: from localhost (ppp-83-171-172-191.dynamic.mnet-online.de [83.171.172.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 22 Nov 2017 19:42:00 +0100 (CET) Received: by localhost (Postfix, from userid 1000) id CA4B52C2681; Wed, 22 Nov 2017 19:41:57 +0100 (CET) From: Andreas Schwab To: Thomas Koenig Cc: Janne Blomqvist , fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Use __BYTE_ORDER__ predefined macro instead of runtime check References: <1511354047-32527-1-git-send-email-blomqvist.janne@gmail.com> <984714d2-9243-c60a-adb8-7b92cd9cae3e@netcologne.de> X-Yow: This PIZZA symbolizes my COMPLETE EMOTIONAL RECOVERY!! Date: Wed, 22 Nov 2017 19:22:00 -0000 In-Reply-To: <984714d2-9243-c60a-adb8-7b92cd9cae3e@netcologne.de> (Thomas Koenig's message of "Wed, 22 Nov 2017 19:16:19 +0100") Message-ID: <87lgiy88ay.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-11/txt/msg02073.txt.bz2 On Nov 22 2017, Thomas Koenig wrote: > Jerry already OK'd this, so you can commit if you want. > What you could do is to hide the macro invocation behind > a macro in libgfortran.h, something like > > #define BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) That can easily be confused with the macro which has different semantics. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."