This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: missed uninitialised variable warning
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Michael Matz <matz at suse dot de>
- Cc: Andrew Morton <akpm at osdl dot org>, <gcc at gcc dot gnu dot org>
- Date: 04 Aug 2003 10:52:17 -0300
- Subject: Re: missed uninitialised variable warning
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.44.0308041503590.17944-100000@wotan.suse.de>
On Aug 4, 2003, Michael Matz <matz@suse.de> wrote:
>> and that it was actually undesirable, but hard to fix.
> Hmm, hard to fix ... I don't know, the patch below does it for the easy
> 'x = x' case.
Cool. I don't often like when someone misleads me, but I'm happy this
was not hard to fix, after all :-)
Unfortunately, a proper fix is not this simple. We'd have to take
into account other uses of the variable, but not uses that simply take
its address. Or do we already get that right?
> But I immediately withdraw it, as I like this feature ;-)
Ideally we should have an attribute to disable the warning.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer