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: Regression going from egcs-1.03 to egcs-19980803


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 /



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