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]

Re: [4.5, Patch, Fortran] PR34656 - Add -fruntime-check=do for DO variable checks


Tobias Burnus wrote:
Hello,

this patch adds two run-time checks for DO loops:
a) That the DO step is not zero
b) That a loop variable is not modified

Contrary to other compilers, the error message is a bit unspecific (it
points to the DO line and does not even contain the name of the DO
variable [code->sym* is NULL]), but on the other hand it detects
modifications other compilers do not detect (see PR). If someone has an
idea how the diagnostics can be improved ...

Ok with me for 4.5, thanks! It seems 4.5 will help the user in several ways to fix errors in his code, like recursion/do or memory leak runtime checking... ;)


Yours,
Daniel

--
Done:  Arc-Bar-Cav-Rog-Sam-Val-Wiz
To go: Hea-Kni-Mon-Pri-Ran-Tou


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