summaryrefslogtreecommitdiff
path: root/src/vm/fieldmarshaler.h
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-01-21 16:06:00 -0800
committerTanner Gooding <tagoo@outlook.com>2018-01-27 11:37:12 -0800
commit7121570db6f356277647ebaa6d2185da489403e5 (patch)
treedf1e779bdfd685e06ec59884d8234cfe9d08a186 /src/vm/fieldmarshaler.h
parent1ad63ccad774377063eea4892c504d7ca3bf84ea (diff)
downloadcoreclr-7121570db6f356277647ebaa6d2185da489403e5.tar.gz
coreclr-7121570db6f356277647ebaa6d2185da489403e5.tar.bz2
coreclr-7121570db6f356277647ebaa6d2185da489403e5.zip
Updating the methodtablebuilder to handle the System V ABI packing requirements for i386
Diffstat (limited to 'src/vm/fieldmarshaler.h')
-rw-r--r--src/vm/fieldmarshaler.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vm/fieldmarshaler.h b/src/vm/fieldmarshaler.h
index f11c81b896..2d11068f15 100644
--- a/src/vm/fieldmarshaler.h
+++ b/src/vm/fieldmarshaler.h
@@ -84,13 +84,11 @@ enum NStructFieldType
//=======================================================================
// Magic number for default struct packing size.
+//
+// Currently we set this to the packing size of the largest supported
+// fundamental type and let the field marshaller downsize where needed.
//=======================================================================
-#if defined(_TARGET_X86_) && defined(UNIX_X86_ABI)
-// A double is 4-byte aligned on GCC (without -malign-dobule)
-#define DEFAULT_PACKING_SIZE 4
-#else // _TARGET_X86_ && UNIX_X86_ABI
#define DEFAULT_PACKING_SIZE 8
-#endif // !_TARGET_X86_ || !UNIX_X86_ABI
//=======================================================================