summaryrefslogtreecommitdiff
path: root/libgfortran/runtime
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-15 20:02:58 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-15 20:02:58 +0000
commit6cbaf5591bb3d441f5b159797d6d60ae85f90f44 (patch)
tree7dab0a0f3b00357fe532baef7d039ca7f882b94c /libgfortran/runtime
parentbd9c6afef4fdabb5d8566dacdcdaeb80b3a55acb (diff)
downloadgcc-6cbaf5591bb3d441f5b159797d6d60ae85f90f44.tar.gz
2008-06-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/36515 * libgfortran.h (compile_options_t): Add int range_check to structure. * runtime/compile_options.c (set_options): Add range_check option. (init_compile_options): Likewise. *io/read.c (read_decimal): Change overflow checks to include range_check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136822 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/runtime')
-rw-r--r--libgfortran/runtime/compile_options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/runtime/compile_options.c b/libgfortran/runtime/compile_options.c
index 8e0a3fe30ce..c62fe1c326a 100644
--- a/libgfortran/runtime/compile_options.c
+++ b/libgfortran/runtime/compile_options.c
@@ -105,6 +105,8 @@ set_options (int num, int options[])
compile_options.sign_zero = options[5];
if (num >= 7)
compile_options.bounds_check = options[6];
+ if (num >= 8)
+ compile_options.range_check = options[7];
/* If backtrace is required, we set signal handlers on most common
signals. */
@@ -146,6 +148,7 @@ init_compile_options (void)
compile_options.dump_core = 0;
compile_options.backtrace = 0;
compile_options.sign_zero = 1;
+ compile_options.range_check = 1;
}
/* Function called by the front-end to tell us the