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] |
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 ...
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] |