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 Configure cleanup. 2011-11-09 20:25:58 +02:00
fpu.c cshift0.c: Update license to GPL3+exception. 2009-08-23 19:10:25 +00:00
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 Error printing thread safety, remove GFORTRAN_USE_STDERR 2011-05-14 10:55:51 +03:00
select_inc.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
select.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
stop.c ctime.c: Include <stdlib.h>. 2011-07-23 11:06:04 +00:00
string.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00