[gfortran,commited] Add variable name and locus for -fbounds-check
François-Xavier Coudert
Francois-Xavier.Coudert@lcp.u-psud.fr
Sun Nov 26 21:56:00 GMT 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bounds_check.diff
Type: application/octet-stream
Size: 3918 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061126/58662247/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bounds_check_detect.diff
Type: application/octet-stream
Size: 4132 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061126/58662247/attachment-0001.obj>
More information about the Fortran
mailing list