public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/45085] incorrect -Wuninitialized warning Date: Tue, 27 Jul 2010 12:42:00 -0000 [thread overview] Message-ID: <20100727124207.527.qmail@sourceware.org> (raw) In-Reply-To: <bug-45085-360@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from jakub at gcc dot gnu dot org 2010-07-27 12:42 ------- Simplified testcase for -m32 -O2 -Wuninitialized: struct S { char *s1; long s2; }; struct T { int t1; long t2; long t3; }; extern int fn2 (void); extern int fn3 (struct T); extern struct T fn4 (); extern int fn5 (char **, long *, int); extern void fn6 (void); extern void fn7 (void *); struct S *fn10 (); static int p; static void *q; extern struct T r; static struct T fn8 (struct T x, int y) { struct S *u = fn10 (); int v = fn5 (&u->s1, &u->s2, 0); while (1) { if (p) fn6 (); if (fn3 (x)) return fn4 (); if (y & 1) return r; v = fn5 (&u->s1, &u->s2, 1); } } struct T fn9 (struct T x, int y) { struct T t = fn8 (x, y); if (fn2 ()) fn7 (q); return t; } void * fn1 (void) { return fn9; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45085
next prev parent reply other threads:[~2010-07-27 12:42 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-07-26 16:11 [Bug tree-optimization/45085] New: " tromey at gcc dot gnu dot org 2010-07-26 16:13 ` [Bug tree-optimization/45085] " tromey at gcc dot gnu dot org 2010-07-27 12:42 ` jakub at gcc dot gnu dot org [this message] 2010-07-27 12:58 ` jakub at gcc dot gnu dot org 2010-07-27 13:25 ` [Bug tree-optimization/45085] [4.6 Regression] " jakub at gcc dot gnu dot org 2010-07-27 14:13 ` hubicka at gcc dot gnu dot org 2010-08-03 12:09 ` hubicka at gcc dot gnu dot org 2010-09-02 11:11 ` rguenth at gcc dot gnu dot org 2010-09-02 22:59 ` manu at gcc dot gnu dot org 2010-09-03 9:11 ` jakub at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100727124207.527.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).