OSDN Git Service

2007-07-24 Thomas Koenig <tkoenig@gcc.gnu.org>
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jul 2007 05:52:44 +0000 (05:52 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jul 2007 05:52:44 +0000 (05:52 +0000)
commitc086aee152958250310d4f5ea3df854436c764fa
tree977427f50ee91accd2a6424d4d19533a4274a057
parentad4ce1d1a273c7509109ecfaa31beacbe4e071d6
2007-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/30814
* trans-decl.c (generate_function_code):  Add argument
for flag_bounds_check to the array for set_options.
* invoke.texi:  Mention that some checks require
-fbounds-check to be set during compilation of the
main program.

2007-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/30814
* libgfortran.h:  Add bounds_check to compile_options_t.
* runtime/compile_options.c (set_options):  Add handling
of compile_options.bounds_check.
* intrinsics/pack_generic.c (pack_internal):  Also determine
the number of elements if compile_options.bounds_check is
true.  Raise runtime error if a different array shape is
detected.

2007-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/30814
* gfortran.dg/pack_bounds_1.f90:  New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126866 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/invoke.texi
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pack_bounds_1.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/intrinsics/pack_generic.c
libgfortran/runtime/compile_options.c