gcc/libgfortran/io
Janne Blomqvist 80b91c0b39 PR 52428 Range checking when reading integer values.
gcc/fortran ChangeLog:

2012-05-14  Janne Blomqvist  <jb@gcc.gnu.org>

	PR fortran/52428
	* gfortran.texi: Update _gfortran_set_options documentation.
	* invoke.texi: Remove runtime behavior description of
	-fno-range-check.
	* trans-decl.c (create_main_function): Don't pass the range-check
	setting to the library.


libgfortran ChangeLog:

2012-05-14  Janne Blomqvist  <jb@gcc.gnu.org>

	PR fortran/52428
	* io/io.h (max_value): Rename to si_max, remove second argument.
	* io/list_read.c (convert_integer): Use unsigned types when
	parsing the digits, set max value depending on the sign.
	* io/read.c (max_value): Rename to si_max, remove second argument,
	simplify.
	(read_decimal): Set max value depending on sign, always check
	overflow.
	(read_radix): Calculate max unsigned value directly.
	* libgfortran.h (struct compile_options_t): Remove range_check
	field.
	* runtime/compile_options.c (set_options): Skip handling
	options[7].
	(init_compile_options): Don't set removed field.


gcc/testsuite ChangeLog:

2012-05-14  Janne Blomqvist  <jb@gcc.gnu.org>

	PR fortran/52428
	* gfortran.dg/int_range_io_1.f90: New test.

From-SVN: r187478
2012-05-14 22:39:23 +03:00
..
close.c
fbuf.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
fbuf.h PR 47694 Read from named pipe fails 2011-02-23 08:59:51 +02:00
file_pos.c Introduce a size member function to struct stream. 2011-10-31 16:52:26 +02:00
format.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
format.h
inquire.c PR 50016 Slow I/O on MingW due to _commit 2011-11-09 17:46:15 +02:00
intrinsics.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
io.h PR 52428 Range checking when reading integer values. 2012-05-14 22:39:23 +03:00
list_read.c PR 52428 Range checking when reading integer values. 2012-05-14 22:39:23 +03:00
lock.c
open.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
read.c PR 52428 Range checking when reading integer values. 2012-05-14 22:39:23 +03:00
size_from_kind.c
transfer128.c
transfer.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
unit.c re PR libfortran/38199 (missed optimization: I/O performance) 2012-04-17 21:30:29 +02:00
unix.c Fix handling of temporary files. 2012-05-05 09:30:51 +03:00
unix.h Share vtables instead of replicating them for each unit. 2012-03-16 10:30:26 +02:00
write_float.def PR libfortran/52608 Move the removal of initial zeros. 2012-03-17 19:19:49 +02:00
write.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00