This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Regression going from egcs-1.03 to egcs-19980803
- To: Jeffrey A Law <law at cygnus dot com>
- Subject: Re: Regression going from egcs-1.03 to egcs-19980803
- From: Kamil Iskra <kamil at dwd dot interkom dot pl>
- Date: Mon, 17 Aug 1998 11:47:12 +0200 (MET DST)
- cc: egcs at cygnus dot com
On Sat, 15 Aug 1998, Jeffrey A Law wrote:
> > $ /u/local/bin/gcc -save-temps -O2 -Wall -c warnbug.cc
> > warnbug.cc: In function `int foo(int)':
> > warnbug.cc:11: warning: `int i' might be used uninitialized in this function
> The code to detect potentially uninitialized variables is not very
> good -- it reports many false positives.
>
> -O2 optimization enables global cse, which happens to rearrange code
> in a manner which triggers the false positive warnings.
This should definitely go into FAQ. I have this funny feeling it's going
to be one of the most frequently reported "bugs" in egcs-1.1.
/ Kamil Iskra AmigaOS Linux/i386 Linux/m68k \
| GeekGadgets GCC maintainer UNIX system administrator |
| iskra@student.uci.agh.edu.pl kiskra@ernie.icslab.agh.edu.pl |
\ kamil@dwd.interkom.pl http://student.uci.agh.edu.pl/~iskra /