Align unused real alignment code to upstream source.

We set the target-specific values at runtime in Type::init().
This commit is contained in:
David Nadlinger
2013-05-12 21:09:16 +02:00
parent 8123c1c7b9
commit ad4eb1b6bd

View File

@@ -82,17 +82,19 @@ int REALSIZE = 16;
int REALPAD = 6;
int REALALIGNSIZE = 16;
#elif TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_SOLARIS
int REALSIZE = 12; // LDC_FIXME: We differ from DMD here, yet target defines are never set?!
int REALSIZE = 12;
int REALPAD = 2;
int REALALIGNSIZE = 4;
#elif defined(IN_GCC)
#elif TARGET_WINDOS
int REALSIZE = 10;
int REALPAD = 0;
int REALALIGNSIZE = 2;
#elif defined(IN_GCC) || defined(IN_LLVM)
int REALSIZE = 0;
int REALPAD = 0;
int REALALIGNSIZE = 0;
#else
int REALSIZE = 10;
int REALPAD = 0;
int REALALIGNSIZE = 2;
#error "fix this"
#endif
int Tsize_t = Tuns32;