diff options
author | Jurek Bartuszek <jurek@gentoo.org> | 2007-09-09 18:32:54 +0000 |
---|---|---|
committer | Jurek Bartuszek <jurek@gentoo.org> | 2007-09-09 18:32:54 +0000 |
commit | ea17cff117559853d61925c6f7482b138ff2ad63 (patch) | |
tree | 0078b82f8a1e4097d8c0b098bd8ec3f36d7f7504 /dev-libs/libjit | |
parent | Marked ppc stable for bug #173050. (diff) | |
download | gentoo-2-ea17cff117559853d61925c6f7482b138ff2ad63.tar.gz gentoo-2-ea17cff117559853d61925c6f7482b138ff2ad63.tar.bz2 gentoo-2-ea17cff117559853d61925c6f7482b138ff2ad63.zip |
dev-libs/libjit-0.1.0: added missing header file, fixing bug #190483
(Portage version: 2.1.2.12)
Diffstat (limited to 'dev-libs/libjit')
-rw-r--r-- | dev-libs/libjit/ChangeLog | 6 | ||||
-rw-r--r-- | dev-libs/libjit/files/libjit-0.1.0-jit-rules-interp.h | 99 | ||||
-rw-r--r-- | dev-libs/libjit/libjit-0.1.0.ebuild | 10 |
3 files changed, 113 insertions, 2 deletions
diff --git a/dev-libs/libjit/ChangeLog b/dev-libs/libjit/ChangeLog index 93ffe054b7a6..214d375ee041 100644 --- a/dev-libs/libjit/ChangeLog +++ b/dev-libs/libjit/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-libs/libjit # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/ChangeLog,v 1.9 2007/08/28 23:34:18 jurek Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/ChangeLog,v 1.10 2007/09/09 18:32:53 jurek Exp $ + + 09 Sep 2007; Jurek Bartuszek <jurek@gentoo.org> + +files/libjit-0.1.0-jit-rules-interp.h, libjit-0.1.0.ebuild: + Added missing header file, fixing bug #190483 28 Aug 2007; Jurek Bartuszek <jurek@gentoo.org> libjit-0.1.0.ebuild: added secondary SRC_URI diff --git a/dev-libs/libjit/files/libjit-0.1.0-jit-rules-interp.h b/dev-libs/libjit/files/libjit-0.1.0-jit-rules-interp.h new file mode 100644 index 000000000000..f46c71f5bd2e --- /dev/null +++ b/dev-libs/libjit/files/libjit-0.1.0-jit-rules-interp.h @@ -0,0 +1,99 @@ +/* + * jit-rules-interp.h - Rules that define the interpreter characteristics. + * + * Copyright (C) 2004 Southern Storm Software, Pty Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef _JIT_RULES_INTERP_H +#define _JIT_RULES_INTERP_H + +#include "jit-interp.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Information about all of the registers, in allocation order. + */ +#define JIT_REG_INFO \ + {"r0", 0, -1, JIT_REG_ALL | JIT_REG_CALL_USED | \ + JIT_REG_START_STACK | JIT_REG_IN_STACK}, \ + {"r1", 1, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r2", 2, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r3", 3, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r4", 4, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r5", 5, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r6", 6, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r7", 7, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r8", 8, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r9", 9, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r10", 10, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r11", 11, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r12", 12, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r13", 13, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r14", 14, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \ + {"r15", 15, -1, JIT_REG_ALL | JIT_REG_CALL_USED | \ + JIT_REG_END_STACK | JIT_REG_IN_STACK}, +#define JIT_NUM_REGS 16 +#define JIT_NUM_GLOBAL_REGS 0 + +/* + * Define to 1 if we should always load values into registers + * before operating on them. i.e. the CPU does not have reg-mem + * and mem-reg addressing modes. + */ +#define JIT_ALWAYS_REG_REG 1 + +/* + * The maximum number of bytes to allocate for the prolog. + * This may be shortened once we know the true prolog size. + */ +#define JIT_PROLOG_SIZE jit_function_interp_size + +/* + * Preferred alignment for the start of functions. + */ +#define JIT_FUNCTION_ALIGNMENT (sizeof(void *)) + +/* + * Define this to 1 if the platform allows reads and writes on + * any byte boundary. Define to 0 if only properly-aligned + * memory accesses are allowed. + */ +#define JIT_ALIGN_OVERRIDES 0 + +/* + * Extra state information that is added to the "jit_gencode" structure. + */ +#define jit_extra_gen_state \ + int working_area; \ + int max_working_area; \ + int extra_working_space +#define jit_extra_gen_init(gen) \ + do { \ + (gen)->working_area = 0; \ + (gen)->max_working_area = 0; \ + (gen)->extra_working_space = 0; \ + } while (0) +#define jit_extra_gen_cleanup(gen) do { ; } while (0) + +#ifdef __cplusplus +}; +#endif + +#endif /* _JIT_RULES_INTERP_H */ diff --git a/dev-libs/libjit/libjit-0.1.0.ebuild b/dev-libs/libjit/libjit-0.1.0.ebuild index 8def01e87fa6..4da30c8e61e6 100644 --- a/dev-libs/libjit/libjit-0.1.0.ebuild +++ b/dev-libs/libjit/libjit-0.1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/libjit-0.1.0.ebuild,v 1.2 2007/08/28 23:34:18 jurek Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/libjit-0.1.0.ebuild,v 1.3 2007/09/09 18:32:53 jurek Exp $ inherit eutils @@ -16,6 +16,14 @@ IUSE="doc examples interpreter long-double new-reg-alloc" DEPEND="doc? ( app-text/texi2html )" +src_unpack() { + unpack ${A} + cd ${S} + + # Upstream forgot a header fille, bug #190483 + cp ${FILESDIR}/${P}-jit-rules-interp.h ${S}/jit/jit-rules-interp.h +} + src_compile() { econf \ $(use_enable interpreter) \ |