dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and to


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 0f11b3a6d01de97f24df6730ac41336716358857
Date: Sun, 11 Apr 2010 16:37:56 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET engine, compilers and tools (pnet)".

The branch, master has been updated
       via  0f11b3a6d01de97f24df6730ac41336716358857 (commit)
      from  1b14ddd8fcd69a6dfe03133a3e7542710ada8f64 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnet.git/commit/?id=0f11b3a6d01de97f24df6730ac41336716358857

commit 0f11b3a6d01de97f24df6730ac41336716358857
Author: Klaus Treichel <address@hidden>
Date:   Sun Apr 11 18:37:38 2010 +0200

    Add check for the endianness of the target.

diff --git a/ChangeLog b/ChangeLog
index ddf40f4..43b398f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,14 @@
 2010-04-11  Klaus Treichel  <address@hidden>
 
+       * configure.in: Add check for the endianness of the target.
+
        * engine/arm_codegen.h: Rework loading and storing 16 bit values and
        signed bytes using the LDRH / STRH opcodes and the LDRSH and LDRSB
        opcodes if available (armv4 and later).
 
+       * engine/cvm_config.h: Define CVM_LITTLE_ENDIAN for arm if the target
+       is running in little endian mode.
+
        * engine/md_arm.c (_arm_alu_reg_imm): Add missing assignment of the
        returnvalue from the call to _arm_move_reg_imm to inst.
 
diff --git a/configure.in b/configure.in
index 5182f3b..3d5bc2c 100644
--- a/configure.in
+++ b/configure.in
@@ -72,6 +72,12 @@ fi
 TREECC_VERSION=`"$TREECC" -v | (read name version rest; echo $version)`
 AC_SUBST(TREECC_VERSION)
 
+dnl Check for endianess of the target
+AC_C_BIGENDIAN([AC_DEFINE([IL_WORDS_BIGENDIAN], 1, [Define if the target 
system is big endian])],
+                          [AC_DEFINE([IL_WORDS_LITTLEENDIAN], 1, [Define if 
the target system is little endian])],
+                          [AC_DEFINE([IL_WORDS_UNKNOWNENDIAN], 1, [Define if 
endianess of the target system could not be detected])],
+                          [AC_DEFINE([IL_WORDS_MIXEDENDIAN], 1, [Define if the 
target system is neither big nor little endian])])
+
 if test x$cross_compiling = xyes ; then
        AC_PATH_PROG(ILASM, ilasm)
 else
diff --git a/engine/cvm_config.h b/engine/cvm_config.h
index 002a84f..314a5fd 100644
--- a/engine/cvm_config.h
+++ b/engine/cvm_config.h
@@ -94,6 +94,9 @@ extern int _ILCVMInsnCount[];
        #define CVM_ARM
        #define CVM_LONGS_ALIGNED_WORD
        #define CVM_WORDS_AND_PTRS_SAME_SIZE
+#if defined(IL_WORDS_LITTLEENDIAN)
+       #define CVM_LITTLE_ENDIAN
+#endif
 #endif
 #if defined(__powerpc__) || defined(powerpc) || \
                defined(__powerpc) || defined(PPC)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    5 +++++
 configure.in        |    6 ++++++
 engine/cvm_config.h |    3 +++
 3 files changed, 14 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
DotGNU Portable.NET engine, compilers and tools (pnet)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]