[Bug middle-end/42636] warning: ‘line[0]’ may be used uninitialized in this function

2011-11-07 Thread belyshev at depni dot sinp.msu.ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42636

Serge Belyshev  changed:

   What|Removed |Added

   Keywords||diagnostic
 Status|UNCONFIRMED |RESOLVED
 CC||belyshev at depni dot
   ||sinp.msu.ru
  Known to work||4.2.0, 4.6.0
 Resolution||FIXED
   Target Milestone|--- |4.6.0
  Known to fail||4.3.0, 4.4.0, 4.5.0

--- Comment #2 from Serge Belyshev  
2011-11-07 15:50:14 UTC ---
Fixed by commit r158835 in 4.6.0:

2010-04-28  Xinliang David Li  

   PR c/42643
   * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
   ...


Bad diagnostics in comment #1 is a separate issue.


[Bug middle-end/42636] warning: ‘line[0]’ may be used uninitialized in this function

2011-04-12 Thread gccbugs at joern dot heissler.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42636

--- Comment #1 from Joern Heissler  
2011-04-12 21:51:30 UTC ---
New compiler output:

gcc version 4.5.2 (Debian 4.5.2-8) outputs a new message:

$ gcc-4.5 -O -Wuninitialized kr-1-17.c
#‘ssa_name’ not supported by pp_c_expression#]’kr-1-17.c: In function ‘main’:
kr-1-17.c:12:10: warning:  may be used uninitialized in this function

gcc version 4.6.1 20110329 (prerelease) (Debian 4.6.0-2) outputs nothing at
all.
$ gcc-4.6 -O3 -Wall -Wextra -pedantic kr-1-17.c

The bug might be fixed in the latest versions.

Can anyone please comment on this?