This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use __BYTE_ORDER__ predefined macro instead of runtime check
- From: Thomas Koenig <tkoenig at netcologne dot de>
- To: Janne Blomqvist <blomqvist dot janne at gmail dot com>, fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Nov 2017 19:16:19 +0100
- Subject: Re: [PATCH] Use __BYTE_ORDER__ predefined macro instead of runtime check
- Authentication-results: sourceware.org; auth=none
- References: <1511354047-32527-1-git-send-email-blomqvist.janne@gmail.com>
Hi janne,
Regtested on x86_64-pc-linux-gnu, Ok for trunk?
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__)
Also, I have opened PR libfortran/83097 for this, you
can mention this in the ChangeLog entry.
Regards
Thomas