Bounds check & cross-language
Dennis Wassel
dennis.wassel@googlemail.com
Sun Aug 29 15:36:00 GMT 2010
2010/7/22 N.M. Maclaren <nmm1@cam.ac.uk>:
> It's only the cross-routine string checking that is the problem. gfortran
> doesn't check array bounds across routine calls, which means that it will
> catch only the more obvious bounds errors - only NAG Fortran does the full
> job. So you don't need to drop ALL string checking.
Nick,
thanks for the clarification (and sorry for the late feedback)
I think I see what you mean:
To do this properly I would have to annotate every Fortran routine
with string argument(s) with a hypothetical
"no-string-bounds-checking" option, if it is ever called from C. I
guess one could abuse !GCC$ ATTRIBUTES for this, but I hate the very
idea. So I guess I am stuck with the all-or-nothing approach of
disabling bounds checking for every source file with such routines,
right?
Cheers,
Dennis
More information about the Fortran
mailing list