query: -fshort-enums is default on which targets ?

2005-09-27 Thread Gaurav Gautam, Noida
Hi, The description about the option -fshort-enums on gcc.gnu.org says, that "-fshort-enums is the default on some targets, as required by the platform ABI." 1) Can anyone tell me, on which all targets, this is default? 2) Or if anyone can tell me any document through which I can find the lis

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

2005-09-23 Thread Gaurav Gautam, Noida
> > > Hi Gaurav, > > > >> Please confirm which of the two outputs is correct and why is there a > > difference in the output of two versions of compiler? > > > > Both outputs are "correct". > > > > > No, the standard is entirely unambiguous: > > --

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

2005-09-22 Thread Gaurav Gautam, Noida
t and why is there a difference in the output of two versions of compiler? Thanks Gaurav gautam > -Original Message- > From: Gaurav Gautam, Noida > Sent: Wednesday, September 21, 2005 7:04 PM > To: 'gcc@gcc.gnu.org'; '[EMAIL PROTECTED]' > Cc: 'Dani

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

2005-09-21 Thread Gaurav Gautam, Noida
er 21, 2005 6:10 PM > To: Gaurav Gautam, Noida > Cc: gcc@gcc.gnu.org; [EMAIL PROTECTED] > Subject: Re: No effect of -fshort-enums..is it a bug > > On Wed, Sep 21, 2005 at 05:46:58PM +0530, Gaurav Gautam, Noida wrote: > > int main() > > { > > enum aa { > &g

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

2005-09-21 Thread Gaurav Gautam, Noida
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 followi

help: interfacing between C and fortran program

2005-09-13 Thread Gaurav Gautam, Noida
Hi, I have a function written in fortran say fun(x, y), with x and y as integer (scalars) . Function returns integer. I need to call this function from a C program. How do I do it. Can some one help me. Does Gfortran and gcc support this. ?? Regards Gaurav

RE: help: about enum

2005-08-27 Thread Gaurav Gautam, Noida
f this tc is even when fsort-enums option is given. a=0 4 c=126 4 p=0 4 r=65538 4 x=0 4 z=2147483647 4 l=0 4 n=0 8 However if I mension 2147483648 program compiles again. With output a=0 4 c=126 4 p=0 4 r=65538 4 x=0 4 z=-2147483647 4 l=0 4 n=0 8 Regards Gaurav -Original Message- From: G

help: about enum

2005-08-27 Thread Gaurav Gautam, Noida
Hi, Plz help me I want to know, how enums are handled in gcc. How do we map an enum value to the corresponding integer size. What does the option -fshort-enums does. Plz explain me in detail. I could see the difference in the size of enums when I toggle the option. If the option is not given,