david@ITD.NRL.NAVY.MIL (D.Witten Overhead) (12/20/89)
One of the nastier bugs that I run across in my code involves unitialized variables. I think these would be much easier to detect and fix if the compiler set each bit of each unitialized variable (whether static, or automatic) to be 1. I already set all of the heap memory used in my programs, while they are being developed, to be filled with 1s. It would delight me to have a gcc flag that would cause every bit of each unitialized variable to be a 1. Needless to say all this 1 filling wouldn't be done in the delivered version of any program. While I would be interested in having a patch that does this, I think its utility is general enough to merit inclusion in gcc proper. -With deep gratitude for gcc and its quality, David S. Witten witten@nrl-css.arpa witten@css.itd.nrl.navy.mil
rusty@garnet.berkeley.edu (12/21/89)
Why not just use lint? It will flag variables that are used before they are set. -- -------------------------------------- rusty c. wright rusty@violet.berkeley.edu ucbvax!violet!rusty