This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Incorrect `might be used uninitialized' message
- To: talon at clark dot net
- Subject: Re: Incorrect `might be used uninitialized' message
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 01 Aug 1999 22:28:54 -0600
- cc: gcc-bugs at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <199907311218.IAA09699@beak.my.domain>you write:
> /* Demonstrates bug in egcs-2.91.66 on FreeBSD 3.2. To see the bug,
> compile using:
>
> gcc -c token.c -g -Wall -O2
>
> The bug is the warning:
>
> token.c:17: warning: `c' might be used uninitialized in this function
>
> egcs-2.91.60 on Solaris 2.6 reports this message twice.
> */
Thanks.
FWIW, gcc-2.95 does not generate the incorrect warning for this test. However,
the test does trigger a fairly obscure abort in the gcc-2.95 compiler. I've
asked someone more knowledgeable about the code in question to look into the
problem.
Thanks,
jeff