Bugzilla – Bug 321366
[PATCH] quiet some gcc signed warnings in ppc port
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by johannes@sipsolutions.net 2006-06-14 06:21:25 MST ---- The ppc port prints out literally hundreds of warnings when compiled because one macro has a different signed pointer. I hope below patch won't be mangled too badly: --- a/mono/arch/ppc/ppc-codegen.h 2006-06-13 03:46:46.643458983 +0200 +++ b/mono/arch/ppc/ppc-codegen.h 2006-06-13 03:46:46.643458983 +0200 @@ -117,7 +117,7 @@ PPC_TRAP_GE_UN = 16 + PPC_TRAP_EQ }; -#define ppc_emit32(c,x) do { *((guint32 *) (c)) = (guint32)(x); (c) = (char *)(c) + sizeof (guint32);} while (0) +#define ppc_emit32(c,x) do { *((guint32 *) (c)) = (guint32)(x); (c) = (guint8 *)(c) + sizeof (guint32);} while (0) #define ppc_is_imm16(val) ((gint)(val) >= (gint)-(1<<15) && (gint)(val) <= (gint)((1<<15)-1)) #define ppc_is_uimm16(val) ((gint)(val) >= 0 && (gint)(val) <= 65535) ---- Additional Comments From lupus@ximian.com 2006-06-15 11:35:22 MST ---- Thanks, applied. Unknown operating system unknown. Setting to default OS "Other".