From: Andreas Schwab <schwab@linux-m68k.org>
To: Thomas Koenig <tkoenig@netcologne.de>
Cc: Janne Blomqvist <blomqvist.janne@gmail.com>,
fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] Use __BYTE_ORDER__ predefined macro instead of runtime check
Date: Wed, 22 Nov 2017 19:22:00 -0000 [thread overview]
Message-ID: <87lgiy88ay.fsf@linux-m68k.org> (raw)
In-Reply-To: <984714d2-9243-c60a-adb8-7b92cd9cae3e@netcologne.de> (Thomas Koenig's message of "Wed, 22 Nov 2017 19:16:19 +0100")
On Nov 22 2017, Thomas Koenig <tkoenig@netcologne.de> 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 <endian.h> 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."
next prev parent reply other threads:[~2017-11-22 18:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-22 12:59 Janne Blomqvist
2017-11-22 16:57 ` Jerry DeLisle
2017-11-22 18:42 ` Thomas Koenig
2017-11-22 19:22 ` Andreas Schwab [this message]
2017-11-22 20:03 ` Janne Blomqvist
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lgiy88ay.fsf@linux-m68k.org \
--to=schwab@linux-m68k.org \
--cc=blomqvist.janne@gmail.com \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=tkoenig@netcologne.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).