public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Warnings with -Og - gcc 4.8
@ 2013-03-05 18:41 Lars Gullik Bjønnes
  2013-03-05 18:46 ` Jeffrey Walton
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Gullik Bjønnes @ 2013-03-05 18:41 UTC (permalink / raw)
  To: gcc-help

I get a lot of warnings with -Og and gcc from trunk.
I do not get these warnings with any other warning level.

This is a reduced example:
----------
int foo(void);

int failing(void)
{
        int r;
        unsigned int i;
        struct h * p[3];

        for (i = 0; i < sizeof(p) / sizeof(p[0]); ++i) {
                r = foo();
                if (r != 0)
                        break;
        }
        return r >= 0;
}
-----------

Compile with: gcc -Og -Wall -c fil.c

gcc --version
gcc (GCC) 4.8.0 20130304 (experimental)

Should I create a bug on this, or will someone else handle that?

--
        Lgb

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

end of thread, other threads:[~2013-03-05 20:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-05 18:41 Warnings with -Og - gcc 4.8 Lars Gullik Bjønnes
2013-03-05 18:46 ` Jeffrey Walton
2013-03-05 19:05   ` Lars Gullik Bjønnes
2013-03-05 20:20     ` Jeff Law
2013-03-05 20:23       ` Lars Gullik Bjønnes
2013-03-05 20:39         ` Jeff Law
2013-03-05 20:47           ` Jeffrey Walton

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