ghostscript: fix run failure on mpc8315e
When run gs on mpc8315, it fails with: GPL Ghostscript 9.02: ./psi/interp.c(291): Fatal error -20 in gs_interp_init! It is caused by cross compile. Accoding to the ghostscript document on: http://pages.cs.wisc.edu/~ghost/doc/cvs/Make.htm#Cross-compiling it needs some manual work, so import patches from WindRiver Linux. Update to using oe way to add arch.h, thanks to Richard. (From OE-Core rev: debee5134a2ca505e968a6ddfb5c2f6434e3007a) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
98e8faa2f5
commit
c2d187065e
|
@ -0,0 +1,40 @@
|
|||
/* Parameters derived from machine and compiler architecture. */
|
||||
/* This file is generated mechanically by genarch.c. */
|
||||
|
||||
/* ---------------- Scalar alignments ---------------- */
|
||||
|
||||
#define ARCH_ALIGN_SHORT_MOD 2
|
||||
#define ARCH_ALIGN_INT_MOD 4
|
||||
#define ARCH_ALIGN_LONG_MOD 4
|
||||
#define ARCH_ALIGN_PTR_MOD 4
|
||||
#define ARCH_ALIGN_FLOAT_MOD 4
|
||||
#define ARCH_ALIGN_DOUBLE_MOD 8
|
||||
|
||||
/* ---------------- Scalar sizes ---------------- */
|
||||
|
||||
#define ARCH_LOG2_SIZEOF_CHAR 0
|
||||
#define ARCH_LOG2_SIZEOF_SHORT 1
|
||||
#define ARCH_LOG2_SIZEOF_INT 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG_LONG 3
|
||||
#define ARCH_SIZEOF_GX_COLOR_INDEX 8
|
||||
#define ARCH_SIZEOF_PTR 4
|
||||
#define ARCH_SIZEOF_FLOAT 4
|
||||
#define ARCH_SIZEOF_DOUBLE 8
|
||||
#define ARCH_FLOAT_MANTISSA_BITS 24
|
||||
#define ARCH_DOUBLE_MANTISSA_BITS 53
|
||||
|
||||
/* ---------------- Unsigned max values ---------------- */
|
||||
|
||||
#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
|
||||
#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
|
||||
#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
|
||||
#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
|
||||
|
||||
/* ---------------- Miscellaneous ---------------- */
|
||||
|
||||
#define ARCH_IS_BIG_ENDIAN 0
|
||||
#define ARCH_PTRS_ARE_SIGNED 0
|
||||
#define ARCH_FLOATS_ARE_IEEE 1
|
||||
#define ARCH_ARITH_RSHIFT 2
|
||||
#define ARCH_DIV_NEG_POS_TRUNCATES 1
|
|
@ -0,0 +1,40 @@
|
|||
/* Parameters derived from machine and compiler architecture. */
|
||||
/* This file is generated mechanically by genarch.c. */
|
||||
|
||||
/* ---------------- Scalar alignments ---------------- */
|
||||
|
||||
#define ARCH_ALIGN_SHORT_MOD 2
|
||||
#define ARCH_ALIGN_INT_MOD 4
|
||||
#define ARCH_ALIGN_LONG_MOD 4
|
||||
#define ARCH_ALIGN_PTR_MOD 4
|
||||
#define ARCH_ALIGN_FLOAT_MOD 4
|
||||
#define ARCH_ALIGN_DOUBLE_MOD 8
|
||||
|
||||
/* ---------------- Scalar sizes ---------------- */
|
||||
|
||||
#define ARCH_LOG2_SIZEOF_CHAR 0
|
||||
#define ARCH_LOG2_SIZEOF_SHORT 1
|
||||
#define ARCH_LOG2_SIZEOF_INT 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG_LONG 3
|
||||
#define ARCH_SIZEOF_GX_COLOR_INDEX 8
|
||||
#define ARCH_SIZEOF_PTR 4
|
||||
#define ARCH_SIZEOF_FLOAT 4
|
||||
#define ARCH_SIZEOF_DOUBLE 8
|
||||
#define ARCH_FLOAT_MANTISSA_BITS 24
|
||||
#define ARCH_DOUBLE_MANTISSA_BITS 53
|
||||
|
||||
/* ---------------- Unsigned max values ---------------- */
|
||||
|
||||
#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
|
||||
#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
|
||||
#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
|
||||
#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
|
||||
|
||||
/* ---------------- Miscellaneous ---------------- */
|
||||
|
||||
#define ARCH_IS_BIG_ENDIAN 0
|
||||
#define ARCH_PTRS_ARE_SIGNED 0
|
||||
#define ARCH_FLOATS_ARE_IEEE 1
|
||||
#define ARCH_ARITH_RSHIFT 2
|
||||
#define ARCH_DIV_NEG_POS_TRUNCATES 1
|
|
@ -0,0 +1,27 @@
|
|||
Import patch from windriver linux for cross compilation, and split patches
|
||||
into oe way under different directories such as i586, powerpc etc according
|
||||
to Richard's opinion.
|
||||
|
||||
Upstream-status: Pending
|
||||
|
||||
Signed-off-by: Kang Kai <kai.kang@windriver.com>
|
||||
|
||||
# Author: Chi Xu <chi.xu@windriver.com>
|
||||
# Date: Feb 26 2010
|
||||
# Summary: Generate arch.h for ppc32
|
||||
#
|
||||
|
||||
diff -Nru ghostscript-8.64.orig/base/lib.mak ghostscript-8.64/base/lib.mak
|
||||
--- ghostscript-8.64.orig/base/lib.mak 2010-02-10 10:30:02.000000000 +0800
|
||||
+++ ghostscript-8.64/base/lib.mak 2010-02-10 10:56:21.000000000 +0800
|
||||
@@ -50,8 +50,8 @@
|
||||
stdpre_h=$(GLSRC)stdpre.h $(stdpn_h)
|
||||
stdint__h=$(GLSRC)stdint_.h $(std_h)
|
||||
|
||||
-$(GLGEN)arch.h : $(GENARCH_XE)
|
||||
- $(EXP)$(GENARCH_XE) $(GLGEN)arch.h
|
||||
+##$(GLGEN)arch.h : $(GENARCH_XE)
|
||||
+## $(EXP)$(GENARCH_XE) $(GLGEN)arch.h
|
||||
|
||||
# Platform interfaces
|
||||
|
|
@ -15,22 +15,32 @@ SECTION = "console/utils"
|
|||
LICENSE = "GPLv3"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=d151214b3131251dfc9d858593acbd24"
|
||||
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
DEPENDS = "tiff ${PN}-native"
|
||||
DEPENDS = "${PN}-native tiff jpeg fontconfig cups"
|
||||
DEPENDS_virtclass-native = ""
|
||||
|
||||
SRC_URI = "http://downloads.ghostscript.com/public/ghostscript-${PV}.tar.bz2 \
|
||||
file://ghostscript-9.02-prevent_recompiling.patch \
|
||||
file://ghostscript-9.02-genarch.patch \
|
||||
file://objarch.h \
|
||||
file://soobjarch.h \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "f67151444bd56a7904579fc75a083dd6"
|
||||
SRC_URI[sha256sum] = "03ea2cad13a36f8f9160912012b79619a826e7148fada6d3531feb25409ee05a"
|
||||
|
||||
EXTRA_OECONF = "--with-system-libtiff --without-jbig2dec --without-jasper --x-includes=${STAGING_DIR_HOST}/usr/include/X11 --x-libraries=${STAGING_DIR_HOST}/usr/lib"
|
||||
EXTRA_OECONF = "--without-x --with-system-libtiff --without-jbig2dec --without-jasper --with-fontpath=${datadir}/fonts"
|
||||
|
||||
inherit autotools
|
||||
|
||||
do_configure_prepend () {
|
||||
mkdir -p obj
|
||||
mkdir -p soobj
|
||||
cp ${WORKDIR}/objarch.h obj/arch.h
|
||||
cp ${WORKDIR}/soobjarch.h soobj/arch.h
|
||||
}
|
||||
|
||||
do_configure () {
|
||||
oe_runconf
|
||||
|
||||
|
@ -42,6 +52,12 @@ do_configure () {
|
|||
done
|
||||
}
|
||||
|
||||
do_install_append () {
|
||||
mkdir -p ${D}${datadir}/ghostscript/${PV}/
|
||||
cp -r Resource ${D}${datadir}/ghostscript/${PV}/
|
||||
cp -r iccprofiles ${D}${datadir}/ghostscript/${PV}/
|
||||
}
|
||||
|
||||
python do_patch_virtclass-native () {
|
||||
pass
|
||||
}
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
/* Parameters derived from machine and compiler architecture. */
|
||||
/* This file is generated mechanically by genarch.c. */
|
||||
|
||||
/* ---------------- Scalar alignments ---------------- */
|
||||
|
||||
#define ARCH_ALIGN_SHORT_MOD 2
|
||||
#define ARCH_ALIGN_INT_MOD 4
|
||||
#define ARCH_ALIGN_LONG_MOD 4
|
||||
#define ARCH_ALIGN_PTR_MOD 4
|
||||
#define ARCH_ALIGN_FLOAT_MOD 4
|
||||
#define ARCH_ALIGN_DOUBLE_MOD 4
|
||||
|
||||
/* ---------------- Scalar sizes ---------------- */
|
||||
|
||||
#define ARCH_LOG2_SIZEOF_CHAR 0
|
||||
#define ARCH_LOG2_SIZEOF_SHORT 1
|
||||
#define ARCH_LOG2_SIZEOF_INT 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG_LONG 3
|
||||
#define ARCH_SIZEOF_GX_COLOR_INDEX 8
|
||||
#define ARCH_SIZEOF_PTR 4
|
||||
#define ARCH_SIZEOF_FLOAT 4
|
||||
#define ARCH_SIZEOF_DOUBLE 8
|
||||
#define ARCH_FLOAT_MANTISSA_BITS 24
|
||||
#define ARCH_DOUBLE_MANTISSA_BITS 53
|
||||
|
||||
/* ---------------- Unsigned max values ---------------- */
|
||||
|
||||
#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
|
||||
#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
|
||||
#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
|
||||
#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
|
||||
|
||||
/* ---------------- Miscellaneous ---------------- */
|
||||
|
||||
#define ARCH_IS_BIG_ENDIAN 0
|
||||
#define ARCH_PTRS_ARE_SIGNED 0
|
||||
#define ARCH_FLOATS_ARE_IEEE 1
|
||||
#define ARCH_ARITH_RSHIFT 2
|
||||
#define ARCH_DIV_NEG_POS_TRUNCATES 1
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
/* Parameters derived from machine and compiler architecture. */
|
||||
/* This file is generated mechanically by genarch.c. */
|
||||
|
||||
/* ---------------- Scalar alignments ---------------- */
|
||||
|
||||
#define ARCH_ALIGN_SHORT_MOD 2
|
||||
#define ARCH_ALIGN_INT_MOD 4
|
||||
#define ARCH_ALIGN_LONG_MOD 4
|
||||
#define ARCH_ALIGN_PTR_MOD 4
|
||||
#define ARCH_ALIGN_FLOAT_MOD 4
|
||||
#define ARCH_ALIGN_DOUBLE_MOD 4
|
||||
|
||||
/* ---------------- Scalar sizes ---------------- */
|
||||
|
||||
#define ARCH_LOG2_SIZEOF_CHAR 0
|
||||
#define ARCH_LOG2_SIZEOF_SHORT 1
|
||||
#define ARCH_LOG2_SIZEOF_INT 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG_LONG 3
|
||||
#define ARCH_SIZEOF_GX_COLOR_INDEX 8
|
||||
#define ARCH_SIZEOF_PTR 4
|
||||
#define ARCH_SIZEOF_FLOAT 4
|
||||
#define ARCH_SIZEOF_DOUBLE 8
|
||||
#define ARCH_FLOAT_MANTISSA_BITS 24
|
||||
#define ARCH_DOUBLE_MANTISSA_BITS 53
|
||||
|
||||
/* ---------------- Unsigned max values ---------------- */
|
||||
|
||||
#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
|
||||
#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
|
||||
#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
|
||||
#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
|
||||
|
||||
/* ---------------- Miscellaneous ---------------- */
|
||||
|
||||
#define ARCH_IS_BIG_ENDIAN 0
|
||||
#define ARCH_PTRS_ARE_SIGNED 0
|
||||
#define ARCH_FLOATS_ARE_IEEE 1
|
||||
#define ARCH_ARITH_RSHIFT 2
|
||||
#define ARCH_DIV_NEG_POS_TRUNCATES 1
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
/* Parameters derived from machine and compiler architecture. */
|
||||
/* This file is generated mechanically by genarch.c. */
|
||||
|
||||
/* ---------------- Scalar alignments ---------------- */
|
||||
|
||||
#define ARCH_ALIGN_SHORT_MOD 2
|
||||
#define ARCH_ALIGN_INT_MOD 4
|
||||
#define ARCH_ALIGN_LONG_MOD 4
|
||||
#define ARCH_ALIGN_PTR_MOD 4
|
||||
#define ARCH_ALIGN_FLOAT_MOD 4
|
||||
#define ARCH_ALIGN_DOUBLE_MOD 8
|
||||
|
||||
/* ---------------- Scalar sizes ---------------- */
|
||||
|
||||
#define ARCH_LOG2_SIZEOF_CHAR 0
|
||||
#define ARCH_LOG2_SIZEOF_SHORT 1
|
||||
#define ARCH_LOG2_SIZEOF_INT 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG_LONG 3
|
||||
#define ARCH_SIZEOF_GX_COLOR_INDEX 8
|
||||
#define ARCH_SIZEOF_PTR 4
|
||||
#define ARCH_SIZEOF_FLOAT 4
|
||||
#define ARCH_SIZEOF_DOUBLE 8
|
||||
#define ARCH_FLOAT_MANTISSA_BITS 24
|
||||
#define ARCH_DOUBLE_MANTISSA_BITS 53
|
||||
|
||||
/* ---------------- Unsigned max values ---------------- */
|
||||
|
||||
#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
|
||||
#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
|
||||
#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
|
||||
#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
|
||||
|
||||
/* ---------------- Miscellaneous ---------------- */
|
||||
|
||||
#define ARCH_IS_BIG_ENDIAN 1
|
||||
#define ARCH_PTRS_ARE_SIGNED 0
|
||||
#define ARCH_FLOATS_ARE_IEEE 1
|
||||
#define ARCH_ARITH_RSHIFT 2
|
||||
#define ARCH_DIV_NEG_POS_TRUNCATES 1
|
|
@ -0,0 +1,40 @@
|
|||
/* Parameters derived from machine and compiler architecture. */
|
||||
/* This file is generated mechanically by genarch.c. */
|
||||
|
||||
/* ---------------- Scalar alignments ---------------- */
|
||||
|
||||
#define ARCH_ALIGN_SHORT_MOD 2
|
||||
#define ARCH_ALIGN_INT_MOD 4
|
||||
#define ARCH_ALIGN_LONG_MOD 4
|
||||
#define ARCH_ALIGN_PTR_MOD 4
|
||||
#define ARCH_ALIGN_FLOAT_MOD 4
|
||||
#define ARCH_ALIGN_DOUBLE_MOD 8
|
||||
|
||||
/* ---------------- Scalar sizes ---------------- */
|
||||
|
||||
#define ARCH_LOG2_SIZEOF_CHAR 0
|
||||
#define ARCH_LOG2_SIZEOF_SHORT 1
|
||||
#define ARCH_LOG2_SIZEOF_INT 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG_LONG 3
|
||||
#define ARCH_SIZEOF_GX_COLOR_INDEX 8
|
||||
#define ARCH_SIZEOF_PTR 4
|
||||
#define ARCH_SIZEOF_FLOAT 4
|
||||
#define ARCH_SIZEOF_DOUBLE 8
|
||||
#define ARCH_FLOAT_MANTISSA_BITS 24
|
||||
#define ARCH_DOUBLE_MANTISSA_BITS 53
|
||||
|
||||
/* ---------------- Unsigned max values ---------------- */
|
||||
|
||||
#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
|
||||
#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
|
||||
#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
|
||||
#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
|
||||
|
||||
/* ---------------- Miscellaneous ---------------- */
|
||||
|
||||
#define ARCH_IS_BIG_ENDIAN 1
|
||||
#define ARCH_PTRS_ARE_SIGNED 0
|
||||
#define ARCH_FLOATS_ARE_IEEE 1
|
||||
#define ARCH_ARITH_RSHIFT 2
|
||||
#define ARCH_DIV_NEG_POS_TRUNCATES 1
|
|
@ -0,0 +1,40 @@
|
|||
/* Parameters derived from machine and compiler architecture. */
|
||||
/* This file is generated mechanically by genarch.c. */
|
||||
|
||||
/* ---------------- Scalar alignments ---------------- */
|
||||
|
||||
#define ARCH_ALIGN_SHORT_MOD 2
|
||||
#define ARCH_ALIGN_INT_MOD 4
|
||||
#define ARCH_ALIGN_LONG_MOD 4
|
||||
#define ARCH_ALIGN_PTR_MOD 4
|
||||
#define ARCH_ALIGN_FLOAT_MOD 4
|
||||
#define ARCH_ALIGN_DOUBLE_MOD 8
|
||||
|
||||
/* ---------------- Scalar sizes ---------------- */
|
||||
|
||||
#define ARCH_LOG2_SIZEOF_CHAR 0
|
||||
#define ARCH_LOG2_SIZEOF_SHORT 1
|
||||
#define ARCH_LOG2_SIZEOF_INT 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG_LONG 3
|
||||
#define ARCH_SIZEOF_GX_COLOR_INDEX 8
|
||||
#define ARCH_SIZEOF_PTR 4
|
||||
#define ARCH_SIZEOF_FLOAT 4
|
||||
#define ARCH_SIZEOF_DOUBLE 8
|
||||
#define ARCH_FLOAT_MANTISSA_BITS 24
|
||||
#define ARCH_DOUBLE_MANTISSA_BITS 53
|
||||
|
||||
/* ---------------- Unsigned max values ---------------- */
|
||||
|
||||
#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
|
||||
#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
|
||||
#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
|
||||
#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
|
||||
|
||||
/* ---------------- Miscellaneous ---------------- */
|
||||
|
||||
#define ARCH_IS_BIG_ENDIAN 1
|
||||
#define ARCH_PTRS_ARE_SIGNED 0
|
||||
#define ARCH_FLOATS_ARE_IEEE 1
|
||||
#define ARCH_ARITH_RSHIFT 2
|
||||
#define ARCH_DIV_NEG_POS_TRUNCATES 1
|
|
@ -0,0 +1,40 @@
|
|||
/* Parameters derived from machine and compiler architecture. */
|
||||
/* This file is generated mechanically by genarch.c. */
|
||||
|
||||
/* ---------------- Scalar alignments ---------------- */
|
||||
|
||||
#define ARCH_ALIGN_SHORT_MOD 2
|
||||
#define ARCH_ALIGN_INT_MOD 4
|
||||
#define ARCH_ALIGN_LONG_MOD 4
|
||||
#define ARCH_ALIGN_PTR_MOD 4
|
||||
#define ARCH_ALIGN_FLOAT_MOD 4
|
||||
#define ARCH_ALIGN_DOUBLE_MOD 8
|
||||
|
||||
/* ---------------- Scalar sizes ---------------- */
|
||||
|
||||
#define ARCH_LOG2_SIZEOF_CHAR 0
|
||||
#define ARCH_LOG2_SIZEOF_SHORT 1
|
||||
#define ARCH_LOG2_SIZEOF_INT 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG_LONG 3
|
||||
#define ARCH_SIZEOF_GX_COLOR_INDEX 8
|
||||
#define ARCH_SIZEOF_PTR 4
|
||||
#define ARCH_SIZEOF_FLOAT 4
|
||||
#define ARCH_SIZEOF_DOUBLE 8
|
||||
#define ARCH_FLOAT_MANTISSA_BITS 24
|
||||
#define ARCH_DOUBLE_MANTISSA_BITS 53
|
||||
|
||||
/* ---------------- Unsigned max values ---------------- */
|
||||
|
||||
#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
|
||||
#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
|
||||
#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
|
||||
#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
|
||||
|
||||
/* ---------------- Miscellaneous ---------------- */
|
||||
|
||||
#define ARCH_IS_BIG_ENDIAN 1
|
||||
#define ARCH_PTRS_ARE_SIGNED 0
|
||||
#define ARCH_FLOATS_ARE_IEEE 1
|
||||
#define ARCH_ARITH_RSHIFT 2
|
||||
#define ARCH_DIV_NEG_POS_TRUNCATES 1
|
|
@ -0,0 +1,40 @@
|
|||
/* Parameters derived from machine and compiler architecture. */
|
||||
/* This file is generated mechanically by genarch.c. */
|
||||
|
||||
/* ---------------- Scalar alignments ---------------- */
|
||||
|
||||
#define ARCH_ALIGN_SHORT_MOD 2
|
||||
#define ARCH_ALIGN_INT_MOD 4
|
||||
#define ARCH_ALIGN_LONG_MOD 8
|
||||
#define ARCH_ALIGN_PTR_MOD 8
|
||||
#define ARCH_ALIGN_FLOAT_MOD 4
|
||||
#define ARCH_ALIGN_DOUBLE_MOD 8
|
||||
|
||||
/* ---------------- Scalar sizes ---------------- */
|
||||
|
||||
#define ARCH_LOG2_SIZEOF_CHAR 0
|
||||
#define ARCH_LOG2_SIZEOF_SHORT 1
|
||||
#define ARCH_LOG2_SIZEOF_INT 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG 3
|
||||
#define ARCH_LOG2_SIZEOF_LONG_LONG 3
|
||||
#define ARCH_SIZEOF_GX_COLOR_INDEX 8
|
||||
#define ARCH_SIZEOF_PTR 8
|
||||
#define ARCH_SIZEOF_FLOAT 4
|
||||
#define ARCH_SIZEOF_DOUBLE 8
|
||||
#define ARCH_FLOAT_MANTISSA_BITS 24
|
||||
#define ARCH_DOUBLE_MANTISSA_BITS 53
|
||||
|
||||
/* ---------------- Unsigned max values ---------------- */
|
||||
|
||||
#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
|
||||
#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
|
||||
#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
|
||||
#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
|
||||
|
||||
/* ---------------- Miscellaneous ---------------- */
|
||||
|
||||
#define ARCH_IS_BIG_ENDIAN 0
|
||||
#define ARCH_PTRS_ARE_SIGNED 0
|
||||
#define ARCH_FLOATS_ARE_IEEE 1
|
||||
#define ARCH_ARITH_RSHIFT 2
|
||||
#define ARCH_DIV_NEG_POS_TRUNCATES 1
|
|
@ -0,0 +1,40 @@
|
|||
/* Parameters derived from machine and compiler architecture. */
|
||||
/* This file is generated mechanically by genarch.c. */
|
||||
|
||||
/* ---------------- Scalar alignments ---------------- */
|
||||
|
||||
#define ARCH_ALIGN_SHORT_MOD 2
|
||||
#define ARCH_ALIGN_INT_MOD 4
|
||||
#define ARCH_ALIGN_LONG_MOD 8
|
||||
#define ARCH_ALIGN_PTR_MOD 8
|
||||
#define ARCH_ALIGN_FLOAT_MOD 4
|
||||
#define ARCH_ALIGN_DOUBLE_MOD 8
|
||||
|
||||
/* ---------------- Scalar sizes ---------------- */
|
||||
|
||||
#define ARCH_LOG2_SIZEOF_CHAR 0
|
||||
#define ARCH_LOG2_SIZEOF_SHORT 1
|
||||
#define ARCH_LOG2_SIZEOF_INT 2
|
||||
#define ARCH_LOG2_SIZEOF_LONG 3
|
||||
#define ARCH_LOG2_SIZEOF_LONG_LONG 3
|
||||
#define ARCH_SIZEOF_GX_COLOR_INDEX 8
|
||||
#define ARCH_SIZEOF_PTR 8
|
||||
#define ARCH_SIZEOF_FLOAT 4
|
||||
#define ARCH_SIZEOF_DOUBLE 8
|
||||
#define ARCH_FLOAT_MANTISSA_BITS 24
|
||||
#define ARCH_DOUBLE_MANTISSA_BITS 53
|
||||
|
||||
/* ---------------- Unsigned max values ---------------- */
|
||||
|
||||
#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
|
||||
#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
|
||||
#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
|
||||
#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
|
||||
|
||||
/* ---------------- Miscellaneous ---------------- */
|
||||
|
||||
#define ARCH_IS_BIG_ENDIAN 0
|
||||
#define ARCH_PTRS_ARE_SIGNED 0
|
||||
#define ARCH_FLOATS_ARE_IEEE 1
|
||||
#define ARCH_ARITH_RSHIFT 2
|
||||
#define ARCH_DIV_NEG_POS_TRUNCATES 1
|
Loading…
Reference in New Issue