This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
_GLOBAL_ query
- From: Inder <inderpreetb at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 16 Mar 2006 16:05:56 +0530
- Subject: _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