[Patch, Fortran] PR fortran/31822: Runtime string length check for pointer assignment
Daniel Kraft
d@domob.eu
Wed Dec 17 13:24:00 GMT 2008
Hi,
building upon my recent patch for PR 38137 (runtime string length
checking for arguments to MERGE), this implements string length checks
for pointer assignment enabled by -fbounds-check. Additionally, I
changed the code doing the compile time checks to use
gfc_check_same_strlen instead of doing it inline, which also means it
gives a more detailed error message now (including the unequal string
lengths).
Regression testing on GNU/Linux-x86-32 at the moment, but I don't expect
any (did a test on a nearly identical patch version before).
Is this ok for trunk/4.4? Or should we wait for 4.5 with it, as it got
a somewhat lengthier patch than the one before?
Thanks,
Daniel
--
Done: Arc-Bar-Cav-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri-Ran
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch2.changelog
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081217/094f6184/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch2.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081217/094f6184/attachment-0001.ksh>
More information about the Gcc-patches
mailing list