aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-04-03 20:51:37 +0200
committergrischka <grischka>2009-04-18 15:07:27 +0200
commit0e015988cc5d8392b8ec2fb22e54700b225f84e3 (patch)
tree6935fc741021117e8736afb394edddad4be5f28d /tcc.c
parent97072b3cd70451204c1811efe0863f98dbbfb03c (diff)
downloadtinycc-0e015988cc5d8392b8ec2fb22e54700b225f84e3.tar.gz
tinycc-0e015988cc5d8392b8ec2fb22e54700b225f84e3.tar.bz2
i386: apply "align=8 for doubles ..." for PE only
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcc.c b/tcc.c
index 2ba115d..c448a03 100644
--- a/tcc.c
+++ b/tcc.c
@@ -6266,7 +6266,11 @@ static int type_size(CType *type, int *a)
return LDOUBLE_SIZE;
} else if (bt == VT_DOUBLE || bt == VT_LLONG) {
#ifdef TCC_TARGET_I386
+#ifdef TCC_TARGET_PE
*a = 8;
+#else
+ *a = 4;
+#endif
#elif defined(TCC_TARGET_ARM)
#ifdef TCC_ARM_EABI
*a = 8;