Bug 321366 (MONO78641) - [PATCH] quiet some gcc signed warnings in ppc port
Summary: [PATCH] quiet some gcc signed warnings in ppc port
Status: RESOLVED FIXED
Alias: MONO78641
Product: Mono: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 1.0
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Paolo Molaro
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-14 13:21 UTC by Johannes Berg
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:01:23 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".