Warnings with -Og - gcc 4.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux