Author: zoltan
Date: 2006-10-12 13:21:41 -0400 (Thu, 12 Oct 2006)
New Revision: 66616
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/mini-x86.c
trunk/mono/mono/mini/mini.c
trunk/mono/mono/mini/trace.c
Log:
2006-10-12 Zoltan Varga <[EMAIL PROTECTED]>
* mini.c trace.c mini-x86.c: Revert these too.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2006-10-12 17:00:35 UTC (rev 66615)
+++ trunk/mono/mono/mini/ChangeLog 2006-10-12 17:21:41 UTC (rev 66616)
@@ -1,7 +1,9 @@
2006-10-12 Zoltan Varga <[EMAIL PROTECTED]>
- * mini.c trace.c mini-x86.c: Remove warning workarounds after the
mono_type_size ()
- signature change.
+ * mini.c trace.c mini-x86.c: Revert these too.
+
+ * mini.c trace.c mini-x86.c: Remove warning workarounds after the
mono_type_size ()
+ signature change.
Tue Oct 10 11:35:20 CEST 2006 Paolo Molaro <[EMAIL PROTECTED]>
Modified: trunk/mono/mono/mini/mini-x86.c
===================================================================
--- trunk/mono/mono/mini/mini-x86.c 2006-10-12 17:00:35 UTC (rev 66615)
+++ trunk/mono/mono/mini/mini-x86.c 2006-10-12 17:21:41 UTC (rev 66616)
@@ -453,7 +453,9 @@
if (csig->pinvoke)
size = mono_type_native_stack_size (csig->params [k],
&align);
else {
- size = mono_type_stack_size (csig->params [k], &align);
+ int ialign;
+ size = mono_type_stack_size (csig->params [k], &ialign);
+ align = ialign;
}
/* ignore alignment for now */
@@ -982,7 +984,9 @@
if (sig->pinvoke)
size =
mono_type_native_stack_size (&in->klass->byval_arg, &align);
else {
- size = mono_type_stack_size
(&in->klass->byval_arg, &align);
+ int ialign;
+ size = mono_type_stack_size
(&in->klass->byval_arg, &ialign);
+ align = ialign;
}
arg->opcode = OP_OUTARG_VT;
arg->klass = in->klass;
Modified: trunk/mono/mono/mini/mini.c
===================================================================
--- trunk/mono/mono/mini/mini.c 2006-10-12 17:00:35 UTC (rev 66615)
+++ trunk/mono/mono/mini/mini.c 2006-10-12 17:21:41 UTC (rev 66616)
@@ -3743,7 +3743,7 @@
MonoGenericContainer *generic_container = NULL;
MonoType **param_types;
GList *bb_recheck = NULL, *tmp;
- int i, n, start_new_bblock;
+ int i, n, start_new_bblock, ialign;
int num_calls = 0, inline_costs = 0;
int breakpoint_id = 0;
guint32 align;
@@ -7310,7 +7310,7 @@
/* FIXXME: handle generics. */
if (mono_metadata_token_table (token) ==
MONO_TABLE_TYPESPEC) {
MonoType *type =
mono_type_create_from_typespec (image, token);
- token = mono_type_size (type, &align);
+ token = mono_type_size (type, &ialign);
} else {
MonoClass *klass = mono_class_get_full
(image, token, generic_context);
if (!klass)
@@ -7980,7 +7980,10 @@
if (inst->backend.is_pinvoke && MONO_TYPE_ISSTRUCT
(inst->inst_vtype) && inst->inst_vtype->type != MONO_TYPE_TYPEDBYREF)
size = mono_class_native_size
(inst->inst_vtype->data.klass, &align);
else {
- size = mono_type_size (inst->inst_vtype, &align);
+ int ialign;
+
+ size = mono_type_size (inst->inst_vtype, &ialign);
+ align = ialign;
}
t = mono_type_get_underlying_type (inst->inst_vtype);
Modified: trunk/mono/mono/mini/trace.c
===================================================================
--- trunk/mono/mono/mini/trace.c 2006-10-12 17:00:35 UTC (rev 66615)
+++ trunk/mono/mono/mini/trace.c 2006-10-12 17:21:41 UTC (rev 66616)
@@ -550,7 +550,7 @@
goto handle_enum;
} else {
guint8 *p = va_arg (ap, gpointer);
- guint32 j, size, align;
+ int j, size, align;
size = mono_type_size (type, &align);
printf ("[");
for (j = 0; p && j < size; j++)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches