This is the mail archive of the gcc@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]

Re: Uninitialized warnings


On Wed, Jul 18, 2001 at 12:55:04PM -0400, dewar@gnat.com wrote:
> One request I have, and please ignore it if it has already been discussed,
> is that the uninitialized variable warning is currently very uninformative,
> since it does not indicate the site at which the uninitialized reference
> may occur, and sometimes it takes a big effort to determine why the warning
> is being issued. Is this information that can be provided?

Not with the current code.

The way this works is that we solve global data flow, and for
every variable that is live on entry to the function we check
that it is either a global register or a function argument.
Anything else gets a warning.


r~


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