mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +01:00
Align unused real alignment code to upstream source.
We set the target-specific values at runtime in Type::init().
This commit is contained in:
12
dmd2/mtype.c
12
dmd2/mtype.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user