No effect of -fshort-enums..is it a bug

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

 



Hi,

I have compiled a testcase

int main()
{
        enum aa {
        a = 0, b =127  , c
        };
 
        printf("size = %d  %d %d\n", sizeof(a),sizeof(b), sizeof(c));
        printf("value= %d  %d %d\n", a,b,c);
        return 0;
}

On gcc (GCC) 4.1.0 20050915 (experimental) with the following option -fshort-enums.

The option -fshort-enums has no effect and the output is same as it is without this option.


I also tried the same tc on gcc (GCC) 3.3.1 (SuSE Linux). But in this case the output changed with and without this option.

I am using an SuSe linux -- X86_AMD64 machine.

I think it's a bug. Can anybody please confirm?

Thanks
Gaurav



[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