[Bug regression/54374] New: analysis for "may be used uninitialized" degraded...

2012-08-25 Thread gbburkhardt at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54374

 Bug #: 54374
   Summary: analysis for "may be used uninitialized" degraded...
Classification: Unclassified
   Product: gcc
   Version: 4.6.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: regression
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: gbburkha...@gmail.com


Created attachment 28083
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28083
example code

gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Target: x86_64-linux-gnu

With the 4.6.3 compiler for the attached code, I get:

 gcc -g -c -O2 -Wall e?.c -m32
e0.c: In function "main":
e0.c:277:21: warning: "level" may be used uninitialized in this function
[-Wuninitialized]
e0.c:279:12: warning: "portno" may be used uninitialized in this function
[-Wuninitialized]

but with the 4.5.2 compiler, I get:

gcc -O2 -Wall -c e?.c
e0.c: In function "main":
e0.c:259:9: warning: "portno" may be used uninitialized in this function
e0.c:263:9: warning: "level" may be used uninitialized in this function
e1.c: In function "main":
e1.c:259:9: warning: "portno" may be used uninitialized in this function
e1.c:264:9: warning: "level" may be used uninitialized in this function

gcc --version
gcc (Ubuntu/Linaro 4.5.1-7ubuntu2) 4.5.1
Target: i686-linux-gnu


[Bug regression/54374] analysis for "may be used uninitialized" degraded...

2012-08-25 Thread gbburkhardt at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54374

--- Comment #1 from Glenn Burkhardt  2012-08-25 
16:20:11 UTC ---
Created attachment 28084
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28084
example code


[Bug regression/54374] analysis for "may be used uninitialized" degraded...

2012-09-04 Thread gbburkhardt at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54374

--- Comment #3 from Glenn Burkhardt  2012-09-04 
21:40:55 UTC ---
I'd be more convinced about 'works for me' if I could see the full version
number of the compiler.  I've just double checked that the files I uploaded are
correct, and tried it with gcc 4.6.1 and 4.6.3, with the same result.  -m32 or
-m64 doesn't matter.