This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]