This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[gfortran,commited] Add variable name and locus for -fbounds-check
- From: François-Xavier Coudert <Francois-Xavier dot Coudert at lcp dot u-psud dot fr>
- To: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>, gcc-patches patches <gcc-patches at gcc dot gnu dot org>
- Cc: Tobias Burnus <burnus at net-b dot de>
- Date: Sun, 26 Nov 2006 13:34:40 +0100
- Subject: [gfortran,commited] Add variable name and locus for -fbounds-check
Hi all,
The attached patch (bounds_check.diff), commited minutes ago to
mainline, makes sure we generate runtime error messages for -fbounds-
check on arrays that include the correct variable name and locus. It
was bootstrapped & regtested on i686-linux both with and without -
fbounds-check.
Before that patch, there were cases where we didn't use a variable
name, leading to weird error messages, or where we didn't have access
to the precise locus for the guilty code. I used the second patch
(bounds_check_detect.diff) to detect such cases in the whole
testsuite. I studied the cases where we didn't include correct
variable name and locus information, and added these to the front-end.
I intend to backport this patch to 4.2, as it has very low risk and
only affects code compiled with -fbounds-check.
Thanks,
FX
Attachment:
bounds_check.diff
Description: Binary data
Attachment:
bounds_check_detect.diff
Description: Binary data