This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
No effect of -fshort-enums..is it a bug
- From: "Gaurav Gautam, Noida" <gauravga at noida dot hcltech dot com>
- To: <gcc at gcc dot gnu dot org>, <gcc-help at gcc dot gnu dot org>
- Date: Wed, 21 Sep 2005 17:46:58 +0530
- Subject: No effect of -fshort-enums..is it a bug
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