MIPS: Build and pass all test cases on mips64. - lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
path: root/size.c
diff options
context:
space:
mode:
authorpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2013年10月04日 00:01:31 -0300
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2013年10月04日 00:01:31 -0300
commit52bfc671928047b323d7646352f2f27500d56e3b (patch)
tree2d3a0dd08ea870e5eb4b1c0010cdd32b10929fcf /size.c
parent485584546a70ba316935b1cd356749ae541e9e3c (diff)
downloadlightning-52bfc671928047b323d7646352f2f27500d56e3b.tar.gz
MIPS: Build and pass all test cases on mips64.
* include/lightning/jit_mips.h, lib/jit_mips-cpu.c, lib/jit_mips-sz.c, lib/jit_mips.c, size: Build and pass all test cases on Irix big endian mips using the 64 bit abi.
Diffstat (limited to 'size.c')
-rw-r--r--size.c 14
1 files changed, 9 insertions, 5 deletions
diff --git a/size.c b/size.c
index 5c56e69..9ea3468 100644
--- a/size.c
+++ b/size.c
@@ -55,10 +55,12 @@ main(int argc, char *argv[])
fprintf(fp, "#if !defined(__ARM_PCS_VFP)\n");
# endif
#elif defined(__mips__)
-# if defined(_ABIN32)
- fprintf(fp, "#if defined(_ABIN32)\n");
-# else
- fprintf(fp, "#if !defined(_ABIN32)\n");
+# if __WORDSIZE == 32
+# if NEW_ABI
+ fprintf(fp, "#if NEW_ABI\n");
+# else
+ fprintf(fp, "#if !NEW_ABI\n");
+# endif
# endif
#elif defined(__ppc__)
fprintf(fp, "#if defined(__ppc__)\n");
@@ -71,7 +73,9 @@ main(int argc, char *argv[])
#if defined(__arm__)
fprintf(fp, "#undef /* __ARM_PCS_VFP */\n");
#elif defined(__mips__)
- fprintf(fp, "#endif /* _ABIN32 */\n");
+# if __WORDSIZE == 32
+ fprintf(fp, "#endif /* NEW_ABI */\n");
+# endif
#elif defined(__ppc__)
fprintf(fp, "#endif /* __ppc__ */\n");
#elif defined(__powerpc__)
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月26日 08:27:01 +0000

AltStyle によって変換されたページ (->オリジナル) /