gcc/libgfortran/runtime
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
..
backtrace.c Remove configure check for unused fdopen. 2012-01-12 12:30:45 +02:00
bounds.c libgfortran.h (descriptor_dimension, [...]): Rename _lbound to lower_bound and data to base_addr. 2012-03-10 18:22:31 +01:00
compile_options.c PR 52428 Range checking when reading integer values. 2012-05-14 22:39:23 +03:00
convert_char.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
environ.c Fix handling of temporary files. 2012-05-05 09:30:51 +03:00
error.c
fpu.c
in_pack_generic.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
in_unpack_generic.c libgfortran.h (descriptor_dimension, [...]): Rename _lbound to lower_bound and data to base_addr. 2012-03-10 18:22:31 +01:00
main.c Fix handling of temporary files. 2012-05-05 09:30:51 +03:00
memory.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
pause.c
select_inc.c
select.c
stop.c
string.c