public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25575]  New: some uninitialized warning disappear when compile without -O
@ 2005-12-27 12:16 lidaobing at gmail dot com
  2005-12-27 12:23 ` [Bug c/25575] " steven at gcc dot gnu dot org
  2007-06-18 14:17 ` matze at braunis dot de
  0 siblings, 2 replies; 3+ messages in thread
From: lidaobing at gmail dot com @ 2005-12-27 12:16 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]

Hello,

see example:

---->
$ cat warning.c
int main()
{
  int i;
  return i;
}
$ gcc -Wall warning.c
$ gcc -Wall -O0 warning.c
$ gcc -Wall -O warning.c
warning.c: In function ‘main’:
warning.c:4: warning: ‘i’ is used uninitialized in this function
warning.c
$ gcc -Wall -O1 warning.c
warning.c: In function ‘main’:
warning.c:4: warning: ‘i’ is used uninitialized in this function
$ gcc -Wall -O2 warning.c
warning.c: In function ‘main’:
warning.c:4: warning: ‘i’ is used uninitialized in this function
$ gcc -Wall -O3 warning.c
warning.c: In function ‘main’:
warning.c:4: warning: ‘i’ is used uninitialized in this function
$
<------


-- 
           Summary: some uninitialized warning disappear when compile
                    without -O
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lidaobing at gmail dot com


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


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

end of thread, other threads:[~2007-06-18 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-27 12:16 [Bug c/25575] New: some uninitialized warning disappear when compile without -O lidaobing at gmail dot com
2005-12-27 12:23 ` [Bug c/25575] " steven at gcc dot gnu dot org
2007-06-18 14:17 ` matze at braunis dot de

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).