From d13e1b888485eb71d559cf2dea65ad1b49704bd8 Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Tue, 19 Apr 2011 16:57:21 +0200 Subject: Add patch to fix thumb2-related build error (Closes: #622882) --- .../0001-Fix-thumb2-related-build-error.patch | 25 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 26 insertions(+) create mode 100644 debian/patches/0001-Fix-thumb2-related-build-error.patch create mode 100644 debian/patches/series diff --git a/debian/patches/0001-Fix-thumb2-related-build-error.patch b/debian/patches/0001-Fix-thumb2-related-build-error.patch new file mode 100644 index 00000000..3aab299c --- /dev/null +++ b/debian/patches/0001-Fix-thumb2-related-build-error.patch @@ -0,0 +1,25 @@ +From: Stephane Glondu +Date: Tue, 19 Apr 2011 12:45:34 +0200 +Subject: Fix thumb2-related build error + +Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622882 +Signed-off-by: Konstantinos Margaritis +Signed-off-by: Stephane Glondu +--- + kernel/byterun/coq_interp.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/kernel/byterun/coq_interp.c b/kernel/byterun/coq_interp.c +index cce2319..a0cb4f1 100644 +--- a/kernel/byterun/coq_interp.c ++++ b/kernel/byterun/coq_interp.c +@@ -145,7 +145,7 @@ sp is a local copy of the global variable extern_sp. */ + #define SP_REG asm("a4") + #define ACCU_REG asm("d7") + #endif +-#ifdef __arm__ ++#if defined(__arm__) && !defined(__thumb2__) + #define PC_REG asm("r9") + #define SP_REG asm("r8") + #define ACCU_REG asm("r7") +-- diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 00000000..0bde233f --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-Fix-thumb2-related-build-error.patch -- cgit v1.2.3