[packages/libjit] - added missing patch (missing file from git)
qboosh
qboosh at pld-linux.org
Sat Dec 13 19:31:05 CET 2014
commit 0419a5d412ddd76529a6ec432649456c2ab9ffc9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 13 19:31:35 2014 +0100
- added missing patch (missing file from git)
libjit-missing.patch | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++
libjit.spec | 2 ++
2 files changed, 89 insertions(+)
---
diff --git a/libjit.spec b/libjit.spec
index 4575331..ad24d76 100644
--- a/libjit.spec
+++ b/libjit.spec
@@ -14,6 +14,7 @@ Source0: http://download.savannah.gnu.org/releases/dotgnu-pnet/%{name}-%{version
Patch0: %{name}-format.patch
Patch1: %{name}-info.patch
Patch2: %{name}-am.patch
+Patch3: %{name}-missing.patch
URL: http://www.gnu.org/software/dotgnu/pnet.html
BuildRequires: autoconf
BuildRequires: automake >= 1.6
@@ -70,6 +71,7 @@ Biblioteka kompilatora do interpretacji kodu - biblioteka statyczna.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
%{__libtoolize}
diff --git a/libjit-missing.patch b/libjit-missing.patch
new file mode 100644
index 0000000..b3901ea
--- /dev/null
+++ b/libjit-missing.patch
@@ -0,0 +1,87 @@
+--- libjit-0.1.0/jit/jit-rules-interp.h.orig 1970-01-01 01:00:00.000000000 +0100
++++ libjit-0.1.0/jit/jit-rules-interp.h 2014-12-13 19:26:16.000000000 +0100
+@@ -0,0 +1,84 @@
++/*
++ * 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}, \
++ {"r1", 1, -1, JIT_REG_ALL | JIT_REG_CALL_USED}, \
++ {"r2", 2, -1, JIT_REG_ALL | JIT_REG_CALL_USED},
++#define JIT_NUM_REGS 3
++#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 */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libjit.git/commitdiff/0419a5d412ddd76529a6ec432649456c2ab9ffc9
More information about the pld-cvs-commit
mailing list