This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

_GLOBAL_ query


Hi All

I have  a query regarding __GLOBAL_ prefixed symbols.
while compiling the testcase given below produces
a symbol '_GLOBAL__I_main', which according to the defination of
static global initiallization should be a global symbol. But
gcc makes it a local symbols.

can anyone explain the reason for this behaviour.

i am using gcc 4.0.1.





----------------------------------------- testcase.cc
class tempttt{
int a;
int b;

public:
tempttt()
{ a=10; b=100;}

};

static tempttt t;
int main()
{
 return 0;
}

-----------------------------------------

-
Thanks,
Inder

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]