public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/57149] New: [4.8 Regression] wrong -Wmaybe-uninitialized warning with -Os Date: Thu, 02 May 2013 19:33:00 -0000 [thread overview] Message-ID: <bug-57149-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57149 Bug #: 57149 Summary: [4.8 Regression] wrong -Wmaybe-uninitialized warning with -Os Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: doko@gcc.gnu.org Created attachment 30007 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30007 preprocessed source seen when building a driver in an arm linux 3.4 kernel, the warning shows up when building with -Os, but not when building with -O[g123], works with all optimization levels in 4.7.3. $ gcc -Wall -Wno-unused-but-set-variable -Os -marm -mapcs -mabi=aapcs-linux -march=armv7-a -msoft-float -g -c ci13xxx_msm.i) In file included from drivers/usb/gadget/ci13xxx_msm.c:21:0: drivers/usb/gadget/ci13xxx_msm.c: In function 'msm_udc_irq': drivers/usb/gadget/ci13xxx_udc.c:2544:13: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] dbg_event(_usb_addr(mEp), "ERROR", err); ^ drivers/usb/gadget/ci13xxx_udc.c:2357:23: note: 'err' was declared here int type, num, dir; int err = -EINVAL; ^ $ gcc -Wall -Wno-unused-but-set-variable -Og -marm -mapcs -mabi=aapcs-linux -march=armv7-a -msoft-float -g -c ci13xxx_msm.i $
next reply other threads:[~2013-05-02 19:33 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-05-02 19:33 doko at gcc dot gnu.org [this message] 2013-05-03 8:58 ` [Bug tree-optimization/57149] " rguenth at gcc dot gnu.org 2013-05-03 8:58 ` rguenth at gcc dot gnu.org 2013-05-03 8:59 ` rguenth at gcc dot gnu.org 2013-05-07 7:01 ` [Bug tree-optimization/57149] [4.8/4.9 " jakub at gcc dot gnu.org 2013-05-07 10:40 ` jakub at gcc dot gnu.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=bug-57149-4@http.gcc.gnu.org/bugzilla/ \ --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).