gcc/libgfortran/runtime
Janne Blomqvist 5675291ddb PR 83097 Use __BYTE_ORDER__ predefined macro instead of runtime check
By using the __BYTE_ORDER__ predefined macro we don't need the
determine_endianness function anymore.

Regtested on x86_64-pc-linux-gnu.

libgfortran/ChangeLog:

2017-11-22  Janne Blomqvist  <jb@gcc.gnu.org>

        PR libfortran/83097
	* io/inquire.c (inquire_via_unit): Use __BYTE_ORDER__ predefined
	macro.
	* io/open.c (st_open): Likewise.
	* io/transfer.c (data_transfer_init): Likewise.
	* io/write.c (btoa_big): Likewise.
	(otoa_big): Likewise.
	(ztoa_big): Likewise.
	* libgfortran.h (big_endian): Remove variable.
	(GFOR_POINTER_TO_L1): Use __BYTE_ORDER__ macro.
	* runtime/main.c (determine_endianness): Remove function.
	(init): Remove call to determine_endianness.
	* runtime/minimal.c: Remove setting big_endian variable.

From-SVN: r255072
2017-11-22 21:19:13 +02:00
..
backtrace.c Update copyright years. 2017-01-01 13:07:43 +01:00
bounds.c +2017-09-24 Dominique d'Humieres <dominiq@lps.ens.fr> 2017-09-24 15:47:11 +02:00
compile_options.c Update copyright years. 2017-01-01 13:07:43 +01:00
convert_char.c Update copyright years. 2017-01-01 13:07:43 +01:00
environ.c Typo fixes for "Don't assume __secure_getenv is available" 2017-05-12 09:56:41 +02:00
error.c Update copyright years. 2017-01-01 13:07:43 +01:00
fpu.c Update copyright years. 2017-01-01 13:07:43 +01:00
in_pack_generic.c Update copyright years. 2017-01-01 13:07:43 +01:00
in_unpack_generic.c Update copyright years. 2017-01-01 13:07:43 +01:00
main.c PR 83097 Use __BYTE_ORDER__ predefined macro instead of runtime check 2017-11-22 21:19:13 +02:00
memory.c Update copyright years. 2017-01-01 13:07:43 +01:00
minimal.c PR 83097 Use __BYTE_ORDER__ predefined macro instead of runtime check 2017-11-22 21:19:13 +02:00
pause.c Update copyright years. 2017-01-01 13:07:43 +01:00
select.c Update copyright years. 2017-01-01 13:07:43 +01:00
select_inc.c Update copyright years. 2017-01-01 13:07:43 +01:00
stop.c Update copyright years. 2017-01-01 13:07:43 +01:00
string.c Update copyright years. 2017-01-01 13:07:43 +01:00