Skip to content

Commit

Permalink
Fix SGen compiler warnings on AMD64.
Browse files Browse the repository at this point in the history
2010-07-30  Mark Probst  <mark.probst@gmail.com>

	* sgen-archdep.h (ARCH_COPY_SIGCTX_REGS): Add casts to fix
	compiler warnings on AMD64.
  • Loading branch information
schani committed Jul 29, 2010
1 parent e1f34e3 commit c88460a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
5 changes: 5 additions & 0 deletions mono/metadata/ChangeLog
@@ -1,3 +1,8 @@
2010-07-30 Mark Probst <mark.probst@gmail.com>

* sgen-archdep.h (ARCH_COPY_SIGCTX_REGS): Add casts to fix
compiler warnings on AMD64.

2010-07-29 Rodrigo Kumpera <rkumpera@novell.com>

Add support for calling vararg methods from SRE code.
Expand Down
30 changes: 15 additions & 15 deletions mono/metadata/sgen-archdep.h
Expand Up @@ -85,21 +85,21 @@
#define ARCH_SIGCTX_SP(ctx) (UCONTEXT_REG_RSP (ctx))
#define ARCH_SIGCTX_IP(ctx) (UCONTEXT_REG_RIP (ctx))
#define ARCH_COPY_SIGCTX_REGS(a,ctx) do { \
((a)[0] = (UCONTEXT_REG_RAX (ctx))); \
((a)[1] = (UCONTEXT_REG_RBX (ctx))); \
((a)[2] = (UCONTEXT_REG_RCX (ctx))); \
((a)[3] = (UCONTEXT_REG_RDX (ctx))); \
((a)[4] = (UCONTEXT_REG_RSI (ctx))); \
((a)[5] = (UCONTEXT_REG_RDI (ctx))); \
((a)[6] = (UCONTEXT_REG_RBP (ctx))); \
((a)[7] = (UCONTEXT_REG_R8 (ctx))); \
((a)[8] = (UCONTEXT_REG_R9 (ctx))); \
((a)[9] = (UCONTEXT_REG_R10 (ctx))); \
((a)[10] = (UCONTEXT_REG_R11 (ctx))); \
((a)[11] = (UCONTEXT_REG_R12 (ctx))); \
((a)[12] = (UCONTEXT_REG_R13 (ctx))); \
((a)[13] = (UCONTEXT_REG_R14 (ctx))); \
((a)[14] = (UCONTEXT_REG_R15 (ctx))); \
((a)[0] = (gpointer) (UCONTEXT_REG_RAX (ctx))); \
((a)[1] = (gpointer) (UCONTEXT_REG_RBX (ctx))); \
((a)[2] = (gpointer) (UCONTEXT_REG_RCX (ctx))); \
((a)[3] = (gpointer) (UCONTEXT_REG_RDX (ctx))); \
((a)[4] = (gpointer) (UCONTEXT_REG_RSI (ctx))); \
((a)[5] = (gpointer) (UCONTEXT_REG_RDI (ctx))); \
((a)[6] = (gpointer) (UCONTEXT_REG_RBP (ctx))); \
((a)[7] = (gpointer) (UCONTEXT_REG_R8 (ctx))); \
((a)[8] = (gpointer) (UCONTEXT_REG_R9 (ctx))); \
((a)[9] = (gpointer) (UCONTEXT_REG_R10 (ctx))); \
((a)[10] = (gpointer) (UCONTEXT_REG_R11 (ctx))); \
((a)[11] = (gpointer) (UCONTEXT_REG_R12 (ctx))); \
((a)[12] = (gpointer) (UCONTEXT_REG_R13 (ctx))); \
((a)[13] = (gpointer) (UCONTEXT_REG_R14 (ctx))); \
((a)[14] = (gpointer) (UCONTEXT_REG_R15 (ctx))); \
} while (0)

#elif defined(__ppc__)
Expand Down

0 comments on commit c88460a

Please sign in to comment.