- Fixed GCC autoseg stuff for DECORATE variable initialization.

SVN r1273 (trunk)
This commit is contained in:
Christoph Oelckers 2008-10-21 13:17:55 +00:00
parent 30ef6a0c2d
commit a4afe79f3d
2 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ void *MRegTail = 0;
void *ARegTail __attribute__((section(AREG_SECTION))) = 0;
void *CRegTail __attribute__((section(CREG_SECTION))) = 0;
void *GRegTail __attribute__((section(GREG_SECTION))) = 0;
void *MRegTail __attribute__((section(GREG_SECTION))) = 0;
void *MRegTail __attribute__((section(MREG_SECTION))) = 0;
#elif

View file

@ -326,11 +326,11 @@ int MatchString (const char *in, const char **strings);
#define DEFINE_GLOBAL_VARIABLE(name) \
static FVariableInfo GlobalDef__##name = { #name, intptr_t(&name), NULL }; \
MSVC_MSEG FVariableInfo *infoptr_GlobalDef__##name = &GlobalDef__##name;
MSVC_MSEG FVariableInfo *infoptr_GlobalDef__##name GCC_MSEG = &GlobalDef__##name;
#define DEFINE_MEMBER_VARIABLE(name, cls) \
static FVariableInfo GlobalDef__##name = { #name, myoffsetof(cls, name), RUNTIME_CLASS(cls) }; \
MSVC_MSEG FVariableInfo *infoptr_GlobalDef__##name = &GlobalDef__##name;
MSVC_MSEG FVariableInfo *infoptr_GlobalDef__##name GCC_MSEG = &GlobalDef__##name;