public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/19430] New: Missing warning
@ 2005-01-13 20:05 terra at gnome dot org
  2005-01-13 20:32 ` [Bug middle-end/19430] Missing uninitialized warning pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: terra at gnome dot org @ 2005-01-13 20:05 UTC (permalink / raw)
  To: gcc-bugs

the program below should result in a warning that "j" might be used
uninitialized.  If the "baz" call is replaced with an explicit assignment
to "j" a warning is generated as expected.

> gcc-3.4.2 -c -Wall -O2 ~/foo.c
(stunning silence)


extern int bar (int);
extern void baz (int *);

int
foo (int i)
{
  int j;

  if (bar (i)) {
    // These should do the same with respect to `j':
    baz (&j);
    // j = 1;
  } else {
  }

  return j;
}

-- 
           Summary: Missing warning
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: terra at gnome dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: sparc-sun-solaris2.8, i586-suse-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19430


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2009-11-19 12:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
2006-03-10 15:25 ` [Bug middle-end/19430] Missing uninitialized warning ciaccio at disi dot unige dot it
2006-03-10 15:28 ` pinskia at gcc dot gnu dot org
2006-03-10 15:31 ` dnovillo at gcc dot gnu dot org
2006-03-10 15:37 ` mike at codeweavers dot com
2006-09-25 22:44 ` pinskia at gcc dot gnu dot org
2007-03-02 23:36 ` skunk at iskunk dot org
2007-03-20 17:43 ` pinskia at gcc dot gnu dot org
2007-08-15 15:36 ` [Bug middle-end/19430] V_MAY_DEF (taking address of var) causes missing " manu at gcc dot gnu dot org
2007-08-17  9:17 ` manu at gcc dot gnu dot org
2008-08-20 22:32 ` manu at gcc dot gnu dot org
2009-11-19 12:01 ` manu at gcc dot gnu dot org
2005-01-13 20:05 [Bug c/19430] New: Missing warning terra at gnome dot org
2005-01-13 20:32 ` [Bug middle-end/19430] Missing uninitialized warning pinskia at gcc dot gnu dot org
2005-09-10  2:16 ` pinskia at gcc dot gnu dot org
2005-09-10  2:17 ` pinskia at gcc dot gnu dot org
2005-09-10  2:19 ` pinskia at gcc dot gnu dot org
2005-09-10  8:07 ` mike at codeweavers dot com
2005-09-12 21:55 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).