gcc/libgfortran/io
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
..
close.c close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
fbuf.c close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
fbuf.h close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
file_pos.c re PR fortran/80741 ([Regression 7/8] DTIO wrong code causes incorrect behaviour of namelist READ) 2017-05-17 20:33:20 +00:00
format.c re PR libfortran/81938 (valgrind error message and heap-buffer-overflow on address sanitized libgfortran.so) 2017-10-27 17:50:22 +00:00
format.h Update copyright years. 2017-01-01 13:07:43 +01:00
inquire.c PR 83097 Use __BYTE_ORDER__ predefined macro instead of runtime check 2017-11-22 21:19:13 +02:00
intrinsics.c close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
io.h re PR libfortran/78549 (Very slow formatted internal file output) 2017-11-21 02:17:11 +00:00
list_read.c re PR fortran/78387 (OpenMP segfault/stack size exceeded writing to internal file) 2017-08-28 03:42:47 +00:00
lock.c close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
open.c PR 83097 Use __BYTE_ORDER__ predefined macro instead of runtime check 2017-11-22 21:19:13 +02:00
read.c close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
size_from_kind.c
transfer128.c
transfer.c PR 83097 Use __BYTE_ORDER__ predefined macro instead of runtime check 2017-11-22 21:19:13 +02:00
unit.c re PR libfortran/78549 (Very slow formatted internal file output) 2017-11-21 02:17:11 +00:00
unix.c unix.c (buf_write): Return early if there is nothing to write. 2017-07-24 10:42:23 +00:00
unix.h close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
write_float.def
write.c PR 83097 Use __BYTE_ORDER__ predefined macro instead of runtime check 2017-11-22 21:19:13 +02:00