* x86/tramp.c: Include stdlib to kill warning.
2001-11-07 Miguel de Icaza <miguel@ximian.com>
* main.c (dis_property_methods): Added missing colon which avoided
setting loc.t
2001-11-07 Miguel de Icaza <miguel@ximian.com>
* interp.c: Include stdlib to kill warning.
(check_corlib): Adjust format encodings to remove warnings.
2001-11-07 Miguel de Icaza <miguel@ximian.com>
* reflection.c (build_compressed_metadata): Eliminates warnings
and uses 64-bit clean code.
* metadata.c (mono_type_hash): Change signature to eliminate warnings.
(mono_type_equal): Change signature to eliminate warnings.
2001-11-07 Miguel de Icaza <miguel@ximian.com>
* monoburg.y: Include string.h, stdlib.h to kill warnings.
* sample.brg: Include string.h to remove warnings.
svn path=/trunk/mono/; revision=1298
make
make install
</pre>
+ * You also need a patch found <a
+ href="http://www.cygwin.com/ml/cygwin/2001-04/msg01792.html">here</a>.
* Unpack the mono distribution:
You can contact the team at: <a
href="mailto:mono-list@ximian.com">mono-list@ximian.com</a>
+** Nov 8, 2001
+
+ Enumerations, array access and attributes for the C# compiler are into the CVS now.
+
+ Full array support is not complete, but moving along.
+
** Nov 5, 2001
Dietmar's new set of patches to the JIT have 20 out of 33
+2001-11-07 Miguel de Icaza <miguel@ximian.com>
+
+ * x86/tramp.c: Include stdlib to kill warning.
Mon Oct 22 15:20:14 CEST 2001 Paolo Molaro <lupus@ximian.com>
*/
#include "config.h"
+#include <stdlib.h>
#include "x86-codegen.h"
#include "mono/metadata/class.h"
#include "mono/metadata/tabledefs.h"
+2001-11-07 Miguel de Icaza <miguel@ximian.com>
+
+ * main.c (dis_property_methods): Added missing colon which avoided
+ setting loc.t
+
2001-10-10 Dietmar Maurer <dietmar@ximian.com>
* main.c (arch_compile_method): added to compute vtable entry
char *type[] = {NULL, ".set", ".get", NULL, ".other"};
if (!msemt->base)
- return
+ return;
loc.t = msemt;
loc.col_idx = MONO_METHOD_SEMA_ASSOCIATION;
+2001-11-07 Miguel de Icaza <miguel@ximian.com>
+
+ * interp.c: Include stdlib to kill warning.
+ (check_corlib): Adjust format encodings to remove warnings.
Wed Nov 7 15:47:36 CET 2001 Paolo Molaro <lupus@ximian.com>
#include "config.h"
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include <glib.h>
#ifdef HAVE_ALLOCA_H
for (fdesc = cdesc->fields; fdesc->name; ++fdesc) {
field = mono_class_get_field_from_name (klass, fdesc->name);
if (!field || (field->offset != fdesc->offset))
- g_error ("filed %s mismatch in class %s (%d != %d)", fdesc->name, cdesc->name, fdesc->offset, field?field->offset:-1);
+ g_error ("filed %s mismatch in class %s (%ld != %ld)", fdesc->name, cdesc->name, (long) fdesc->offset, (long) (field?field->offset:-1));
}
}
}
+2001-11-07 Miguel de Icaza <miguel@ximian.com>
+
+ * mempool.c: Include string.h to kill warning.
+
+ * testjit.c: Add typecast to kill warning.
+
+ * x86.brg: Include string.h to eliminate warning.
+
+ * emit-x86.c (tree_allocate_regs): Fix arguments to g_warning to
+ kill warning.
+
2001-11-07 Dietmar Maurer <dietmar@ximian.com>
* emit-x86.c (enter_method): print out all method arguments
case MB_NTERM_reg:
if ((tree->reg1 =
mono_regset_alloc_reg (rs, tree->reg1, tree->exclude_mask)) == -1) {
- g_warning ("register allocation failed %d %p %p\n", tree->reg1, rs->free_mask, tree->exclude_mask);
+ g_warning ("register allocation failed %d 0x%08x 0x%08x\n", tree->reg1, rs->free_mask, tree->exclude_mask);
g_assert_not_reached ();
}
#include <config.h>
#include <glib.h>
#include <stdlib.h>
+#include <string.h>
#include <mono/metadata/assembly.h>
#include <mono/metadata/loader.h>
index = mono_metadata_token_index (read32 (ip));
ip += 4;
- o = mono_ldstr (image, index);
+ o = (MonoObject *) mono_ldstr (image, index);
t1 = mono_ctree_new_leaf (mp, MB_TERM_CONST_I4);
t1->data.p = o;
#include <config.h>
#include <glib.h>
+#include <string.h>
#include "jit.h"
#include <config.h>
#include <glib.h>
#include <stdlib.h>
+#include <string.h>
#include <mono/metadata/assembly.h>
#include <mono/metadata/loader.h>
index = mono_metadata_token_index (read32 (ip));
ip += 4;
- o = mono_ldstr (image, index);
+ o = (MonoObject *) mono_ldstr (image, index);
t1 = mono_ctree_new_leaf (mp, MB_TERM_CONST_I4);
t1->data.p = o;
#include <glib.h>
#include <stdio.h>
+#include <string.h>
#include <mono/metadata/blob.h>
#include <mono/metadata/metadata.h>
+2001-11-07 Miguel de Icaza <miguel@ximian.com>
+
+ * reflection.c (build_compressed_metadata): Eliminates warnings
+ and uses 64-bit clean code.
+
+ * metadata.c (mono_type_hash): Change signature to eliminate warnings.
+ (mono_type_equal): Change signature to eliminate warnings.
Wed Nov 7 15:40:01 CET 2001 Paolo Molaro <lupus@ximian.com>
#include <config.h>
#include <glib.h>
#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
#include <mono/metadata/image.h>
#include <mono/metadata/cil-coff.h>
#include <mono/metadata/metadata.h>
break;
case TYPE_ATTRIBUTE_EXPLICIT_LAYOUT:
for (i = 0; i < top; i++){
- guint32 cols [2];
int size, align;
int idx = class->field.first + i;
#include <config.h>
#include <glib.h>
+#include <string.h>
#include "jit.h"
/*
* MonoTypes with modifies are never cached, so we never check or use that field.
*/
-static int
-mono_type_hash (MonoType *type)
+static guint
+mono_type_hash (gconstpointer data)
{
+ MonoType *type = (MonoType *) data;
return type->type | (type->byref << 8) | (type->attrs << 9);
}
-static gboolean
-mono_type_equal (MonoType *a, MonoType *b)
+static gint
+mono_type_equal (gconstpointer ka, gconstpointer kb)
{
+ MonoType *a = (MonoType *) ka;
+ MonoType *b = (MonoType *) kb;
+
if (a->type != b->type || a->byref != b->byref || a->attrs != b->attrs || a->pinned != b->pinned)
return 0;
/* need other checks */
if (!type_cache) {
int i;
type_cache = g_hash_table_new (mono_type_hash, mono_type_equal);
- for (i=0; i < NBUILTIN_TYPES (); ++i)
+
+ for (i = 0; i < NBUILTIN_TYPES (); ++i)
g_hash_table_insert (type_cache, &builtin_types [i], &builtin_types [i]);
}
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <mono/metadata/loader.h>
#include <mono/metadata/object.h>
*/
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "image.h"
#include <glib.h>
{
MonoDynamicTable *table;
guint32 *values;
- char *name, *p;
+ char *p;
guint32 idx, sig_idx;
guint nl = mono_array_length (ilgen->locals);
char *buf;
guint16 *int16val;
MonoImage *meta;
unsigned char *p;
+ int idx;
char *version = "mono" VERSION;
/* Compute table sizes */
meta->raw_metadata = g_malloc0 (meta_size);
p = meta->raw_metadata;
/* the metadata signature */
- *p++ = 'B'; *p++ = 'S'; *p++ = 'J'; *p++ = 'B';
+ idx = 0;
+ p [idx++] = 'B'; p [idx++] = 'S'; p [idx++] = 'J'; p [idx++] = 'B';
+
/* version numbers and 4 bytes reserved */
- int16val = (guint16*)p;
+ int16val = (guint16*) (&p [idx]);
*int16val++ = 1;
*int16val = 1;
- p += 8;
+ idx += 8;
/* version string */
- int32val = (guint32*)p;
+ int32val = (guint32*)(&p [idx]);
*int32val = strlen (version);
- p += 4;
- memcpy (p, version, *int32val);
- p += *int32val;
- p += 3; p = (guint32)p & ~3; /* align */
- int16val = (guint16*)p;
+ idx += 4;
+ memcpy (&p [i], version, *int32val);
+ idx += *int32val;
+ idx += 3; idx = idx & ~3; /* align */
+ int16val = (guint16*)(&p [idx]);
*int16val++ = 0; /* flags must be 0 */
*int16val = 5; /* number of streams */
- p += 4;
+ idx += 4;
/*
* write the stream info.
*/
table_offset = (p - (unsigned char*)meta->raw_metadata) + 5 * 8 + 40; /* room needed for stream headers */
- int32val = (guint32*)p;
+ int32val = (guint32*)(&p [idx]);
*int32val++ = assembly->tstream.offset = table_offset;
*int32val = heapt_size;
table_offset += *int32val;
- p += 8;
- strcpy (p, "#~");
+ idx += 8;
+ strcpy (&p [idx], "#~");
/*
* FIXME: alignment not 64 bit safe: same problem in metadata/image.c
*/
- p += 3 + 3; p = (guint32)p & ~3;
+ idx += 3 + 3; idx = idx & ~3;
- int32val = (guint32*)p;
+ int32val = (guint32*)(&p [idx]);
*int32val++ = assembly->sheap.offset = table_offset;
*int32val = assembly->sheap.index;
table_offset += *int32val;
- p += 8;
- strcpy (p, "#Strings");
- p += 9 + 3; p = (guint32)p & ~3;
+ idx += 8;
+ strcpy (&p [idx], "#Strings");
+ idx += 9 + 3; idx = idx & ~3;
- int32val = (guint32*)p;
+ int32val = (guint32*)(&p [idx]);
*int32val++ = assembly->us.offset = table_offset;
*int32val = assembly->us.index;
table_offset += *int32val;
- p += 8;
- strcpy (p, "#US");
- p += 4 + 3; p = (guint32)p & ~3;
+ idx += 8;
+ strcpy (&p [idx], "#US");
+ idx += 4 + 3; idx = idx & ~3;
- int32val = (guint32*)p;
+ int32val = (guint32*)(&p [idx]);
*int32val++ = assembly->blob.offset = table_offset;
*int32val = assembly->blob.index;
table_offset += *int32val;
- p += 8;
- strcpy (p, "#Blob");
- p += 6 + 3; p = (guint32)p & ~3;
+ idx += 8;
+ strcpy (&p [idx], "#Blob");
+ idx += 6 + 3; idx = idx & ~3;
- int32val = (guint32*)p;
+ int32val = (guint32*)(&p [idx]);
*int32val++ = assembly->guid.offset = table_offset;
*int32val = assembly->guid.index;
table_offset += *int32val;
- p += 8;
- strcpy (p, "#GUID");
- p += 6 + 3; p = (guint32)p & ~3;
+ idx += 8;
+ strcpy (&p [idx], "#GUID");
+ idx += 6 + 3; idx = idx & ~3;
/*
* now copy the data, the table stream header and contents goes first.
static void
mono_image_build_metadata (MonoReflectionAssemblyBuilder *assemblyb)
{
- char *meta;
MonoDynamicTable *table;
MonoDynamicAssembly *assembly = assemblyb->dynamic_assembly;
- GList *type;
guint32 len;
guint32 *values;
char *name;
+2001-11-07 Miguel de Icaza <miguel@ximian.com>
+
+ * monoburg.y: Include string.h, stdlib.h to kill warnings.
+
+ * sample.brg: Include string.h to remove warnings.
+
2001-09-23 Dietmar Maurer <dietmar@ximian.com>
* monoburg.c: add a macro MBALLOC_STATE to define the allocation
*/
#include <stdio.h>
-
+#include <string.h>
+#include <stdlib.h>
#include "monoburg.h"
extern void yyparse (void);
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <unistd.h>
#include <ctype.h>
#include <assert.h>
#include <stdarg.h>
#include <glib.h>
#include <stdio.h>
+#include <string.h>
#define MBTREE_TYPE MBTree
make
make install
</pre>
+ * You also need a patch found <a
+ href="http://www.cygwin.com/ml/cygwin/2001-04/msg01792.html">here</a>.
* Unpack the mono distribution:
You can contact the team at: <a
href="mailto:mono-list@ximian.com">mono-list@ximian.com</a>
+** Nov 8, 2001
+
+ Enumerations, array access and attributes for the C# compiler are into the CVS now.
+
+ Full array support is not complete, but moving along.
+
** Nov 5, 2001
Dietmar's new set of patches to the JIT have 20 out of 33