[Bug libfortran/27524] [4.1 only] -fbounds-check interacts with array function
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jun 3 16:07:00 GMT 2006
------- Comment #7 from fxcoudert at gcc dot gnu dot org 2006-06-03 16:07 -------
Subject: Bug 27524
Author: fxcoudert
Date: Sat Jun 3 16:06:51 2006
New Revision: 114342
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114342
Log:
PR fortran/19777
* trans-array.c (gfc_conv_array_ref): Don't perform out-of-bounds
checking for assumed-size arrrays.
* gfortran.dg/bounds_check_2.f: New test.
PR fortran/27524
* trans-array.c (gfc_trans_dummy_array_bias): Don't use stride as
a temporary variable when -fbounds-check is enabled, since its
value will be needed later.
* gfortran.dg/bounds_check_1.f90: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/bounds_check_1.f90
- copied unchanged from r114142,
trunk/gcc/testsuite/gfortran.dg/bounds_check_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/bounds_check_2.f
- copied unchanged from r114153,
trunk/gcc/testsuite/gfortran.dg/bounds_check_2.f
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/trans-array.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27524
More information about the Gcc-bugs
mailing list