ab505ed99d3cdf1b28d11a1e10bed0d1628335c8
[mono.git] / mono / mini / ChangeLog
1
2 Mon Oct 15 10:41:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
3
4         * mini-amd64.c, mini-amd64.h: amd64 support for the common vtable
5         trampoline.
6
7 Mon Oct 15 10:39:26 CEST 2007 Paolo Molaro <lupus@ximian.com>
8
9         * mini-x86.c, mini-x86.h: x86 support for the common vtable
10         trampoline.
11
12 Mon Oct 15 10:37:15 CEST 2007 Paolo Molaro <lupus@ximian.com>
13
14         * mini-trampolines.c: changed the magic rampoline to understand
15         the common vtable trampoline method: the method to invoke is
16         determined by the vtable displacement of the call.
17
18 Mon Oct 15 10:35:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
19
20         * mini.c, mini.h: register the common vtable trampoline if the
21         architecture supports it.
22
23 Mon Oct 15 09:50:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
24
25         * cpu-amd64.md: use the correct max length for tls_get.
26
27 2007-10-14  Zoltan Varga  <vargaz@gmail.com>
28
29         * mini.c (mono_method_to_ir): Use mini_get_class in CEE_LDELEM_ANY and
30         CEE_STELEM_ANY. Fixes #333696.
31
32 Thu Oct 11 18:04:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
33
34         * exceptions-x86.c: provide more graceful handling of the case where
35         we followed a bogus function pointer from managed code (bug #332866).
36
37 2007-10-11  Mark Probst  <mark.probst@gmail.com>
38
39         * mini.h, mini.c: Introduced the MonoGenericSharingContext, which
40         replaces the generic_shared flag and will carry more information
41         in the future.
42
43         * generic-sharing.c: Added mini_type_stack_size() which allows
44         allows open types if given a generic sharing context.
45         mini_get_basic_type_from_generic() takes a
46         MonoGenericSharingContext* instead of a MonoCompile* now.
47
48         * mini-alpha.c, mini-amd64.c, mini-arm.c, mini-hppa.c,
49         mini-ia64.c, mini-mips.c, mini-ppc.c, mini-s390.c, mini-s390x.c,
50         mini-sparc.c, mini-x86.c: Trivial changes required by the two
51         changes above.  Just passing arguments through to the right
52         places.
53
54 Wed Oct 10 19:44:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
55
56         * mini-arm.c: unify the call emission to emit_code_seq().
57
58 Wed Oct 10 13:05:46 CEST 2007 Paolo Molaro <lupus@ximian.com>
59
60         * tramp-arm.c: reduced the trampoline size.
61
62 2007-10-10  Mark Probst  <mark.probst@gmail.com>
63
64         * generic-sharing.c, mini.h, mini-amd64.c, mini-x86.c: Moved type
65         variable handling out of arch-specific code.
66
67 Wed Oct 10 10:49:28 CEST 2007 Paolo Molaro <lupus@ximian.com>
68
69         * mini-arm.c: implemented fast delegate dispatch.
70
71 2007-10-09  Zoltan Varga  <vargaz@gmail.com>
72
73         * mini-amd64.c (mono_arch_compute_omit_fp): Add more checks to ensure
74         that fp elimination is turned off if the space required by locals is too
75         big. Fixes #331958.
76
77 Tue Oct 9 21:01:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
78
79         * Makefile.am, mini-arm.c, mini-arm.h, tramp-arm.c: ported
80         ARM to the new style trampoline.
81
82 2007-10-09  Zoltan Varga  <vargaz@gmail.com>
83
84         * tramp-amd64.c: Rework the specific trampoline code to make it smaller.
85
86         * mini-amd64.h mini-amd64.c: Export amd64_patch as mono_amd64_patch.
87
88 2007-10-09  Martin Baulig  <martin@ximian.com>
89
90         * debug-debugger.h
91         (MonoDebuggerMetadataInfo): Added `field_info_type_offset' and
92         `field_info_offset_offset'.     
93
94 Tue Oct 9 09:47:51 CEST 2007 Paolo Molaro <lupus@ximian.com>
95
96         * mini-ppc.c, mini-ppc.h, mini-ops.h, inssel-ppc.brg, cpu-g4.md:
97         removed more internal usage of the r11 register and made it available
98         to the register allocator.
99
100 2007-10-08  Mark Probst  <mark.probst@gmail.com>
101
102         * mini.c, mini-amd64.c, mini-x86.c: Allow open generic contexts
103         when sharing generics and treat type variables as references.
104
105 Mon Oct 8 10:55:38 CEST 2007 Paolo Molaro <lupus@ximian.com>
106
107         * mini-ppc.c: started removing the internal uses of register r11
108         to eventually allow the register allocator to manage it as an
109         additional available register.
110
111 Mon Oct 8 14:25:39 CEST 2007 Paolo Molaro <lupus@ximian.com>
112
113         * tramp-amd64.c: fixed memory corruption in the trampoline generation.
114
115 Mon Oct 8 12:06:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
116
117         * tramp-ppc.c, tramp-x86.c: reduce the alignment requirements for
118         specific trampolines as they are not performance critical as a jump
119         target (maybe align as before only for AOT code?). This saves about
120         200 KB of native code on x86 for monodevelop startup.
121
122 Mon Oct 8 10:04:40 CEST 2007 Paolo Molaro <lupus@ximian.com>
123
124         * tramp-ppc.c: reduce the size of the trampolines, saves 160KB on
125         monodevelop startup.
126
127 2007-10-06  Zoltan Varga  <vargaz@gmail.com>
128
129         * mini-sparc.c (mono_arch_get_vcall_slot_addr): Allow signed displacements.
130
131         * mini-sparc.h mini-sparc.c: Implement IMT support.
132
133         * tramp-sparc.c (mono_arch_create_trampoline_code): Rework the trampoline code so
134         its smaller and doesn't clobber sparc_g1.
135
136         * mini-sparc.c (mono_arch_get_vcall_slot_addr): Update after trampoline changes.
137
138 Fri Oct 5 18:28:11 CEST 2007 Paolo Molaro <lupus@ximian.com>
139
140         * mini-ppc.c: optimized the size of the IMT thunks a bit.
141
142 Fri Oct 5 18:08:30 CEST 2007 Paolo Molaro <lupus@ximian.com>
143
144         * mini-ppc.c: implemented fast delegate invocation.
145
146 Fri Oct 5 00:01:05 CEST 2007 Paolo Molaro <lupus@ximian.com>
147
148         * mini-ppc.h, mini-ppc.c: IMT support for the PPC architecture.
149
150 Thu Oct 4 22:04:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
151
152         * mini-ppc.c, mini-ppc.h, tramp-ppc.c, Makefile.am: port the PPC
153         code to the new style trampoline in preparation for IMT support.
154
155 Thu Oct 4 19:01:59 CEST 2007 Paolo Molaro <lupus@ximian.com>
156
157         * mini-ppc.c, tramp-ppc.c: don't use r13 as it's used by the PPC EABI
158         systems already. This also reduces the specific trampiline sizes and
159         prepares for the use of r12 as the IMT identifier register.
160
161 Thu Oct 4 16:38:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
162
163         * mini-mips.h: endianess fix (simplified from a patch by
164         Thomas Kunze <thommy@tabao.de>, bug #323737).
165
166 Thu Oct 4 14:43:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
167
168         * exceptions-ppc.c, mini-ppc.h: refactor to use macros
169         to access ucontext fields and enable netbsd support
170         (partially from Magnus Henoch <mange@freemail.hu>).
171
172 Thu Oct 4 12:35:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
173
174         * genmdesc.pl: patch from Henryk Plötz <henryk@openmoko.org> to
175         use the preprocessor from the CPP env var if it is set.
176
177 Wed Oct 3 17:11:38 CEST 2007 Paolo Molaro <lupus@ximian.com>
178
179         * mini-trampolines.c: fixed an assertion and moved it earlier in the
180         code, before interface_offset gets used.
181
182 2007-10-02  Zoltan Varga  <vargaz@gmail.com>
183
184         * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Call 
185         mono_class_setup_vtable () before accessing klass->vtable.
186
187 2007-10-01  Zoltan Varga  <vargaz@gmail.com>
188
189         * aot-compiler.c (get_plt_index): Rework the handling of wrappers to be not so
190         hackish.
191
192 Mon Oct 1 15:00:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
193
194         * mini.c, mini-trampolines.c, mini.h: enable the lazy filling of the
195         IMT slots (this saves hundreds of KB of memory in programs like
196         IronPython and Monodevelop).
197
198 Mon Oct 1 14:44:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
199
200         * mini.c: print the delegate counter.
201
202 Mon Oct 1 14:36:50 CEST 2007 Paolo Molaro <lupus@ximian.com>
203
204         * mini-x86.c: make it easier to enable the debugging code for IMT
205         slots.
206
207 2007-09-28  Martin Baulig  <martin@ximian.com>
208
209         * debug-debugger.h
210         (MonoDebuggerMetadataInfo): Add `klass_image_offset',
211         `mono_method_klass_offset' and `mono_method_token_offset'.
212
213 2007-09-20  Mark Probst  <mark.probst@gmail.com>
214
215         * mini.c: First generics sharing implementation.  Can only share
216         in very simple cases.  If sharing doesn't work it falls back to
217         dedicated compilation.
218
219         * mini.h: Flag in MonoCompile to specify whether generic
220         compilation is shared.  Flags enum for marking which generic inst
221         of a context is used.  Prototypes for helper functions.
222
223         * generic-sharing.c: Helper functions for generic method sharing.
224
225         * optflags-def.h: Optimization flag (gshared) for enabling generic
226         method sharing added.
227
228         * Makefile.am: generic-sharing.c added.
229
230 2007-09-19 Daniel Nauck <dna@mono-project.de>
231
232         * mini.c (mono_thread_abort): fixed typo in r86014. It should be '==' instead of '!='.
233
234 2007-09-19  Massimiliano Mantione  <massi@ximian.com>
235         * mini.c (mono_thread_abort): Correctly handle ThreadAbortException,
236         fixes bug 325507.
237
238 2007-09-19  Martin Baulig  <martin@ximian.com>
239
240         * mini.c (mini_cleanup): Only call mono_debugger_cleanup() here;
241         mono_debug_cleanup() is now part of mono_cleanup().
242
243 2007-09-18  Zoltan Varga  <vargaz@gmail.com>
244
245         * driver.c (mono_main): Fix a warning.
246
247 2007-09-17  Zoltan Varga  <vargaz@gmail.com>
248
249         * aot-compiler.c: Optimize various parts when processing large assemblies.
250         Fixes ##325568.
251
252         * mini.c (mono_patch_info_hash): Improve hash function.
253
254 2007-09-14  Jonathan Chambers <joncham@gmail.com>
255
256         * mini-exceptions.c: Add HAVE_UNISTD_H check around include.
257         
258         Code is contributed under MIT/X11 license.
259
260 2007-09-14  Zoltan Varga  <vargaz@gmail.com>
261
262         * mini.c (mini_init): Fix a leak.
263
264         * debug-mini.c (mono_debug_free_method_jit_info): Fix a leak.
265
266 Fri Sep 14 12:53:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
267
268         * mini.c: redirect string.InternalAllocStr() to the managed allocator.
269
270 2007-09-14  Zoltan Varga  <vargaz@gmail.com>
271
272         * mini-amd64.c (mono_arch_find_imt_method): Add support for AOT code.
273
274 2007-09-13  Zoltan Varga  <vargaz@gmail.com>
275
276         * Makefile.am generics-variant-types.2.il generics.cs: Add some generics
277         variance tests.
278
279         * inssel.brg: Reorganize the isinst/castclass code to reduce code duplication.
280
281         * mini.c (handle_alloc): Enable managed allocators in AOT code.
282
283         * aot-compiler.c (encode_patch): Add support for MONO_WRAPPER_ALLOC.
284
285         * aot-runtime.c (decode_patch_info): Ditto.
286
287 2007-09-12  Jonathan Chambers <joncham@gmail.com>
288
289         * mini-x86.c (mono_arch_get_delegate_invoke_impl): Implement
290         static case. Cache delegates in architecture specific code, 
291         based on number of parameters.
292         
293         * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Cache delegates
294         in architecture specific code, based on number of parameters.
295         
296         * mini-trampolines.c (mono_delegate_trampoline): Architecture specific 
297         caching happen in architecture specific code now.
298         
299         Code is contributed under MIT/X11 license.
300
301 2007-09-12  Jonathan Chambers <joncham@gmail.com>
302
303         * mini.h, mini.c, mini-x86.c, mini-amd64.c, mini-hppa.c, mini-mips.c,
304         mini-s390x.c, mini-arm.c, mini-ia64.c, mini-sparc.c, mini-ppc.c, mini-alpha.c,
305         mini-s390.c: Add mono_arch_init and mono_arch_cleanup methods.
306
307         Code is contributed under MIT/X11 license.
308
309 2007-05-15  Massimiliano Mantione  <massi@ximian.com>
310         * mini.c: (mono_thread_abort) Fixed bug #82416.
311
312 Tue Sep 11 16:15:53 CEST 2007 Paolo Molaro <lupus@ximian.com>
313
314         * mini.: hook the new managed GC allocation feature into the JIT.
315
316 Tue Sep 11 16:14:16 CEST 2007 Paolo Molaro <lupus@ximian.com>
317
318         * mini.c: implementation for the new runtime tls opcode.
319
320 2007-09-11  Martin Baulig  <martin@ximian.com>
321
322         * debug-debugger.h
323         (MonoDebuggerMetadataInfo): Add `mono_method_flags_offset' and
324         `mono_method_inflated_offset'.
325
326 2007-09-07  Zoltan Varga  <vargaz@gmail.com>
327
328         * driver.c mini.h mini.c: Add a new devel command line option for injecting
329         async exceptions into a method.
330
331         * mini-amd64.h mini-amd64.c: Implement injecting of async exceptions for the
332         purpose of testing whenever the unwinder works at every instruction.
333
334 Thu Sep 6 12:42:14 CEST 2007 Paolo Molaro <lupus@ximian.com>
335
336         * mini.c: check accessibility of method used in ldftn (fixes
337         bug #82635).
338
339 2007-09-04  Zoltan Varga  <vargaz@gmail.com>
340
341         * mini-amd64.c (mono_arch_output_basic_block): Fix a warning.
342
343         * inssel.brg: Fix a warning.
344
345 2007-09-03  Martin Baulig  <martin@ximian.com>
346
347         * debug-debugger.c: `MONO_DEBUGGER_EVENT_INITIALIZE_MANAGED_CODE'
348         now takes the `main_method' as argument.
349
350 2007-09-02  Zoltan Varga  <vargaz@gmail.com>
351
352         * cpu-sparc.md (endfilter): Add missing src1:i argument.
353
354 2007-08-30  Jonathan Chambers <joncham@gmail.com>
355
356         * driver.c: include the cil-coff.h header on Windows.
357         
358         Code is contributed under MIT/X11 license.
359
360 Thu Aug 30 16:17:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
361
362         * mini.c, driver.c: don't include the cil-coff.h header.
363
364 Thu Aug 30 14:50:53 CEST 2007 Paolo Molaro <lupus@ximian.com>
365
366         * mini.c: flag places that needs fixes fo soft-float support.
367
368 Wed Aug 29 18:26:20 CEST 2007 Paolo Molaro <lupus@ximian.com>
369
370         * mini.h, inssel-float.brg: fix soft-float constant loads on big
371         endian systems (partially from Dean Jenkins, bug #81924).
372
373 2007-08-28  Mark Probst  <mark.probst@gmail.com>
374
375         * mini.c (check_linkdemand): Remove embedded reference object in
376         call to LinkDemandSecurityException.
377         (mono_jit_compile_method_inner): Call LinkDemandSecurityException
378         with an IntPtr instead of a reference object.
379
380 2007-08-28  Zoltan Varga  <vargaz@gmail.com>
381
382         * mini.c (handle_initobj): Handle alignment properly.
383
384         * inssel.brg (mini_emit_memset): Ditto. 
385
386         * inssel.brg (mini_emit_memcpy): Ditto. 
387
388         * inssel-sparc.brg: Ditto.              
389
390         * mini.h mini.c inssel-*.brg: Pass alignment information to OP_MEMCPY/MEMSET.
391
392 2007-08-26  Zoltan Varga  <vargaz@gmail.com>
393
394         * mini-exceptions.c (mono_handle_exception_internal): Skip the first frame for
395         exceptions raised in unmanaged code. Fixes part of #82594.
396
397 2007-08-24  Mark Probst  <mark.probst@gmail.com>
398
399         * mini.c (mono_method_to_ir), declsec.c
400         (mono_declsec_linkdemand_aptc): Fixed custom attr leaks.
401
402 2007-08-22  Martin Baulig  <martin@ximian.com>
403
404         * debug-mini.h
405         (MonoDebuggerThreadInfo): New typedef.
406         (mono_debugger_thread_table): New global variable.
407         (mono_debugger_thread_created): New public function.
408         (mono_debugger_thread_cleanup): New public function.
409
410         * debug-debugger.h
411         (MonoDebuggerInfo):
412         - removed `get_current_thread' and `lookup_assembly'.
413         - removed `data_table'.
414         - added `thread_table'.
415
416         * mini.c
417         (mono_thread_start_cb): Call mono_debugger_thread_created().
418         (mono_thread_attach_cb): Likewise.
419         (mini_thread_cleanup): Call mono_debugger_thread_cleanup().
420         (mini_cleanup): Move mono_debug_cleanup() down, after free'ing the
421         initial domain.
422
423         * driver.c (mono_main): Move mono_debug_init() up, before calling
424         mini_init(); mono_debug_init_1() and mono_debug_init_2() are gone.
425
426 Tue Aug 21 16:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
427
428         * mini-x86.c, inssel-x86.brg: group multiple stack adjustments
429         together when passing several arguments of type double (gives a small
430         speedup and saves a few bytes of generated code).
431
432 2007-08-20  Jb Evain  <jbevain@novell.com>
433
434         * mini.c (mono_method_to_ir): fix leak on InvalidProgramException.
435
436 2007-08-20  Jb Evain  <jbevain@novell.com>
437
438         * mini.c (mono_method_to_ir): throw MethodAccessException
439         and FieldAccessException instead of InvalidProgramException.
440
441 2007-08-20  Mark Probst  <mark.probst@gmail.com>
442
443         * mini.c: CoreCLR security checks.
444
445         * mini.h: Removed MonoSecurityMode (moved to
446         metadata/security-manager.h) and mono_security_mode global var
447         (replaced by set/get functions in security-manager.h).
448
449         * driver.c: Added "core-clr-test" security mode for testing.  Used
450         set-function for setting security mode.
451
452 2007-08-17  Mark Probst  <mark.probst@gmail.com>
453
454         * mini.c: MonoJitInfo's are freed hazardously now.  Statistics for
455         the new jit_info_table.
456
457         * driver.c: Test code for the new jit_info_table (enabled by the
458         define MONO_JIT_INFO_TABLE_TEST).
459
460 2007-08-14  Zoltan Varga  <vargaz@gmail.com>
461
462         * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix
463         detection of call <REG> instruction sequence. Fixes build on freebsd.
464
465 2007-08-13  Zoltan Varga  <vargaz@gmail.com>
466
467         * mini-exceptions.c: Fix a warning.
468
469 2007-08-11  Zoltan Varga  <vargaz@gmail.com>
470
471         * exceptions-amd64.c (mono_arch_handle_altstack_exception): Enable the new
472         stack overflow handling code on amd64 too.
473
474         * mini-exceptions.c (mono_setup_altstack): Make this use 
475         mono_thread_get_stack_bounds ().
476
477         * mini-x86.h: Disable sigaltstack on solaris x86.
478
479 2007-08-10  Zoltan Varga  <vargaz@gmail.com>
480
481         * mini-exceptions.c (mono_setup_altstack): Enable this to work on solaris x86.
482
483 2007-08-10  Geoff Norton  <gnorton@customerdna.com>
484
485         * tramp-x86.c: Remove some unneeded alignment changes on Apple.  Fixes #82387.
486
487 2007-08-08  Zoltan Varga  <vargaz@gmail.com>
488
489         * mini-exceptions.c (mono_print_thread_dump): Enable this on amd64 too.
490
491         * mini-amd64.h (MONO_INIT_CONTEXT_FROM_FUNC): Fix a warning.
492
493 2007-08-03  Neale Ferguson <neale@sinenomine.net>
494
495         * mini-s390.c (add_general): Adjust offset calculation to take into account of rounding up
496         due to alignment.
497
498 Thu Aug 2 17:36:22 CEST 2007 Paolo Molaro <lupus@ximian.com>
499
500         * mini-ppc.c: avoid an invalid encoding of unsigned right shift by 0
501         to be emitted (bug #82281).
502
503 2007-08-01  Martin Baulig  <martin@ximian.com>
504
505         Merged the `debugger-dublin' branch.
506
507         * debug-debugger.h (MonoDebuggerInfo):
508         Removed the `old_*' compatibility entries.
509         Added `debugger_version' and `data_table'.
510         Renamed `get_method_addr_or_bpt' -> `insert_breakpoint'.
511         Renamed `remove_method_breakpoint' -> `remove_breakpoint'.
512
513         * debug-mini.c
514         (MiniDebugMethodBreakpointInfo): Add `address_list'.
515         (mono_debugger_check_breakpoints): Take a `MonoDebugMethodAddress *'
516         instead of a `gconstpointer'.
517         (mono_debugger_insert_method_breakpoint): Return a
518         `MonoDebugMethodAddressList *'.
519
520 2007-06-28  Martin Baulig  <martin@ximian.com>
521
522         * debug-debugger.h (MonoDebuggerInfo): Added `debugger_version'.
523
524 2007-08-01  Zoltan Varga  <vargaz@gmail.com>
525
526         * mini-amd64.h (MONO_INIT_CONTEXT_FROM_FUNC): Avoid using 
527         __builtin_frame_address () since it is broken on older gcc versions.
528
529 Tue Jul 31 17:34:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
530
531         * mini.c, mini.h, mini-exceptions.c: added a bit of documentation
532         on the stack overflow handling and made the managed stack overflows
533         catchable in most cases using soft guard pages.
534         * exceptions-x86.c: added code to restore the protection in the soft
535         guard pages at the end of exception handling.
536
537 2007-07-31  Zoltan Varga  <vargaz@gmail.com>
538
539         * mini.c (SIG_HANDLER_SIGNATURE): Fix a warning.
540
541 Mon Jul 30 17:43:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
542
543         * exceptions-ppc.c, mini-ppc.h: arch-specific stack overflow
544         exception handling.
545
546 Mon Jul 30 17:38:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
547
548         * mini-alpha.h, mini-ia64.h, mini-sparc.h: disable the altstack
549         signal handling support until it has been ported to the new mechanism.
550         * mini.c: fixed stack overflow detection and use the new
551         architecture code  to handle signals on the altstack.
552
553 Mon Jul 30 17:33:02 CEST 2007 Paolo Molaro <lupus@ximian.com>
554
555         * exceptions-amd64.c, mini-amd64.h: amd64 code to handle
556         stack overflows on the alt stack.
557
558 Mon Jul 30 17:29:56 CEST 2007 Paolo Molaro <lupus@ximian.com>
559
560         * exceptions-x86.c, mini-x86.h, mini.h: new code to handle
561         stack overflows on the alt stack.
562
563 Mon Jul 30 11:50:06 CEST 2007 Paolo Molaro <lupus@ximian.com>
564
565         * exceptions-ppc.c: cleanup preparing for altstack support.
566
567 Mon Jul 30 11:31:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
568
569         * exceptions-arm.c: cleanup preparing for altstack support.
570
571 2007-07-27  Mark Probst  <mark.probst@gmail.com>
572
573         * mini.c (print_jit_stats): Output hazard pointer stats.
574
575 2007-07-26  Mark Probst  <mark.probst@gmail.com>
576
577         * driver.c, mini.c: Replaced security mode flags with a single
578         enum variable.
579
580 Thu Jul 26 20:12:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
581
582         * mini.c, mini-exceptions.c: cleanup the sigaltstack code.
583
584 2007-07-25  Mark Probst  <mark.probst@gmail.com>
585
586         * mini.c, mini.h, driver.c (mono_main): Added command-line flag
587         (which doesn't do anything yet) for activating Core CLR
588         (Silverlight) security.
589
590 Tue Jul 24 21:16:17 CEST 2007 Paolo Molaro <lupus@ximian.com>
591
592         * mini-codegen.c: work around a possible gcc bug on arm.
593
594 Tue Jul 24 17:20:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
595
596         * driver.c, mini-x86.h, mini-amd64.h: print a nice error
597         message for platforms that don't support AOT compilation.
598
599 Mon Jul 23 10:29:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
600
601         * mini.h, mini.c, driver.c: temporary smcs hack.
602
603 Mon Jul 23 09:29:34 CEST 2007 Paolo Molaro <lupus@ximian.com>
604
605         * mini-arm.h, mini-arm.c: arm EABI fixes.
606
607 2007-07-22  Zoltan Varga  <vargaz@gmail.com>
608
609         * exceptions-x86.c (mono_arch_find_jit_info): Handle the lmf->method == NULL
610         case.
611
612         * tramp-x86.c (mono_arch_create_trampoline_code): Only set lmf->method for
613         trampolines taking a method argument.
614
615         * mini-x86.h (MonoLMF): Add an 'esp' field plus comments.
616
617         * mini-x86.c (mono_arch_emit_prolog): Update after changes to the LMF structure.
618         * tramp-x86.c (mono_arch_create_trampoline_code): Ditto.
619
620         * exceptions-x86.c (mono_arch_get_jit_info): Properly clean up the stack after
621         JIT compilation throws an exception. Fixes #82050.
622
623 2007-07-19  Mark Probst  <mark.probst@gmail.com>
624
625         * mini.c: Removed the MonoLoaderErrorKind enum and replaced it
626         with the MONO_EXCEPTION_ defines.
627
628 2007-07-17  Zoltan Varga  <vargaz@gmail.com>
629
630         * mini-amd64.c (mono_arch_find_imt_method): Handle mov reg,IMM64 case. Fixes
631         #82117.
632         
633         * mini-amd64.c (mono_arch_find_imt_method): Add some debug code to help find out
634         the cause of an assertion.
635
636 Mon Jul 16 19:31:21 CEST 2007 Paolo Molaro <lupus@ximian.com>
637
638         * mini.c, jit-icalls.c: mono_get_inflated_method() is obsolete,
639         removed.
640
641 2007-07-15  Zoltan Varga  <vargaz@gmail.com>
642
643         * mini-amd64.c (mono_arch_build_imt_thunk): Remove the non-32bit MonoMethod
644         assert. Should fix #82103.
645
646 2007-07-14  Zoltan Varga  <vargaz@gmail.com>
647
648         * mini-exceptions.c (mono_jit_walk_stack_from_ctx): Use MONO_CONTEXT_GET_SP ()
649         here too. Fixes #82095.
650
651         * mini-amd64.c (mono_arch_build_imt_thunk): Add support for non-32bit MonoMethod
652         addresses.
653
654         * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add a couple asserts.
655
656         * mini-amd64.h: Enable IMT for amd64.
657         
658         * mini-amd64.c (mono_arch_build_imt_thunk): Optimize IMT thunk size.
659
660 2007-07-12  Zoltan Varga  <vargaz@gmail.com>
661
662         * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add support for IMT call sequences.
663
664 2007-07-12  Mark Probst  <mark.probst@gmail.com>
665
666         * mini.c (check_linkdemand, mono_method_to_ir): Abort compilation
667         as soon as check_linkdemand sets an exception_type.
668
669 Thu Jul 12 12:18:22 CEST 2007 Paolo Molaro <lupus@ximian.com>
670
671         * mini-x86.c: fixed offsets for IMT call sequence.
672         * mini-x86.h: enable IMT again.
673
674 2007-07-11  Zoltan Varga  <vargaz@gmail.com>
675
676         * trace.c (mono_trace_enter_method): Decode MonoType too.
677
678         * mini-amd64.c (mono_arch_get_vcall_slot_addr): Handle signed displacements too.
679
680         * mini.h mini-x86.h mini-trampolines.c: Change the signature of mono_arch_find_imt_method () to pass the calling code address too.
681
682         * mini-amd64.c: Add preliminary IMT implementation.
683         
684 Wed Jul 11 18:21:30 CEST 2007 Paolo Molaro <lupus@ximian.com>
685
686         * mini-x86.c: adjusted mono_arch_get_vcall_slot_addr () to
687         understand the new IMT-base interface invocation (thanks to
688         Daniel Nauck for the report and the remote debugging session).
689
690 Wed Jul 11 14:54:39 CEST 2007 Paolo Molaro <lupus@ximian.com>
691
692         * mini-x86.c: size and speed optimizations for the IMT bsearch.
693
694 2007-07-11  Zoltan Varga  <vargaz@gmail.com>
695
696         * Makefile.am (aotcheck): Make this actually use the AOTed code.
697
698 Wed Jul 11 12:41:32 CEST 2007 Paolo Molaro <lupus@ximian.com>
699
700         * mini-trampolines.c: implement AOT IMT support.
701         * mini-x86.h: enable IMT support for wider testing.
702
703 2007-07-10  Zoltan Varga  <vargaz@gmail.com>
704
705         * inssel.brg (emit_imt_argument): Add aot support here.
706
707         * aot-runtime.c (decode_patch_info): Fix reading of MONO_PATCH_INFO_METHOD.
708
709 Tue Jul 10 17:50:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
710
711         * mini-x86.c, mini-x86.h, tramp-x86.c: x86 arch-specific changes
712         of the IMT implementation, partially from massi, with my
713         implementation of the bsearch sequence. Disabled by default until
714         the AOT code is implemented.
715
716 2007-07-10  Zoltan Varga  <vargaz@gmail.com>
717
718         * cpu-x86.md: The source argument of sext_i1/i2 must by a byte reg.
719
720         * inssel-x86.brg: Add reg:ldind.i1(regvar) rules. Fixes #82056.
721
722 Tue Jul 10 17:33:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
723
724         * inssel.brg, mini.c, mini.h, mini-trampolines.c:
725         arch-independent IMT JIT code from Massimiliano
726         Mantione (massi@ximian.com) with small cleanups from me.
727
728 Tue Jul 10 13:07:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
729
730         * Makefile.am: fix svn invocation to get the svn revision to be
731         independent of the local language (build fix).
732
733 2007-07-09  Mark Probst  <mark.probst@gmail.com>
734
735         * mini.c (inline_method): Reset cfg->exception_type if the
736         inlining is aborted.  Fixes: 82049.
737
738 Mon Jul 9 17:26:47 CEST 2007 Paolo Molaro <lupus@ximian.com>
739
740         * mini.c: remove assert from exception handling code when exception_ptr
741         is not set.
742
743 2007-07-05  Zoltan Varga  <vargaz@gmail.com>
744
745         * mini.c (mono_codegen): Add an assert.
746
747         * mini-x86.c (mono_arch_emit_prolog): Allocate space for the profiler method 
748         enter and leave code.
749         * mini-amd64.c (mono_arch_emit_prolog): Likewise.
750
751 Thu Jul 5 20:12:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
752
753         * mini-ppc.c: fixed memory corruption for localloc(0)
754         (bug #81852).
755
756 2007-07-05  Zoltan Varga  <vargaz@gmail.com>
757         
758         * mini.c: Fix warnings.
759
760 Wed Jul 4 15:30:36 CEST 2007 Paolo Molaro <lupus@ximian.com>
761
762         * optflags-def.h, mini-x86.c: added sse2 optimization flag and use it
763         to emit better double->int conversions.
764
765 Tue Jul 3 19:42:16 CEST 2007 Paolo Molaro <lupus@ximian.com>
766
767         * mini.c: the provided Min/Max optimizations are valid for unisgned
768         ints.
769
770 2007-07-03  Rodrigo Kumpera  <rkumpera@novell.com>
771
772         * mini.c (can_access_method, can_access_field): methods moved to metadata/class.c and renamed to mono_method_can_access_method and mono_method_can_acesss_field
773
774 2007-06-28  Miguel de Icaza  <miguel@novell.com>
775
776         * mini.c (mono_running_on_valgrind): Add support for reporting the
777         method and  its boundaries to valgrind.
778
779 2007-06-28  Martin Baulig  <martin@ximian.com>
780
781         * debug-debugger.h (MonoDebuggerInfo): Added `debugger_version'.
782
783 2007-06-25  Zoltan Varga  <vargaz@gmail.com>
784
785         * ssa.c (visit_inst): Add support for OP_BR. Fixes #81946.
786
787         * generic.2.cs: Add new test case.
788
789 2007-06-25  Martin Baulig  <martin@ximian.com>
790
791         Merged the `debugger-dublin' branch.
792
793         * debug-mini.c
794         (mono_debugger_insert_method_breakpoint): New public method.
795         (mono_debugger_remove_method_breakpoint): Likewise.
796         (mono_debugger_check_breakpoints): New static method.
797         (mono_debug_close_method): Call mono_debugger_check_breakpoints().
798
799         * debug-debugger.h (MonoDebuggerInfo):
800         Renamed (to keep backward compatibility in the vtable):
801         `insert_breakpoint' -> `old_insert_breakpoint'.
802         `remove_breakpoint' -> `old_remove_breakpoint'.
803         `create_string' -> `old_create_string'.
804         `lookup_class' -> `old_lookup_class'.
805         `lookup_type' -> removed; changed into a dummy field.
806         `lookup_assembly' -> `old_lookup_assembly'.
807         Added (same functionality, but different signature):
808         `create_string', `lookup_class', `lookup_assembly'
809         Added new:
810         `get_method_addr_or_bpt', `remove_method_breakpoint',
811         `runtime_class_init'.
812
813         * debug-debugger.c: Merged the `debugger-dublin' branch.
814
815 2007-06-23  Zoltan Varga  <vargaz@gmail.com>
816
817         * mini-amd64.c (peephole_pass_1): Optimize away moves at the beginning of the bb as
818         well.
819         (peephole_pass): Likewise.
820
821 Fri Jun 22 09:17:08 CEST 2007 Paolo Molaro <lupus@ximian.com>
822
823         * driver.c: hopefully make setaffinity work also for ancient
824         versions of linux.
825
826 2007-06-22  Atsushi Enomoto  <atsushi@ximian.com>
827
828         * driver.c : win32 build fix.
829
830 Thu Jun 21 19:24:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
831
832         * driver.c: check for the MONO_NO_SMP env var and bind to a single
833         processor if it is set.
834
835 2007-06-21  Martin Baulig  <martin@ximian.com>
836
837         * debug-mini.h: New file.
838
839         * debug-mini.c
840         (mono_debugger_insert_breakpoint_full): Moved here from
841         ../metadata/mono-debug-debugger.c.
842         (mono_debugger_remove_breakpoint): Likewise.
843         (mono_debugger_breakpoint_callback): Likewise.
844
845 2007-06-15  Raja R Harinath  <rharinath@novell.com>
846
847         * jit-icalls.c (mono_helper_compile_generic_method): Update to
848         changes in MonoGenericClass.
849
850 2007-06-14  Zoltan Varga  <vargaz@gmail.com>
851
852         * mini-codegen.c (mono_opcode_to_type): Fix ia64 build.
853
854 2007-06-14  Raja R Harinath  <rharinath@novell.com>
855
856         * jit-icalls.c (mono_helper_compile_generic_method): Update to
857         removal of MonoGenericMethod.
858
859 Thu Jun 14 12:42:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
860
861         * mini-exceptions.c: hooks for the exception events profiling API.
862
863 2007-06-14  Randolph Chung  <tausq@debian.org>
864
865         * Makefile.ma: Add hppa target.
866         * mini-arch.h: Include mini-hppa.h
867         * cpu-hppa.md, exceptions-hppa.c, inssel-hppa.brg, mini-hppa.c,
868         mini-hppa.h, tramp-hppa.c: New files for 32-bit HPPA port.
869         Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
870
871 2007-06-14  Randolph Chung  <tausq@debian.org>
872
873         * inssel.brg: Add rules for "chained" compare-branch operations so that
874         a single compare op can affect multiple branches.  Adjust cost for
875         OP_CEQ/OP_CGT/OP_CGT_UN/OP_CLT/OP_CLT_UN.
876         * inssel-long32.brg: Update rules to use compare-branch macros.  Adjust
877         cost for some rules so that they can more easily be overridden by
878         per-arch rules (with fixes from lupus).
879         Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
880
881 2007-06-13  Randolph Chung  <tausq@debian.org>
882
883         * mini-ops.h: Reorder branch ops so that they match the order of the
884         corresponding CEE_* ops.  The code expects them this way.
885         Add new ops for HPPA target.
886         Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
887
888 2007-06-13  Randolph Chung  <tausq@debian.org>
889
890         * mini-exceptions.c: Handle cases where the stack grows towards
891         larger addresses.
892         Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
893
894 Wed Jun 13 19:13:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
895
896         * jit-icalls.c, mini.h, mini.c: added virtual generic invoke
897         counter.
898         * driver.c: explain where a non-matching corlib is found.
899
900 2007-06-13  Mark Probst  <mark.probst@gmail.com>
901
902         * mini.c (print_jit_stats): Output dynamic code allocation stats.
903
904 2007-06-10  Sanghyeon Seo <sanxiyn@gmail.com>
905
906         * mini-exceptions.c: Generate a method profile leave event during
907         an exception to ensure that the profiler gets notified.
908
909 2007-06-07  Zoltan Varga  <vargaz@gmail.com>
910
911         * mini-amd64.c (peephole_pass): Merge some small changes from the linear-ir 
912         branch.
913
914         * cpu-amd64.md: Add long_and/or/xor opcodes.
915
916 2007-06-06  Wade Berrier  <wberrier@novell.com>
917
918         * cpu-s390x.md (shr_imm): Correct the length of shr_imm instruction.
919         (./class/lib/monolite/mcs.exe:25498): WARNING **: wrong maximal instruction 
920         length of instruction shr_imm (expected 8, got 10)
921
922 2007-06-06  Zoltan Varga  <vargaz@gmail.com>
923
924         * mini-ia64.c (mono_arch_output_basic_block): Really fix the build.
925
926 2007-06-06  Mark Probst  <mark.probst@gmail.com>
927
928         * mini.c, driver.c: Changed MonoDomain.jit_code_hash to a
929         MonoInternalHashTable again (fixed bug in the internal hash table
930         code).
931
932 2007-06-06  Mark Probst  <mark.probst@gmail.com>
933
934         * mini.c, driver.c: Reverted the MonoInternalHashTable changes.
935         Have to figure out what makes it crash the SWF regression.
936
937 2007-06-05  Zoltan Varga  <vargaz@gmail.com>
938
939         * mini-ia64.c (mono_arch_lowering_pass): Fix ia64 build.
940
941 Tue Jun 5 17:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
942
943         * mini.c: optimize out the type check when storing null in a
944         reference array.
945
946 2007-06-04  Mark Probst  <mark.probst@gmail.com>
947
948         * mini.c, driver.c: Changed MonoDomain.jit_code_hash to a
949         MonoInternalHashTable.
950
951 Mon Jun 4 11:29:43 CEST 2007 Paolo Molaro <lupus@ximian.com>
952
953         * inssel.brg, mini.c, mini-ops.h: optimized Math.Mini/Max
954         signed integer methods.
955
956 2007-06-02  Zoltan Varga  <vargaz@gmail.com>
957
958         * mini-x86.c (mono_arch_get_delegate_invoke_impl): Disable the static case 
959         permanently since the current approach doesn't work.
960
961 2007-06-02  Zoltan Varga  <vargaz@gmail.com>
962
963         * inssel.brg (stmt): Only call delegate->invoke_impl if 
964         MONO_ARCH_HAVE_CREATE_DELEGATE_TRAMPOLINE is defined.
965
966 2007-06-01  Zoltan Varga  <vargaz@gmail.com>
967
968         * mini-amd64.c (mono_arch_output_basic_block): Unify div/rem opcodes and handle
969         the sreg2==rdx case.
970         
971         * mini-amd64.c cpu-amd64.md: Correct length of r4const instruction and take into
972         account if it contains a rex prefix.
973         (peephole_pass): Handle OP_FMOVE as well.
974
975 2007-06-01  Zoltan Varga  <vargaz@gmail.com>
976
977         * mini-x86.c (mono_arch_get_delegate_invoke_impl): Disable the static case for now
978         as it causes regressions.
979
980 2007-05-31  Zoltan Varga  <vargaz@gmail.com>
981
982         * mini-x86.c (mono_arch_get_delegate_invoke_impl): Implement support for the
983         static case as well.
984
985         * tramp-ia64.c (mono_arch_create_trampoline_code): Fix ia64 build.
986
987         * mini-x86.c (mono_arch_get_delegate_invoke_impl): New arch dependent function.
988         (mono_arch_get_this_arg_from_call): Ditto.
989
990         * tramp-x86.c (mono_arch_patch_delegate_trampoline): Removed.
991
992         * inssel.brg (mini_emit_virtual_call): Call delegate->Invoke through the delegate's
993         invoke_impl field.
994
995         * mini-amd64.c (mono_arch_get_delegate_invoke_impl): New arch dependent function.
996         (mono_arch_get_this_arg_from_call): Ditto.
997
998         * tramp-amd64.c (mono_arch_patch_delegate_trampoline): Removed.
999         
1000         * mini-trampolines.c (mono_delegate_trampoline): Complete rewrite. On first call,
1001         try to create optimized invoke code and use that for further invocations. 
1002         Otherwise, use the original mono_marshal_get_delegate_invoke () implementation.
1003
1004         * mini-x86.h mini-ia64.h: Remove MONO_ARCH_HAS_CREATE_DELEGATE_TRAMPOLINE for now.
1005
1006 2007-05-29  Rodrigo Kumpera  <kumpera@gmail.com>
1007
1008         * inssel.brg (mini_emit_virtual_call): Statically dispatch virtual calls to
1009         sealed classes or methods.
1010         *devirtualization.cs: tests for the new optimization
1011
1012 2007-05-29  Zoltan Varga  <vargaz@gmail.com>
1013
1014         * liveness.c (update_gen_kill_set): No need to set VOLATILE flags here, it is done
1015         by the update_volatile () function.
1016
1017 2007-05-27  Zoltan Varga  <vargaz@gmail.com>
1018
1019         * driver.c (mono_main): Call g_thread_init () early since newer glib versions
1020         require it.
1021
1022         * abcremoval.c (mono_perform_abc_removal): Avoid using alloca.
1023
1024 2007-05-24  Jonathan Chambers  <joncham@gmail.com>
1025
1026         * mini.c: Add configure checks for header files.
1027         * mini-x86.c: Add configure checks for header files.
1028         * trace.c: Add configure checks for header files.
1029         * aot-runtime.c: Add configure checks for header files.
1030         * aot-compiler.c: Add configure checks for header files.
1031         * driver.c: Add configure checks for header files.
1032         * mini-codegen.c: Add configure checks for header files.
1033         
1034         Code is contributed under MIT/X11 license.
1035
1036 2007-05-22  Zoltan Varga  <vargaz@gmail.com>
1037
1038         * mini-ia64.c (mono_arch_lowering_pass): Fix the handling of
1039         icompare_imm -128 + op_iclt. Fixes #81703.
1040
1041 2007-05-19  Zoltan Varga  <vargaz@gmail.com>
1042
1043         * mini-codegen.c (mono_local_regalloc): Fix long-shift-regalloc on amd64.
1044
1045 2007-05-15  Massimiliano Mantione  <massi@ximian.com>
1046
1047         * inssel.brg: added "mini_emit_load_intf_bit_reg_vtable", and used it
1048         inside "mini_emit_isninst_iface_cast" and "mini_emit_castclass_iface"
1049         so that all isinst checks now use "interface_bitmap".
1050
1051 2007-05-15  Zoltan Varga  <vargaz@gmail.com>
1052
1053         * cpu-amd64.md (jmp): Fix a warning.
1054
1055         * inssel.brg (CEE_SWITCH): Hopefully fix #80738.
1056
1057         * basic.cs: Add new regression test.
1058
1059         * basic.cs: Remove test which is now in basic-long.cs.
1060
1061         * mini-ia64.c (mono_arch_output_basic_block): Sign extend in CEE_CONV_I8/CEE_CONV_I.
1062
1063         * basic-long.cs: Add new test.
1064         
1065 2007-05-13  Zoltan Varga  <vargaz@gmail.com>
1066
1067         * mini-sparc.c (mono_spillvar_offset_float): Fix sparc build.
1068
1069 2007-05-12  Zoltan Varga  <vargaz@gmail.com>
1070
1071         * cpu-x86.md minix-86.c: Add a peephole_pass_1 () as on amd64.
1072
1073         * mini-x86.c (mono_arch_output_basic_block): Use mono_opcode_to_cond () in a few
1074         places.
1075         
1076         * mini-x86.c (mono_arch_emit_exceptions): Decrease the size of the exception 
1077         throwing code a bit.
1078
1079         * exceptions-x86.c (mono_arch_get_throw_corlib_exception): Decrease the size of 
1080         the exception throwing code a bit.
1081
1082         * mini-x86.c (get_call_info): Allocate result from a mempool.
1083
1084 2007-05-11  Zoltan Varga  <vargaz@gmail.com>
1085
1086         * aot-compiler.c (find_typespec_for_class): Fix the assert.
1087
1088         * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file version.
1089
1090         * mini.h (MonoCompile): Add 'token_info_hash' field.
1091
1092         * mini.c: Save token->method associations during compilation so the AOT 
1093         compiler can use it.
1094         
1095         * aot-compiler.c aot-runtime.c: Add support for compiling non-generic methods
1096         which reference generic classes and methods.
1097
1098 2007-05-10  Zoltan Varga  <vargaz@gmail.com>
1099
1100         * mini.h mini-<ARCH>.h: Get rid of MONO_ARCH_HAS_XP_LOCAL_REGALLOC.
1101
1102         * aot-compiler.c (compile_method): Fix a typo in a comment.
1103
1104         * aot-runtime.c (decode_cached_class_info): Skip generic types.
1105
1106         * aot-compiler.c: Add minimal support for AOTing generic code by skipping 
1107         everything generic.
1108
1109         * mini.c (mono_method_to_ir): Disable AOT when calling helper_compile_generic_method.
1110
1111 2007-05-09  Zoltan Varga  <vargaz@gmail.com>
1112
1113         * mini.h (MonoCompile): Add 'args' field.
1114
1115         * mini.c (mono_compile_create_vars): Store variables representing the arguments
1116         into cfg->args.
1117
1118         * mini-<ARCH>.c: Use cfg->args for accessing the method arguments.
1119
1120 2007-05-08  Zoltan Varga  <vargaz@gmail.com>
1121
1122         * mini.c (mono_compile_get_interface_var): Remove this unused function.
1123
1124         * mini-ops.h inssel.brg mini-<ARCH>.c: Add a new opcode for ckfinite as well.
1125
1126         * mini-ops.h: Introduce new opcodes used in the IR instead of the original CEE_
1127         opcodes for some opcodes.
1128
1129         * mini.h *.brg *.c: Use the new opcodes.
1130
1131 2007-05-08  Massimiliano Mantione  <massi@ximian.com>
1132
1133         * mini.h: Bumped aot revision.
1134
1135         * inssel.brg: modified code generation of type checks for interfaces
1136         to use the new "MonoClass.interface_bitmap" instead of the old
1137         "MonoClass.interface_offsets".
1138
1139 2007-04-30  Zoltan Varga  <vargaz@gmail.com>
1140
1141         * cpu-amd64.md (jmp): Increase the maximum size of the jmp opcode to 128.
1142
1143 2007-04-29  Zoltan Varga  <vargaz@gmail.com>
1144
1145         * abcremoval.c (summarize_integer_value): Handle OP_LCONV_TO_I4 to fix abcrem on
1146         64 bit platforms.
1147
1148 2007-04-27  Neale Ferguson <neale@sinenomine.net>
1149
1150         * mini-s390x.c: Fix MONO_TYPE_VALUETYPE processing.
1151
1152 2007-04-27  Wade Berrier  <wberrier@novell.com>
1153
1154         * mini-s390x.c: Remove redeclaration of CompRelation and CompType (defined in 
1155         mini.h) to fix build.
1156
1157 2007-04-26  Zoltan Varga  <vargaz@gmail.com>
1158
1159         * mini-amd64.c (peephole_pass_1): Fix and reenable this pass.
1160         
1161         * mini-amd64.c (mono_arch_local_regalloc): Disable the new peephole_pass_1 as it
1162         causes the corlib unit tests to fail.
1163
1164 2007-04-25  Zoltan Varga  <vargaz@gmail.com>
1165
1166         * mini-codegen.c (mono_opcode_to_type): Fix a bug in the previous patch.
1167
1168         * mini-amd64.c (peephole_pass_1): New pass to perform before local regalloc.
1169
1170         * mini-codegen.c (mono_opcode_to_cond): New helper function to convert conditional 
1171         opcodes to the comparison relations.
1172
1173         * mini-codegen.c (mono_opcode_to_type): New helper function to convert conditional 
1174         opcodes to their types.
1175         
1176         * mini-ia64.c mini-amd64.c: Use mono_opcode_to_cond and mono_opcode_to_type.
1177
1178         * mini-amd64.c (get_call_info): Allocate the result from the cfg mempool and cache 
1179         it in cfg->arch.cinfo.
1180
1181         * local-propagation.c (mono_local_cprop_bb): Fix a warning.
1182
1183         * mini.h mini.c branch-opts.c: Change bbhash to be an array and store it in 
1184         cfg->cil_offset_to_bb.
1185
1186 2007-04-24  Zoltan Varga  <vargaz@gmail.com>
1187
1188         * liveness.c (optimize_initlocals): New mini-pass to optimize away dead assignments
1189         created becase of initlocals.
1190
1191 2007-04-23  Zoltan Varga  <vargaz@gmail.com>
1192
1193         * mini-alpha.c cpu-alpha.md: More alpha port work from 
1194         Sergey Tikhonov <tsv@solvo.ru>.
1195
1196 2007-04-21  Andreas Faerber  <andreas.faerber@web.de>
1197
1198         * Makefile.am (BUILT_SOURCES): Fix for automake 1.6.x. Fixes #81417.
1199
1200 2007-04-19  Zoltan Varga  <vargaz@gmail.com>
1201
1202         * cpu-s390.md (break): Correct the length of break instruction.
1203
1204 Thu Apr 19 16:28:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
1205
1206         * mini.c: fix a couple of soft-float issues and comments.
1207
1208 2007-04-15  Miguel de Icaza  <miguel@novell.com>
1209
1210         * trace.c (is_filenamechar): - is also a filename char.
1211
1212 2007-04-15  Neale Ferguson <neale@sinenomine.net>
1213
1214         * mini-s390.c: Correct checking for enum type in return value processing.
1215
1216 2007-04-14  Raja R Harinath  <rharinath@novell.com>
1217
1218         * Makefile.am (BUILT_SOURCES): Add 'version.h'.
1219         (version.h): Makefile is in the build directory.
1220
1221 2007-04-06  Andreas Faerber  <andreas.faerber@web.de>
1222
1223         * mini-amd64.h: fix for assertion failure on Solaris/amd64
1224
1225 2007-04-11  Martin Baulig  <martin@ximian.com>
1226
1227         * mini.c (can_access_member): Fix handling of generic classes;
1228         fixes #81259.
1229
1230 2007-04-10  Zoltan Varga  <vargaz@gmail.com>
1231
1232         * aot-runtime.c (mono_aot_plt_resolve): Fix disabling of AOT. Fixes #81316.
1233
1234 2007-04-05  Zoltan Varga  <vargaz@gmail.com>
1235
1236         * aot-runtime.c: Fix disabling of AOT. Fixes #81316.
1237
1238 Fri Mar 23 20:25:31 CET 2007 Paolo Molaro <lupus@ximian.com>
1239
1240         * mini-codegen.c: make sure the right spill amount is
1241         used for fp or integer registers (fixes the float_sub_spill() on ppc).
1242
1243 Fri Mar 23 19:43:35 CET 2007 Paolo Molaro <lupus@ximian.com>
1244
1245         * mini-ppc.c: fixes for the fp_branch_nan test.
1246
1247 2007-03-23  Zoltan Varga  <vargaz@gmail.com>
1248
1249         * basic.cs: Comment out new test which still fails on ia64.
1250
1251 Fri Mar 23 15:54:23 CET 2007 Paolo Molaro <lupus@ximian.com>
1252
1253         * mini.c: immediate shifted or fix (mono_metadata_user_string assert).
1254
1255 Fri Mar 23 12:53:28 CET 2007 Paolo Molaro <lupus@ximian.com>
1256
1257         * mini-ppc.c, mini-ppc.h: struct passing ABI fix (bug #77968).
1258
1259 2007-03-22  Zoltan Varga  <vargaz@gmail.com>
1260
1261         * cfold.c (FOLD_BINOP): Cast the result to gint32 to prevent overflow problems
1262         on 64 bit machines. Fixes part of #80738.
1263
1264         * basic.cs: Add regression test.
1265
1266 2007-03-17  Zoltan Varga  <vargaz@gmail.com>
1267
1268         * inssel.brg basic.cs: Revert previous change to fix build.
1269
1270         * inssel.brg (SWITCH): Clean out the upper word of the switch value on 64 bit
1271         platforms.
1272         
1273         * inssel.brg (SWITCH): Use an integer comparison. Fixes #80738.
1274
1275         * basic.cs: Add new regression test.
1276
1277 2007-03-17  Zoltan Varga  <vargaz@gmail.com>
1278
1279         * mini-ia64.c (mono_arch_emit_prolog): Fix an assert when a function has too
1280         many arguments.
1281
1282 2007-03-16  Neale Ferguson <neale@sinenomine.net>
1283
1284         * cpu-s390x.md: Correct length of break instruction.
1285
1286 2007-03-16  Neale Ferguson <neale@sinenomine.net>
1287
1288         * mini-s390x.c, cpu-s390x.md: Fix #80507 for s390x.
1289         * mini-s390.c, cpu-s390.md: Fix #80507 for s390.
1290
1291 2007-03-15  Jonathan Chambers  <joncham@gmail.com>
1292
1293         * *.c: Begin WIN64 port.
1294         * mini.c:  Use correct register in profiler.
1295         * mini-amd64.c: No inline assembly on Win64.
1296         * mini-amd64.h: Implement MONO_INIT_CONTEXT_FROM_FUNC for Win64.
1297         Only define MONO_ARCH_USE_SIGACTION on non-windows platforms.
1298         * exceptions-amd64.c: Only need gregs_from_ucontext if MONO_ARCH_USE_SIGACTION
1299         is defined. Implement mono_arch_sigctx_to_monoctx, mono_arch_monoctx_to_sigctx, and
1300         mono_arch_ip_from_context for Win64.
1301         
1302         Contributed under MIT/X11 license.
1303
1304 2007-03-15  Zoltan Varga  <vargaz@gmail.com>
1305
1306         * exceptions-amd64.c (seh_handler): Ditto.
1307
1308         * exceptions-x86.c (seh_handler): Fix a memory leak.
1309
1310 Thu Mar 15 13:47:59 CET 2007 Paolo Molaro <lupus@ximian.com>
1311
1312         * mini-arm.c, mini-mips.c, mini-ppc.c, mini-s390.c,
1313         mini-s390x.c: fixed peephole optimizations to deal
1314         correctly with 1 and 2 byte reload avoidance.
1315
1316 Thu Mar 15 10:17:54 CET 2007 Paolo Molaro <lupus@ximian.com>
1317
1318         * cpu-s390.md, cpu-s390x.md: update localloc length.
1319
1320 Wed Mar 14 21:00:19 CET 2007 Paolo Molaro <lupus@ximian.com>
1321
1322         * cpu-g4.md: added missing descriptions.
1323
1324 2007-03-14  Miguel de Icaza  <miguel@novell.com>
1325
1326         *  Makefile.am: Add support so the tail tests are not executed on
1327         PowerPC as that is a known limitation of the PowerPC port.
1328
1329 2007-03-13  Jonathan Chambers  <joncham@gmail.com>
1330
1331         * runmdesc.bat:  Move to msvc directory.
1332         
1333 2007-03-13  Jonathan Chambers  <joncham@gmail.com>
1334
1335         * runmdesc.bat:  Run executable that was produced by the current
1336         target and sent via an argument.
1337         
1338 2007-03-11  Zoltan Varga  <vargaz@gmail.com>
1339
1340         * mini.c (mono_method_to_ir): Fix box+brtrue optimization. Fixes
1341         #81102.
1342
1343         * generics.2.cs: Add regression test.
1344
1345 2007-03-09  Wade berrier  <wberrier@novell.com>
1346
1347         * mini-ppc.h: Undo typo of MONO_CONTEXT_SET_SP (ppc doesn't define this symbol)
1348
1349 2007-03-09  Zoltan Varga  <vargaz@gmail.com>
1350
1351         * aot-runtime.c (load_aot_module): Load all dependent assemblies eagerly since all
1352         AOT code depends on this.
1353
1354 Thu Mar 8 19:36:13 CET 2007 Paolo Molaro <lupus@ximian.com>
1355
1356         * mini.c: more precise tracking of types in the eval stack
1357         (part of fix for bug #81044).
1358
1359 2007-03-07  Zoltan Varga  <vargaz@gmail.com>
1360
1361         * aot-runtime.c (mono_aot_get_class_from_name): Add a cache.
1362
1363         * aot-compiler.c (encode_patch): Remove an obsolete comment.
1364
1365 2007-03-06  Zoltan Varga  <vargaz@gmail.com>
1366
1367         * mini-exceptions.c (mono_handle_native_sigsegv): Fix a warning.
1368
1369         * mini.c (mono_method_to_ir): Add a workaround for bug #80733.
1370
1371 2007-02-22  Zoltan Varga  <vargaz@gmail.com>
1372
1373         * mini.c (type_from_op): Convert CEE_CONV_U to OP_LCONV_TO_U when the argument is
1374         a pointer on 64 bit systems. Fixes #80190.
1375
1376         * iltests.il: Add new regression test.
1377
1378 Tue Feb 20 11:33:28 CET 2007 Paolo Molaro <lupus@ximian.com>
1379
1380         * mini.c: inline a constant for Environment.IsRunningOnWindows.
1381
1382 2007-02-19  Geoff Norton  <gnorton@customerdna.com>
1383
1384         * trace.c: Remove an erroneous alignemnt check when tracing.
1385           Fixes --trace on OSX86.
1386
1387 Wed Feb 14 19:45:56 CET 2007 Paolo Molaro <lupus@ximian.com>
1388
1389         * mini-$(arch).h: initialize SP in context for all the archs.
1390
1391 2007-02-14  Sebastien Pouliot  <sebastien@ximian.com>
1392
1393         * mini-x86.h: Initialize SP in MONO_INIT_CONTEXT_FROM_FUNC. Fix CAS
1394         regressions in the thread tests.
1395
1396 2007-02-14  Zoltan Varga  <vargaz@gmail.com>
1397
1398         * *-alpha.*: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>:
1399         - fixed implementation of LOCALLOC opcode
1400         - implemented non-un compare for floats
1401         - code cleanup
1402         - implementation of FDIV and CKFINITE opcodes
1403         - fixes for latest mono updates
1404         - additional arch opcodes
1405
1406 Mon Feb 12 11:54:16 CET 2007 Paolo Molaro <lupus@ximian.com>
1407
1408         * Makefile.am: simplify and merge rules for cross-compilation.
1409
1410 2007-02-07  Massimiliano Mantione  <massi@ximian.com>
1411
1412         * local-propagation.c: Actually *apply* the fix for bug 80591...
1413
1414 Tue Feb 6 19:03:19 CET 2007 Paolo Molaro <lupus@ximian.com>
1415
1416         * mini-exceptions.c: backuot part of the last change
1417         (fixes cas tests on amd64 related to GetExecutingAssembly ()).
1418
1419 2007-02-06  Massimiliano Mantione  <massi@ximian.com>
1420         * inssel.brg: Fix bug 59286.
1421
1422
1423 Tue Feb 6 12:23:50 CET 2007 Paolo Molaro <lupus@ximian.com>
1424
1425         * mini-exceptions.c: patch from Zoltan to correctly check for
1426         stack boundaries (using the stack register, not the frame register),
1427         fixes bugs #80724, #79717.
1428
1429 2007-02-03  Zoltan Varga  <vargaz@gmail.com>
1430
1431         * mini-ia64.c inssel-sparc.brg mini-sparc.c cpu-sparc.md: Get rid of OP_SETREG/
1432         OP_SETREGIMM, use OP_MOVE/OP_ICONST instead.
1433
1434         * mini-amd64.c (mono_arch_output_basic_block): Fix ATOMIC_EXCHANGE in the
1435         presence of frame pointer elimination.
1436
1437 2007-02-01  Geoff Norton  <gnorton@customerdna.com>
1438         
1439         * mini-x86.h: NetBSD UCONTEX_REG defines.
1440
1441 2007-02-01  Zoltan Varga  <vargaz@gmail.com>
1442
1443         * inssel-amd64.brg: Fix amd64 build.
1444
1445 Thu Feb 1 14:02:09 CET 2007 Paolo Molaro <lupus@ximian.com>
1446
1447         * mini.h: remove extern to workaround what looks likes gcc bug 26905
1448         on amd64.
1449
1450 2007-01-31  Zoltan Varga  <vargaz@gmail.com>
1451
1452         * mini-codegen.c (mono_is_regsize_var): New helper function usable by the back
1453         ends.
1454
1455         * mini-<ARCH>.c: Use mono_is_regsize_var ().
1456
1457 2007-01-30 Mark Mason <mason@broadcom.com>
1458
1459            * exceptions-mips.c: Lots of exception handling fixes, LMFs now work, some cleanups.
1460            * mini-mips.h: Add LMF magic numbers, and fix context set/get macros.
1461            * mini-mips.c: Cleanups, LMF handling now works, optimize store of zero, implement localloc
1462            beginning support for CEE_JMP [not quite working yet]
1463            * tramp-mips.c: LMF handling now works
1464         
1465 2007-01-30  Zoltan Varga  <vargaz@gmail.com>
1466
1467         * mini-amd64.c (peephole_pass): Optimize code common in initlocals blocks.
1468
1469         * mini.h (NULLIFY_INS): New macro.
1470
1471 Tue Jan 30 16:33:33 CET 2007 Paolo Molaro <lupus@ximian.com>
1472
1473         * mini.c: statistical profiler fix for windows, patch
1474         from Tor Lillqvist (tml@novell.com).
1475
1476 2007-01-30  Massimiliano Mantione  <massi@ximian.com>
1477         * local-propagation.c: Fix bug 80591.
1478
1479 Mon Jan 29 12:14:34 CET 2007 Paolo Molaro <lupus@ximian.com>
1480
1481         * Makefile.am: put back the --export-dynamic option as with
1482         the previous gmodule flags (thanks to Robert Jordan).
1483
1484 2007-01-28  Zoltan Varga  <vargaz@gmail.com>
1485
1486         * mini-sparc.c (peephole_pass): Fix #80622 for sparc as well.
1487
1488         mini.h *.c: Allocate fp vregs from the same pool as the int vregs. Use this to
1489         simplify and speed up the local register allocator. Also rename some fields
1490         like iassign->vassign.
1491         
1492         * regalloc.c: Remove some functions which are no longer used since their
1493         inlined version is in mini-codegen.c.
1494         
1495         * mini-codegen.c: Rename mono_regstate2_ functions to mono_regstate_.
1496
1497         * basic.cs objects.cs iltests.il: Merge tests from the linear IL branch.
1498
1499 2007-01-27  Zoltan Varga  <vargaz@gmail.com>
1500
1501         * mini-amd64.c (peephole_pass): Remove optimizations which omit a 
1502         narrowing. Fixes #80622.
1503
1504         * iltests.il: Add new regresssion test. 
1505
1506 Fri Jan 26 18:31:45 CET 2007 Paolo Molaro <lupus@ximian.com>
1507
1508         * mini.h, mini-trampolines.c, aliasing.c, mini-codegen.c,
1509         debug-debugger.c, debug-debugger.h: warning fixes.
1510         * driver.c: updated copyright year and made it fit in one line.
1511
1512 Fri Jan 26 12:48:39 CET 2007 Paolo Molaro <lupus@ximian.com>
1513
1514         * aot-runtime.c: updated to use mono-dl instead of gmodule.
1515
1516 2007-01-25  Zoltan Varga  <vargaz@gmail.com>
1517
1518         * mini-x86.c (mono_arch_output_basic_block): Fix #80507 for x86.
1519
1520         * mini-amd64.c (mono_arch_output_basic_block): Fix #80507 for amd64.
1521
1522         * iltests.il: Add new test for bug #80507.
1523
1524 Wed Jan 24 19:10:28 CET 2007 Paolo Molaro <lupus@ximian.com>
1525
1526         * mini-arm.h: use soft-float also on vfp for now.
1527
1528 Wed Jan 24 14:54:40 CET 2007 Paolo Molaro <lupus@ximian.com>
1529
1530         * mini.c: fix some more soft-float issues.
1531
1532 2007-01-24  Zoltan Varga  <vargaz@gmail.com>
1533
1534         * mini-sparc.h (MONO_ARCH_FRAME_ALIGNMENT): Fix sparc build.
1535
1536 2007-01-24  Massimiliano Mantione  <massi@ximian.com>
1537         * mini-arch.h, , inssel-amd64.brg, mini-x86.c, inssel-x86.brg,
1538         mini-ia64.c, mini-sparc.c, mini-alpha.c: Introduced
1539         MONO_ARCH_LOCALLOC_ALIGNMEENT to fix bug 80498.
1540
1541 Wed Jan 24 12:04:39 GMT 2007 Paolo Molaro <lupus@ximian.com>
1542
1543         * mini-arm.c: typo fix.
1544
1545 2007-01-23  Neale Ferguson <neale@sinenomine.net>
1546
1547         * mini-s390x.c: Use lgb instructions for I1 type variables instead of lb.
1548
1549 2007-01-21  Zoltan Varga  <vargaz@gmail.com>
1550
1551         * mini.c (mono_allocate_stack_slots_full): Allocate memory from the cfg mempool.
1552         Share stack slots for scalar types. Avoid expensive g_list_free () calls.
1553
1554         * mini-x86.c (mono_arch_allocate_vars): Don't free the result of allocate_stack_slots_full.
1555
1556         * mini-amd64.c mini-ia64.c mini-alpha.c: Ditto. 
1557
1558         * mini.h (MonoJitStats): Add a new JIT statistics: locals_stack_size.
1559         
1560         * inssel.brg: Fix a warning.
1561
1562         * mini.h (MonoBasicBlock): Make bb->dominated a GSList.
1563
1564         * abcremoval.c ssa.c ssapre.c: Update after this change.
1565         
1566         * dominators.c (compute_dominators): Allocate bb->dominated from the cfg mempool.
1567
1568         * dominators.c (df_set): Use mono_bitset_union_fast.    
1569
1570 Sat Jan 20 16:59:01 CET 2007 Paolo Molaro <lupus@ximian.com>
1571
1572         * mini.h, genmdesc.c, genmdesc.pl, mini-${arch}.c, cprop.c,
1573         mini-codegen.c: reduce relocations and memory usage for the cpu
1574         description.
1575
1576 2007-01-20  Zoltan Varga  <vargaz@gmail.com>
1577
1578         * mini-codegen.c (mono_regstate2_alloc_int): Optimize this using bsfq on amd64.
1579
1580         * genmdesc.c genmdesc.pl mini.h: Remove some unused fields from the mdesc tables
1581         to reduce their size.
1582
1583 2007-01-19 Mark Mason <mason@broadcom.com>
1584
1585         * exceptions-mips.c: fix mono_arch_ip_from_context(), increase exception debug support.
1586         * mini-mips.c: more configuration macros, support long conditional branches, additional
1587         asserts, fix epilog instrumentation.
1588         * mini-mips.h: use standard stack walk
1589         * cpu-mips.md: increase size of div, rem and conditional branches
1590         
1591 Fri Jan 19 17:23:32 CET 2007 Paolo Molaro <lupus@ximian.com>
1592
1593         * mini.h, mini-codegen.c, mini-$(arch).h: claenup references
1594         to cpu spec data.
1595
1596 2007-01-19  Zoltan Varga  <vargaz@gmail.com>
1597
1598         * aot-compiler.c (encode_klass_info): Allow classes of the form <Type>[][].
1599         (compile_method): Ditto.
1600
1601         * aot-runtime.c (decode_klass_info): Ditto.
1602
1603         * mini.c (mono_method_to_ir): Call mono_get_got_var () in a place where it is
1604         needed by the code generated by inssel.brg. Also fix a warning.
1605
1606 Thu Jan 18 17:55:22 CET 2007 Paolo Molaro <lupus@ximian.com>
1607
1608         * mini.c: deal with enums that become genericinsts by
1609         being nested in a generic class (bug #79956).
1610
1611 Thu Jan 18 16:52:56 CET 2007 Paolo Molaro <lupus@ximian.com>
1612
1613         * mini.c: match the generic definition to check for
1614         private access with generic types (bug #78431).
1615
1616 Thu Jan 18 11:50:13 CET 2007 Paolo Molaro <lupus@ximian.com>
1617
1618         * genmdesc.pl, Makefile.am: perl implementation of genmdesc,
1619         to make life easier for people cross-compiling that insist on not
1620         using scratchbox.
1621
1622 2007-01-17 Mark Mason <mason@broadcom.com>
1623
1624         * inssel-long.brg: patch to deal with mips missing flags
1625         * inssel-long32-mips.brg: implement overflow checks
1626         * insset-mips.brg: implement overflow checks
1627         * mini-mips.h: implement conditional exception handling
1628         * mini-mips.c: add mips_emit_exc_by_name(), implement conditional exception handling.
1629           Remove unused code, minor cleanups.
1630         * exceptions-mips.c: minor cleanups
1631         * mini-ops.h: add mips conditional exception ops
1632         * cpu-mips.md: add mips conditional exception ops
1633
1634         
1635 Wed Jan 17 19:22:34 CET 2007 Paolo Molaro <lupus@ximian.com>
1636
1637         * inssel.brg: patch from Mark Mason <mason@broadcom.com>
1638         to deal with mips missing of flags.
1639
1640 Tue Jan 16 20:01:01 CET 2007 Paolo Molaro <lupus@ximian.com>
1641
1642         * exceptions-ppc.c: execute fault handlers.
1643
1644 Tue Jan 16 19:54:44 CET 2007 Paolo Molaro <lupus@ximian.com>
1645
1646         * mini-ppc.c: handle missing call locationss with FORCE_INDIR_CALL.
1647
1648 Tue Jan 16 13:14:31 CET 2007 Paolo Molaro <lupus@ximian.com>
1649
1650         * mini.c: handle also floating point values in initialize_array.
1651
1652 Tue Jan 16 12:42:40 CET 2007 Paolo Molaro <lupus@ximian.com>
1653
1654         * mini.c, aot-runtime.c, aot-compiler.c: enable aot compilation of
1655         array initialization and make it conditional on the intrins option.
1656
1657 Tue Jan 16 11:28:45 CET 2007 Paolo Molaro <lupus@ximian.com>
1658
1659         * mini.h, patch-info.h, Makefile.am, aot-compiler.c: reduce
1660         relocations and put the patch info names close to the enum definition.
1661
1662 2007-01-15 Mark Mason <mason@broadcom.com>
1663
1664         * basic.cs, exceptions.cs: break up large tests to increase debugability.
1665
1666 Mon Jan 15 18:57:14 CET 2007 Paolo Molaro <lupus@ximian.com>
1667
1668         * mini.c: optimized RuntimeHelpers::InitializeArray () calls.
1669
1670 2007-01-12  Raja R Harinath  <rharinath@novell.com>
1671
1672         * mini.c (mono_method_to_ir): Use new MonoGenericContext accessor.
1673
1674 Thu Jan 11 11:16:42 CET 2007 Paolo Molaro <lupus@ximian.com>
1675
1676         * Makefile.am: distribute the mips sources.
1677
1678 Wed Jan 10 19:49:33 CET 2007 Paolo Molaro <lupus@ximian.com>
1679
1680         * mini-codegen.h: handle bug #80489 here, by excluding ecx
1681         directly.
1682
1683 Wed Jan 10 19:08:05 CET 2007 Paolo Molaro <lupus@ximian.com>
1684
1685         * cpu-x86.md: back out for now as this triggers other regressions.
1686
1687 Wed Jan 10 18:33:16 CET 2007 Paolo Molaro <lupus@ximian.com>
1688
1689         * cpu-x86.md: force src1 and dest regpair for long shift instructions
1690         to eax:edx, so ecx can't get allocated to them (bug #80489).
1691
1692 Tue Jan 9 12:36:11 CET 2007 Paolo Molaro <lupus@ximian.com>
1693
1694         * mini.c, mini-exceptions.c: enabled running fault handlers
1695         (bug #80469).
1696
1697 2007-01-03  Miguel de Icaza  <miguel@novell.com>
1698
1699         * driver.c: If nothing fail, do not use the string "failed",
1700         because it makes it very annoying to view test result logs on the
1701         web. 
1702
1703 2006-12-30  Miguel de Icaza  <miguel@novell.com>
1704
1705         * debug-debugger.c (mono_debugger_main): Rename "main" to
1706         "main_method" to prevent a warning.
1707
1708         Remove a warning for unused field.
1709
1710 2006-12-28  Martin Baulig  <martin@ximian.com>
1711
1712         * debug-debugger.c
1713         (MONO_DEBUGGER__debugger_info): Add `get_lmf_addr'.
1714
1715 2006-12-22  Martin Baulig  <martin@ximian.com>
1716
1717         * mdb-debug-info32.s, mdb-debug-info64.s: New files.
1718         Put a pointer to the `MONO_DEBUGGER__debugger_info' into a
1719         seperate `.mdb_debug_info' section, so we can access it from the
1720         debugger even if the binary is stripped.
1721
1722         * debug-debug.c: Reference the `MONO_DEBUGGER__debugger_info_ptr'
1723         from the `.mdb_debug_info' here to prevent the linker from
1724         removing that section.
1725
1726         * Makefile.am (mono_debugger_sources): Add mdb-debug-info32.s /
1727         mdb-debug-info64.s.
1728
1729 2006-12-19  Robert Jordan  <robertj@gmx.net>
1730
1731         * mini-x86: enable the code to return small structures in
1732         registers for FreeBSD as well. Fixes bug #80278.
1733         * aot-runtime.c: Include sys/wait.h for WEXITSTATUS/WIFEXITED.
1734
1735 Mon Dec 18 19:47:17 CET 2006 Paolo Molaro <lupus@ximian.com>
1736
1737         * mini-x86.c: align the stack when calling the profiler
1738         function instrumenting the prolog (on OSX).
1739
1740 Thu Dec 14 15:22:43 CET 2006 Paolo Molaro <lupus@ximian.com>
1741
1742         * mini.c: emit a break opcode where Debugger.Break () is called.
1743
1744 2006-12-13  Miguel de Icaza  <miguel@novell.com>
1745
1746         * mini.c (mono_method_to_ir): Provide useful information on this
1747         assert, to prevent others from debugging like I did.
1748
1749 Tue Dec 12 17:01:38 CET 2006 Paolo Molaro <lupus@ximian.com>
1750
1751         * mini.c: enable code which was incorrectly commented
1752         (bug #80235).
1753
1754 Tue Dec 12 16:28:15 CET 2006 Paolo Molaro <lupus@ximian.com>
1755
1756         * mini-x86.c: enable on OSX, too, the code to return small
1757         structures in registers.
1758
1759 Mon Dec 11 19:22:35 CET 2006 Paolo Molaro <lupus@ximian.com>
1760
1761         * mini-x86.c: remove the use of the dynamic code manager here, too.
1762
1763 Mon Dec 11 19:08:33 CET 2006 Paolo Molaro <lupus@ximian.com>
1764
1765         * mini.h, debug-debugger.c, tramp-*.c: fixed 
1766         mono_debugger_create_notification_function() to use
1767         mono_global_codeman_reserve () instead of a dynamic code manager.
1768
1769 Tue Dec 5 17:54:50 CET 2006 Paolo Molaro <lupus@ximian.com>
1770
1771         * mini.c, jit-icalls.h, jit-icalls.c: remove the 
1772         ves_array_element_address() jit icall and use a generated
1773         managed method instead (which is about 4 times faster for a rank 3
1774         array access).
1775
1776 2006-11-29  Mark Mason  <mason@broadcom.com>
1777
1778         * basic-calls.cs: additional tests for passing
1779         structures as function arguments.
1780
1781 2006-11-29  Mark Mason  <mason@broadcom.com>
1782
1783         * mini-mips.h: disable custom exception handling
1784         * mini-mips.c: throw/rethrow should use jalr to call
1785         exception stubs.  Fixed bug with passing structures
1786         by value. More support for tracing floating point
1787         functions.
1788
1789 Wed Nov 29 20:28:17 CET 2006 Paolo Molaro <lupus@ximian.com>
1790
1791         * mini.c: fixed typo in the soft-float ldind.r4 handling
1792         (bug #80086).
1793
1794 Wed Nov 29 11:33:03 CET 2006 Paolo Molaro <lupus@ximian.com>
1795
1796         * mini.c, mini.h, driver.c: added --runtime command line
1797         option to select a different runtime than the autodetected one.
1798         * jit.h: added API for embedders to initialize with a specific
1799         runtime version.
1800
1801 Tue Nov 28 21:24:55 CET 2006 Paolo Molaro <lupus@ximian.com>
1802
1803         * mini.c: handle also boxing of r4 values (bug #80024).
1804
1805 Tue Nov 28 19:45:44 CET 2006 Paolo Molaro <lupus@ximian.com>
1806
1807         * mini-ppc.c: force indirect calls until we reserve
1808         enough address space for all the generated code.
1809
1810 Tue Nov 28 20:04:34 GMT 2006 Paolo Molaro <lupus@ximian.com>
1811
1812         * exceptions-arm.c: workaround bugs in the libc definition
1813         of struct ucontext.
1814
1815 Mon Nov 27 15:13:41 CET 2006 Paolo Molaro <lupus@ximian.com>
1816
1817         * inssel.brg: fixes from me and Mark Mason.
1818
1819 2006-11-23  Dick Porter  <dick@ximian.com>
1820
1821         * wapihandles.c (mini_wapi_seminfo): No need to adjust the counter
1822         semaphore display now we've fixed the initial value
1823
1824 Wed Nov 22 11:04:37 CET 2006 Paolo Molaro <lupus@ximian.com>
1825
1826         * inssel.brg: partially revert the last change to fix the build.
1827
1828 2006-11-21  Mark Mason  <mason@broadcom.com>
1829
1830         * inssel.brg: Add and use compare-and-branch macros to support
1831         architectures that do not have condition code registers (ie. MIPS).
1832         * *-mips.{c,brg,md}: Fix copyright statements
1833
1834 2006-11-20  Mark Mason  <mason@broadcom.com>
1835
1836         * Makefile.am: remove mini-codegen.c from list of MIPS sources
1837         * mini.c: Allow GET_CONTEXT to be specified by the arch port
1838         * mini.h: Added declaration for mono_print_ins()
1839         * mini-codegen.c: added ins_spec initializer for MIPS
1840         * mini-codegen.c (mono_call_inst_add_outarg_reg): added asserts for
1841         vreg to be virtual and hreg to be non-virtual.
1842         * mini-codegen.c (mono_spillvar_offset): assert if MIPS - spilling
1843         is not yet working/implemented correctly.
1844         * mini-codegen.c (print_ins): rename to mono_print_ins(), make
1845         non-static, fixup calls to print_ins() from other parts in the file.
1846
1847 2006-11-20  Mark Mason  <mason@broadcom.com>
1848
1849         * basic-calls.cs: added tests for passing structures as arguments
1850         to calls.
1851
1852 Mon Nov 20 19:40:11 CET 2006 Paolo Molaro <lupus@ximian.com>
1853
1854         * inssel-long32.brg: optimize signed division by power of two.
1855
1856 Mon Nov 20 17:37:58 CET 2006 Paolo Molaro <lupus@ximian.com>
1857
1858         * mini-arm.c: added support for interworking with thumb code
1859         (mono must be still be built using the ARM instruction encoding).
1860
1861 2006-11-19  Miguel de Icaza  <miguel@novell.com>
1862
1863         * mini.c (type_from_op): Separate the conditions for OP_EQ as the
1864         verifier has different rules for it.   Fixes a few verifier issues
1865         in the test suite.
1866
1867         * mini-exceptions.c (mono_handle_native_sigsegv): Put the message
1868         at the end, so people know what happened.
1869
1870 Thu Nov 16 14:07:18 CET 2006 Paolo Molaro <lupus@ximian.com>
1871
1872         * brach-opts.c: in optimize_exception_target() make sure we
1873         are in a catch clause (fixes bug #79871).
1874
1875 Thu Nov 16 12:42:13 CET 2006 Paolo Molaro <lupus@ximian.com>
1876
1877         * jit-icalls.c, jit-icalls.h, mini-arm.c, mini.c:
1878         more soft-float support fixes.
1879
1880 Wed Nov 15 18:45:47 GMT 2006 Paolo Molaro <lupus@ximian.com>
1881
1882         * mini-arm.c, inssel-arm.brg: ABI fix for longs and doubles
1883         that are passed half on the stack and half in registers.
1884
1885 Wed Nov 15 17:00:27 CET 2006 Paolo Molaro <lupus@ximian.com>
1886
1887         * mini-ops.h, mini-arch.h, helpers.c, Makefile.am:
1888         more mips integration work from Mark E Mason 
1889         <mark.e.mason@broadcom.com>.
1890
1891 Wed Nov 15 16:34:03 CET 2006 Paolo Molaro <lupus@ximian.com>
1892
1893         * exceptions-mips.c, inssel-mips.brg, mini-mips.h,
1894         cpu-mips.md, inssel-long32-mips.brg, mini-mips.c,
1895         tramp-mips.c: added sources for the mips port, not
1896         integrated in the build yet. Contributed by
1897         Mark E Mason <mark.e.mason@broadcom.com>.
1898
1899 2006-11-14  Neale Ferguson <neale@sinenomine.net>
1900
1901         * mini-s390[x].c (is_regsize_var): Support PTR/FNPTR too.
1902
1903 Tue Nov 14 16:06:37 CET 2006 Paolo Molaro <lupus@ximian.com>
1904
1905         * Makefile.am, inssel-float.brg, inssel-softfloat.brg:
1906         put the soft-float rules in its own file since it seems to
1907         break s390 compilation.
1908
1909 Mon Nov 13 15:54:38 CET 2006 Paolo Molaro <lupus@ximian.com>
1910
1911         * mini-arm.c: fixed wrnings.
1912
1913 Fri Nov 10 19:18:32 CET 2006 Paolo Molaro <lupus@ximian.com>
1914
1915         * mini-arm.c, mini-arm.h, cpu-arm.md, inssel-float.brg,
1916         inssel-arm.brg: ARM support for soft-float.
1917
1918 Fri Nov 10 18:38:15 CET 2006 Paolo Molaro <lupus@ximian.com>
1919
1920         * mini.c, jit-icalls.c, jit-icalls.h: added first cut at handling
1921         loads and stores of 32 bit fp values.
1922
1923 2006-11-10  Zoltan Varga  <vargaz@gmail.com>
1924
1925         * mini-sparc.c (is_regsize_var): Support PTR/FNPTR too.
1926
1927         * tramp-sparc.c (mono_arch_patch_callsite): Fix this function so it actually
1928         works. Fixes #79852 and #79463.
1929
1930 Thu Nov 9 16:56:13 CET 2006 Paolo Molaro <lupus@ximian.com>
1931
1932         * mini.c, mini-codegen.c, jit-icalls.c, jit-icalls.h:
1933         more soft-float support WIP and fixes.
1934
1935 Wed Nov 8 16:40:02 CET 2006 Paolo Molaro <lupus@ximian.com>
1936
1937         * mini-arm.c: some VFP updates.
1938
1939 Tue Nov 7 19:45:51 CET 2006 Paolo Molaro <lupus@ximian.com>
1940
1941         * mini-exceptions.c: 0 is a valid local var offset in some
1942         architectures, don't assert (bug #78508).
1943
1944 Tue Nov 7 18:17:52 GMT 2006 Paolo Molaro <lupus@ximian.com>
1945
1946         * exceptions-arm.c: fixed off by one error in stack walk code.
1947
1948 Tue Nov 7 11:27:26 CET 2006 Paolo Molaro <lupus@ximian.com>
1949
1950         * mini.h, mini.c: more precise tracking of type load exceptions.
1951
1952 2006-11-03  Robert Jordan  <robertj@gmx.net>
1953
1954         * Makefile.am: [WIN32] Add monow.exe target.
1955         * driver.c: [WIN32] Don't detach the console when debugging.
1956         Fixes bug #79797.
1957         
1958 2006-10-30  Miguel de Icaza  <miguel@novell.com>
1959
1960         * tramp-x86.c (mono_arch_patch_delegate_trampoline): Eliminate warning.
1961
1962 2006-10-23  Zoltan Varga  <vargaz@gmail.com>
1963
1964         * aot-compiler.c (emit_method_info): Add a case missed earlier.
1965
1966         * driver.c (mini_regression): Fix --regression with AOT.
1967
1968         * aot-compiler.c (emit_method_info): Fix AOT on amd64.
1969
1970 2006-10-17  Zoltan Varga  <vargaz@gmail.com>
1971
1972         * mini.c (GET_CONTEXT): Correct the definition of this for sparc/linux.
1973
1974         * mini-sparc.h: Don't use sigaction on sparc/linux.
1975
1976         * exceptions-sparc.c: Call mono_arch_flush_icache () in a couple of places.
1977
1978         * mini-sparc.c (mono_sparc_flushw): Call mono_arch_flush_icache ().
1979
1980         * mini-exceptions.c: Add proper include files for getpid ().
1981
1982 2006-10-16  Zoltan Varga  <vargaz@gmail.com>
1983
1984         * aot-runtime.c (mono_aot_get_method): Change this to return the native code
1985         address instead of a MonoJitInfo* to avoid decoding the exception info for the
1986         method.
1987
1988         * aot-runtime.c aot-compiler.c: Use uint16 instead of uint32 entries in the
1989         name cache to reduce its size.
1990
1991         * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
1992
1993 2006-10-15  Zoltan Varga  <vargaz@gmail.com>
1994
1995         * mini-x86.c: Save/restore the current LMF structure more efficiently using
1996         the mono_lmf TLS variable.
1997
1998         * exceptions-x86.c (mono_arch_find_jit_info): Only access lmf->method in 
1999         trampoline lmf frames.  
2000
2001         * mini-sparc.h (MONO_ARCH_ENABLE_EMIT_STATE_OPT): Define this on sparc as well.
2002
2003 2006-10-14  Zoltan Varga  <vargaz@gmail.com>
2004
2005         * mini-amd64.c: Save/restore the current LMF structure more efficiently using
2006         the mono_lmf TLS variable.
2007
2008         * mini-exceptions.c: Access the LMF structure through accessors.
2009
2010         * mini.c: Allow the backends the option for storing the lmf in a dedicated TLS 
2011         variable instead of in jit_tls->lmf.
2012
2013         * mini-x86.c mini-amd64.c: Update after lmf->lmf_addr name change.
2014         
2015         * exceptions-amd64.c (mono_arch_find_jit_info): Only access lmf->method in 
2016         trampoline lmf frames.
2017
2018         * mini-amd64.c (mono_arch_emit_prolog): Do not set lmf->method as it is not needed.
2019
2020 2006-10-12  Zoltan Varga  <vargaz@gmail.com>
2021
2022        * mini.c trace.c mini-x86.c: Revert these too.
2023         
2024        * mini.c trace.c mini-x86.c: Remove warning workarounds after the mono_type_size ()
2025        signature change.
2026
2027 Tue Oct 10 11:35:20 CEST 2006 Paolo Molaro <lupus@ximian.com>
2028
2029         * genmdesc.c: removed now dead code.
2030
2031 2006-10-09  Robert Jordan <robertj@gmx.net>
2032
2033         * mini.c: Disable the CrashReporter on MacOS X; Fixes #74869
2034
2035 Mon Oct 9 17:06:41 CEST 2006 Paolo Molaro <lupus@ximian.com>
2036
2037         * mini.h: do not leave gaps in the opcode values.
2038
2039 Mon Oct 9 16:08:51 CEST 2006 Paolo Molaro <lupus@ximian.com>
2040
2041         * jit-icalls.h: flag functions as internal here, too.
2042
2043 Mon Oct 9 15:58:18 CEST 2006 Paolo Molaro <lupus@ximian.com>
2044
2045         * mini.h, aliasing.h, declsec.h, regalloc.h, trace.h: mark internal
2046         functions with the internal attribute.
2047
2048 Mon Oct 9 15:52:45 CEST 2006 Paolo Molaro <lupus@ximian.com>
2049
2050         * aot-compiler.c: fclose the file descriptor in the profile read loop.
2051
2052 Fri Oct 6 16:01:38 CEST 2006 Paolo Molaro <lupus@ximian.com>
2053
2054         * mini.c, jit-icalls.c, inssel-float.brg: beginnings of support
2055         for soft-float.
2056
2057 2006-10-05  Zoltan Varga  <vargaz@gmail.com>
2058
2059         * mini-x86.c (emit_load_volatile_arguments): New function to handle arguments of
2060         tail calls as on other platforms.
2061
2062         * mini.c (mono_method_to_ir): Fix a few tailcall problems. Fixes #79557.
2063
2064         * iltests.il: Add a few tailcall tests.
2065
2066 Tue Oct 3 16:33:08 CEST 2006 Paolo Molaro <lupus@ximian.com>
2067
2068         * driver.c: fix loop for old compilers (bug #79521).
2069
2070 2006-10-02  Zoltan Varga  <vargaz@gmail.com>
2071
2072         * mini-exceptions.c (ves_icall_get_trace): Remove debug printf.
2073
2074         * aot-runtime.c (mono_aot_get_class_from_name): Avoid a memory allocation.
2075
2076         * aot-compiler.c: Add a new option 'metadata-only' to only emit the cached
2077         metadata without any code.
2078
2079         * mini-exceptions.c (mono_handle_native_sigsegv): Add some code to print out
2080         more precise debugging information using gdb.
2081
2082 2006-09-30  Zoltan Varga  <vargaz@gmail.com>
2083
2084         * inssel-ia64.brg: Make the helper methods static.
2085
2086 Thu Sep 28 16:40:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
2087
2088         * inssel-x86.brg: make the helper methods static.
2089
2090 Thu Sep 28 16:31:32 CEST 2006 Paolo Molaro <lupus@ximian.com>
2091
2092         * inssel-amd64.brg, mini-amd64.c: small cleanup, use inst_call.
2093
2094 Thu Sep 28 15:36:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
2095
2096         * mini.c: updates for monoburg changes.
2097         * inssel.brg: make a few helper functions static as they should.
2098
2099 2006-09-27  Zoltan Varga  <vargaz@gmail.com>
2100
2101         * Makefile.am: Move mini-codegen.c to common_sources.
2102
2103 Wed Sep 27 15:07:08 CEST 2006 Paolo Molaro <lupus@ximian.com>
2104
2105         * mini.h: instroduce inst_call in MonoInst for use in OUTARG
2106         instructions.
2107         * Makefile.am, cpu-g4.md, inssel-ppc.brg, mini-codegen.c, mini-ppc.c,
2108         mini-ppc.h: port to use the common local register allocator.
2109
2110 2006-09-26  Zoltan Varga  <vargaz@gmail.com>
2111
2112         * mini.h: Remove the comment too then.
2113
2114 Tue Sep 26 14:02:58 CEST 2006 Paolo Molaro <lupus@ximian.com>
2115
2116         * mini.h: put back backend.data which is to be used shortly and
2117         doesn't increase the size of MonoInst. If any 64 bit arch aligned
2118         pointers on 4 byte boundaries it'd have much bigger issues running
2119         and you can ifdef it out anyway.
2120
2121 2006-09-26  Zoltan Varga  <vargaz@gmail.com>
2122
2123         * mini.h (MonoInst): Remove backend.data field since it is unused and increases
2124         MonoInst size by 4 bytes on 64 bit machines.
2125
2126 Tue Sep 26 11:57:26 CEST 2006 Paolo Molaro <lupus@ximian.com>
2127
2128         * *.{c,h,brg}: long due removal of the unused field in MonoInst and
2129         replacement with more meaningful field names. Arch maintainers, please
2130         check the assigned names are good enough for your arch.
2131
2132 2006-09-26  Zoltan Varga  <vargaz@gmail.com>
2133
2134         * cpu-ia64.md mini-ia64.c inssel-ia64.brg mini-ops.h: Get rid of the 
2135         OP_IA64_FETCHADD opcodes, use OP_ATOMIC_ADD_IMM_NEW opcodes instead.
2136
2137 Mon Sep 25 11:05:24 CEST 2006 Paolo Molaro <lupus@ximian.com>
2138
2139         * mini.h, driver.c, optflags-def.h, Makefile.am: reduce runtime
2140         relocations and memory requirements, put the optimization flags
2141         definitions in their own file.
2142
2143 2006-09-24  Zoltan Varga  <vargaz@gmail.com>
2144
2145         * jit-icalls.c (mono_helper_stelem_ref): Remove this unused helper function.
2146
2147         * mini.c (mini_init): Remove reference to mono_helper_stelem_ref.
2148
2149 2006-09-22  Zoltan Varga  <vargaz@gmail.com>
2150
2151         * mini-amd64.c (add_valuetype): Fix an uninitialized memory issue.
2152
2153 Thu Sep 21 19:06:09 CEST 2006 Paolo Molaro <lupus@ximian.com>
2154
2155         * inssel.brg: use the correct function to get the size of an item
2156         in an array, given an element class.
2157         * aot-compiler.c: do not access class->class_size directly.
2158
2159 Thu Sep 21 12:10:56 CEST 2006 Paolo Molaro <lupus@ximian.com>
2160
2161         * mini.h, debug-mini.c: added a debugging function to print
2162         info about local variables and arguments in a jitted method.
2163
2164 2006-09-20  Zoltan Varga  <vargaz@gmail.com>
2165
2166         * mini-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
2167
2168         * exceptions-ia64.c: Fix some problems reported by Bill Seurer <seurer@us.ibm.com>.
2169
2170 2006-09-19  Zoltan Varga  <vargaz@gmail.com>
2171
2172         * mini-ia64.c (mono_arch_call_opcode): Avoid using the same loop index in the
2173         inner and outer loops when passing vtypes.
2174
2175 Tue Sep 19 17:53:40 CEST 2006 Paolo Molaro <lupus@ximian.com>
2176
2177         * mini-ppc.c: take into account the cpu errata for cache flushing
2178         which caused some random errors (bug #79381).
2179
2180 2006-09-19  Zoltan Varga  <vargaz@gmail.com>
2181
2182         * mini-amd64.c (mono_arch_emit_exceptions): Emit the call to 
2183         mono_arch_throw_corlib_exception using emit_call () too. Fixes #79271.
2184
2185 2006-09-17  Zoltan Varga  <vargaz@gmail.com>
2186
2187         * aot-runtime.c (load_aot_module): Return immeditely if the AOT module was already
2188         loaded.
2189
2190         * exceptions-amd64.c (gregs_from_ucontext): Apply another patch from the
2191         freebsd ports tree.
2192
2193         * mini-amd64.c (emit_call): Avoid near calls on freebsd.
2194         (mono_arch_patch_code): Remove the unused handling of MONO_PATCH_INFO_CLASS_INIT.
2195
2196         * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix check for 32 bitness of
2197         displacement.
2198
2199 2006-09-13  Zoltan Varga  <vargaz@gmail.com>
2200
2201         * aot-runtime.c (load_aot_module_from_cache): Fix PPC build.
2202
2203 2006-09-12  Zoltan Varga  <vargaz@gmail.com>
2204
2205         * mini.c (UNVERIFIED): Add a 'break-on-unverified' MONO_DEBUG option so this 
2206         macro does not have to be changed during debugging.
2207
2208         * cpu-alpha.md inssel-alpha.brg mini-alpha.h mini-alpha.c exceptions-alpha.c tramp-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
2209
2210         * cpu-pentium.md: Rename this to cpu-x86.md for consistency with other platforms.
2211
2212         * Makefile.am mini-x86.c mini-codegen.c: Rename pentium_desc to x86_desc.
2213         
2214         * mini.c (mini_get_ldelema_ins): Allow ldelema2d optimization if 
2215         MONO_ARCH_NO_EMULATE_MUL is defined.
2216
2217         * mini-ia64.h (MONO_ARCH_CALLEE_FREGS): Reserve f33 for use by instructions.
2218
2219         * mini-ia64.h: Define MONO_ARCH_NO_EMULATE_MUL.
2220
2221         * mini-ia64.c: Implement CEE_MUL based on gcc emitted code.
2222
2223         * mini-ia64.c (mono_arch_lowering_pass): Optimize store_membase_imm with offset==0.
2224         
2225 2006-09-11  Zoltan Varga  <vargaz@gmail.com>
2226
2227         * mini-x86.h mini-amd64.h mini-exceptions.c: Move the bsd specific MAP_ANON
2228         stuff to mini-exceptions.c where it is used.
2229
2230         * mini-sparc.c (mono_arch_setup_jit_tls_data): Remove the duplicate altstack
2231         setup code, the real one is in mini-exceptions.c.
2232
2233         * mini-amd64.h mini-amd64.c exceptions-amd64.c: Move all dependencies on the
2234         layout of ucontext_t to helper functions in exceptions-amd64.c, as on x86. Add
2235         some changes from the freebsd ports tree.
2236
2237         * mini-amd64.h exceptions-amd64.c: Fix the amd64 build. Get rid of the SC_
2238         constants.
2239         
2240         * mini-amd64.h: Freebsd has MAP_ANON instead of MAP_ANONYMOUS.
2241
2242 Mon Sep 11 13:18:55 CEST 2006 Paolo Molaro <lupus@ximian.com>
2243
2244         * mini.c: on Linux, check for /proc to be mounted
2245         (bug# 79351, novell bug#201204).
2246
2247 Mon Sep 11 13:10:12 CEST 2006 Paolo Molaro <lupus@ximian.com>
2248
2249         * mini.c: handle cases where pthread_attr_getstack() behaves
2250         incorrectly (bug #78096).
2251
2252 Mon Sep 11 11:31:10 BST 2006 Paolo Molaro <lupus@ximian.com>
2253
2254         * mini-arm.c: support larger stack frames (bug #79272).
2255
2256 2006-09-08  Zoltan Varga  <vargaz@gmail.com>
2257
2258         * aot-runtime.c (mono_aot_get_class_from_name): Remove a debug printf.
2259
2260         * aot-compiler.c: Add a hash table to the AOT file mapping class names to typedef 
2261         tokens.
2262
2263         * aot-runtime.c (mono_aot_get_class_from_name): New function used by 
2264         mono_class_from_name () to find a class from its name.
2265
2266         * mini.c (mini_init): Register mono_aot_get_class_from_name () with the runtime.
2267
2268 2006-09-07  Zoltan Varga  <vargaz@gmail.com>
2269
2270         * mini-amd64.c (emit_call): Avoid strstr () call if possible.
2271
2272 2006-09-05  KornĂ©l Pál  <kornelpal@gmail.com>
2273
2274         * Makefile.am: Renamed mono-1.dll to mono.dll. (-avoid-version)
2275
2276 2006-09-04  Zoltan Varga  <vargaz@gmail.com>
2277
2278         * mini.c (mono_icall_get_wrapper): Fix a race condition on initializing
2279         callinfo->trampoline.
2280
2281         * mini-amd64.c (emit_call): Special case calls to the vararg array icalls. Hopefully
2282         fixes #79271.
2283         (mono_arch_patch_code): Add some debug code to help track down similar failures in the
2284         future.
2285
2286 2006-09-03  Zoltan Varga  <vargaz@gmail.com>
2287
2288         * aot-runtime.c (mono_aot_plt_resolve): Add an assert.
2289
2290 2006-09-02  Zoltan Varga  <vargaz@gmail.com>
2291
2292         * tramp-x86.c (mono_arch_create_specific_trampoline): Don't increase
2293         stats.method_trampolines, it is already done by the generic trampoline code.
2294
2295         * tramp-amd64.c (mono_arch_create_specific_trampoline): Ditto.
2296         
2297 2006-09-01  Zoltan Varga  <vargaz@gmail.com>
2298
2299         * mini.c: Remove some references to mono_compile_aot, and use cfg->compile_aot instead.
2300
2301         * aot-runtime.c: Add some tweaks to the MONO_AOT_CACHE functionality.
2302
2303         * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix a FIXME.
2304
2305         * mini.c (print_jit_stats): Print mscorlib mempool size too.
2306         
2307         * mini.c (print_jit_stats): Print new stats.
2308
2309         * *-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
2310
2311 2006-08-31  Zoltan Varga  <vargaz@gmail.com>
2312
2313         * mini.c (mini_get_ldelema_ins): Fix verifier error when calling
2314         Address on two dimensional arrays. Fixes #78729.
2315
2316         * mini.h (MonoCompile): Add a 'skip_visibility' field.
2317
2318         * mini.c (method_to_ir): Disable visibility checks if skip_visibility is set on
2319         a method.
2320
2321         * mini-amd64.c (mono_arch_emit_exceptions): Fix assertion introduced by the last change.
2322
2323         * mini.c (mono_runtime_cleanup_handlers): Clean up signal handlers on unix. Fixes
2324         #79130.
2325         
2326         * mini.c (handle_array_new): Applied patch from "briaeros007". Fix
2327         a race condition.
2328         (mini_get_ldelema_ins): Ditto.
2329
2330 2006-08-30  Zoltan Varga  <vargaz@gmail.com>
2331
2332         * mini-amd64.c (mono_arch_emit_exceptions): Align fp constants to 16 bytes.
2333         (mono_arch_output_basic_block): Avoid unaligned accesses in FNEG implementation. 
2334         Fixes #79213.
2335
2336 2006-08-29 Neale Ferguson <neale@sinenomine.net>
2337
2338         * mini-s390.c, mini-s390x.c: Fix VARARG case processing with 0 arguments. Add
2339         mono_arch_get_patch_offset as a dummy entry point to allow successful link. 
2340
2341         * exceptions-s390x.c: Cosmetic change.
2342
2343         * tramp-s390.c: Fix warning.
2344
2345         * cpu-s390.md: Correct length of mul_imm.
2346
2347 Wed Aug 23 19:24:00 CEST 2006 Paolo Molaro <lupus@ximian.com>
2348
2349         * aot-compiler.c: added binary writer with ELF backend
2350         implementation (only on Linux/x86 for now).
2351
2352 2006-08-18  Zoltan Varga  <vargaz@gmail.com>
2353
2354         * Makefile.am: Don't run net 2.0 AOT tests.
2355
2356         * aot-compiler.c (compile_method): Skip methods with tail calls as well.
2357         (mono_compile_assembly): Skip net 2.0 assemblies as well.
2358
2359         * aot-runtime.c (load_patch_info): Fix an uninitialized memory error.
2360
2361 Fri Aug 18 19:38:28 CEST 2006 Paolo Molaro <lupus@ximian.com>
2362
2363         * aot-compiler.c: simplified and refactored the asm-writing code
2364         to allow different backends.
2365
2366 2006-08-18  Zoltan Varga  <vargaz@gmail.com>
2367
2368         * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
2369
2370         * aot-compiler.c aot-runtime.c: Reorg the GOT slot allocation code a 
2371         little. Share patches of type TYPE_FROM_HANDLE as well.
2372
2373         * mini.c (mono_patch_info_equal): New helper function.
2374         (mono_patch_info_hash): Ditto.
2375
2376         * aot-compiler.c (emit_method_code): Fix s390 build.
2377
2378         * mini.c (mono_allocate_stack_slots_full): Fix yet another place where byref
2379         is not handled because it is stored as a flag and not as a type ctor. Fixes
2380         #79016.
2381
2382 2006-08-17  Zoltan Varga  <vargaz@gmail.com>
2383
2384         * aot-compiler.c: Fix computation of GOT slot statistics.
2385         
2386         * aot-compiler.c aot-runtime.c: Implement sharing of GOT slots for classes/fields.
2387         Also remove support for not PIC AOT.
2388
2389         * mini.h: Bump AOT file format version.
2390
2391         * objects.cs: Add a test for #78990.
2392
2393         * mini-x86.c (mono_arch_output_basic_block): Applied patch from Peter Dettman
2394         (peter.dettman@iinet.net.au). Fixes #79087.
2395
2396         * basic-long.cs: Add a test for the above.
2397
2398 2006-08-16  Zoltan Varga  <vargaz@gmail.com>
2399
2400         * aot-compiler.c (get_got_offset): Add a cache for GOT entries, not yet used.
2401         
2402         * aot-compiler.c (get_plt_index): Add a cache for wrappers too. Simplify the
2403         code somewhat.
2404
2405 2006-08-15  Zoltan Varga  <vargaz@gmail.com>
2406
2407         * mini.c (mini_init): Fix registration of idiv/imul opcodes which can throw
2408         exceptions.
2409
2410 2006-08-10  Jonathan Chambers  <joncham@gmail.com>
2411
2412         * mini.c: Don't verify COM proxy invoke calls
2413         
2414
2415 2006-08-10  Dick Porter  <dick@ximian.com>
2416
2417         * wapihandles.c (mini_wapi_seminfo): More info, to help track down
2418         which process is holding semaphores locked.
2419
2420 2006-08-08  Zoltan Varga  <vargaz@gmail.com>
2421
2422         * mini-ia64.c mini-amd64.c: Fix #79027.
2423
2424         * mini-sparc.c (mono_arch_call_opcode): Fix the previous patch.
2425
2426         * mini-sparc.c (mono_arch_call_opcode): Fix #79027.
2427
2428         * mini-x86.c (mono_arch_call_opcode): Handle the case where there are no
2429         implicit arguments in a vararg call. Fixes #79027.
2430
2431 2006-08-07  Zoltan Varga  <vargaz@freemail.hu>
2432
2433         * mini.c (mono_get_element_address_signature): Use CDECL calling convention on windows. Fixes #78969.
2434         (mono_get_array_new_va_signature): Ditto.
2435
2436 2006-08-05  Zoltan Varga  <vargaz@gmail.com>
2437
2438         * aot-runtime.c: Call init_plt lazily.
2439
2440         * inssel-long.brg: Fix unsigned long->int conversion.
2441
2442         * aot-runtime.c (init_plt): Remove a redundant make_writable () call.
2443
2444         * aot-compiler.c aot-runtime.c: Reorganize the file structure in the amd64 case so
2445         that most data is now in the .rss/.data section.
2446
2447 2006-08-04  Zoltan Varga  <vargaz@gmail.com>
2448
2449         * aot-compiler.c: Correct the computation of the 'direct-calls' statistic.      
2450
2451         * aot-compiler.c: Print the number of methods without GOT slots as a statistics.
2452
2453         * aot-compiler.c aot-runtime.c tramp-amd64.c: Resurrect amd64 AOT support.
2454
2455         * tramp-amd64.c (mono_arch_patch_callsite): Fix a warning.
2456
2457         * jit-icalls.c (mono_helper_compile_generic_method): Unbox vtypes since this is a
2458         virtual call. Fixes #79010.
2459
2460         * mini.c (mono_method_to_ir): Pass an additional out arg to compile_generic_method 
2461         and use the result as the this argument in the real call.
2462
2463         * generics.2.cs: Add a new test for #79010.
2464         
2465 2006-08-03  Zoltan Varga  <vargaz@gmail.com>
2466
2467         * mini-x86.c: Fix a warning.
2468
2469         * aot-compiler.c: Add a bunch of statistics.
2470
2471         * mini.c (inline_method): Disable inlining in out-of-line bblocks.
2472
2473 2006-08-02  Zoltan Varga  <vargaz@gmail.com>
2474
2475         * mini-arch.h Makefile.am mini-ops.h mini-codegen.c: More alpha updates.
2476
2477 2006-08-01  Zoltan Varga  <vargaz@gmail.com>
2478
2479         * cpu-alpha.md inssel-alpha.brg mini-alpha.h mini-alpha.c exceptions-alpha.c tramp-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
2480
2481 2006-07-13  Miguel de Icaza  <miguel@novell.com>
2482
2483         * mini.c (mono_method_to_ir): Obtain the original method in the
2484         CIL stream and use this to perform validation.
2485
2486         Fixed: #78816
2487
2488 2006-07-19  Zoltan Varga  <vargaz@gmail.com>
2489
2490         * mini-x86.c (mono_arch_get_argument_info): Fix a warning.
2491         (mono_arch_call_opcode): Ditto.
2492
2493         * mini.c (mono_method_to_ir): Clear ins_flag at the end of CEE_CALL. Fixes
2494         #78826.
2495
2496         * mini.c (mono_patch_info_dup_mp): New helper function.
2497         
2498         * aot-compiler.c (compile_method): Fix some of the memory allocated during
2499         compilation. Fixes #78827.
2500
2501 2006-07-18  KornĂ©l Pál  <kornelpal@gmail.com>
2502
2503         * declsec.c: Use original security informations for
2504           MONO_WRAPPER_MANAGED_TO_MANAGED.
2505
2506 2006-07-15  Jonathan Chambers  <joncham@gmail.com>
2507
2508         * mini.c: Allow Com Interop methods/classes and
2509         don't verify COM wrapper calls
2510         
2511
2512 2006-07-13  Zoltan Varga  <vargaz@gmail.com>
2513
2514         * inssel-long32.brg: Fix long->i4 checked conversion.
2515
2516         * exceptions.cs: Add a test for the above.
2517
2518 2006-07-08  Zoltan Varga  <vargaz@gmail.com>
2519
2520         * mini-exceptions.c (mono_setup_altstack): Fix a memory leak.
2521
2522         * mini.c: Applied patch from Joachim Ante (joe@otee.dk). Fix some shutdown 
2523         leaks.
2524
2525         * helpers.c (mono_disassemble_code): Avoid using fixed temporary files. Fixes
2526         #78775.
2527
2528 2006-07-03  Zoltan Varga  <vargaz@gmail.com>
2529
2530         * mini.c: Fix solaris/x86 exception handling.
2531
2532         * Makefile.am: Get rid of $(ICU_LIBS).
2533
2534 2006-07-02  Zoltan Varga  <vargaz@gmail.com>
2535
2536         * mini-exceptions.c: Fix handling of unhandled SIGSEGV exceptions on ia64.
2537         (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Use MONO_INIT_CONTEXT_FROM_CURRENT.
2538         (ves_icall_System_Security_SecurityFrame_GetSecurityFrame): Ditto.
2539
2540         * mini-ia64.h (MONO_CONTEXT_SET_FUNC): New macro.
2541
2542         * mini-exceptions.c (mono_handle_native_sigsegv): Prevent infinite loops if
2543         this function causes a SIGSEGV.
2544
2545 2006-06-22  Zoltan Varga  <vargaz@gmail.com>
2546
2547         * mini.c: Remove unused solaris/x86 includes.
2548
2549 2006-06-21  Zoltan Varga  <vargaz@gmail.com>
2550
2551         * jit.h: Add G_BEGIN_DECLS/G_END_DECLS.
2552
2553 2006-06-20  Jb Evain  <jbevain@gmail.com>
2554
2555         * cpu-g4.md: fix max length of start_handler instruction.
2556
2557 2006-06-20  Massimiliano Mantione  <massi@ximian.com>
2558         * simple-cee-ops.h, simple-mini-ops.h: Fixed bug 78656.
2559
2560 2006-06-16  Massimiliano Mantione  <massi@ximian.com>
2561         * ssa.c: Fixed bug 78653 for SSA based deadce.
2562         * mini.h: added MONO_INST_DEFINITION_HAS_SIDE_EFFECTS flag go
2563         MonoInst.flags, used in SSA based deadce.
2564         * aliasing.c: Fixed bug 78653 for "fastpath" deadce.
2565         * simple-cee-ops.h, simple-mini-ops.h: Fixed bug 78653.
2566
2567 Thu Jun 15 16:52:46 CEST 2006 Paolo Molaro <lupus@ximian.com>
2568
2569         * tramp-ppc.c: don't use malloc () for trampoline code, sometimes
2570         it can end up using non executable memory on ppc64 systems
2571         running ppc32 userspace (fix from Johannes Berg).
2572
2573 2006-06-14  Dick Porter  <dick@ximian.com>
2574
2575         * wapihandles.c: Fix a bunch of signed/unsigned warnings from gcc
2576         4.1.1
2577
2578 2006-06-13  Massimiliano Mantione  <massi@ximian.com>
2579         * mini.c: Made so that inline is locally disabled if it would
2580         trigger a .cctor, because too many apps depend on this behavior
2581         (which seems to be also the one of the MS CLR).
2582
2583 2006-06-13  Zoltan Varga  <vargaz@gmail.com>
2584
2585         * mini-amd64.c (mono_emit_stack_alloc): Fix initialization of localloc'ed memory.
2586         No idea why this worked before.
2587
2588         * branch-opts.c (mono_branch_optimize_exception_target): Avoid branches
2589         which branch to outer exception clauses since they could skip the
2590         inner finally clauses. Fixes #78633.
2591
2592         * exceptions.cs: Add a test for the above.
2593
2594         * mini.c (merge_basic_blocks): Nullify the branch at the end of the first bb.
2595         Fixes #78629.
2596
2597         * iltests.il: Add a test for the above.
2598
2599 2006-06-12  Zoltan Varga  <vargaz@gmail.com>
2600
2601         * mini.c (remove_block_if_useless): Do not remove the bblock immediately
2602         after the end of a try bblock, to prevent asserts in mini_method_compile ().
2603
2604         * iltests.il: Add a test for the above.
2605
2606 2006-06-10  Zoltan Varga  <vargaz@gmail.com>
2607
2608         * mini-ia64.c (mono_arch_lowering_pass): Remove some code duplication.
2609         
2610         * mini-ia64.c inssel-ia64.brg: Implement the new net 2.0 Interlocked.Add
2611         methods as instrinsics.
2612
2613 2006-06-09  Wade Berrier <wberrier@novell.com>
2614
2615         * Makefile.am: Fix sources list for svn rename so that make dist succeeds
2616         (simple-cee-ops.h ssapre-mini-ops.h)
2617
2618 2006-06-09  Neale Ferguson <neale@sinenomine.net>
2619
2620         * mini-exceptions.c (ves_icall_get_frame_info): Fix this function on s390/s390x.
2621         * mini-s390x.c, mini-s390.c: Correct ATOMIC operations (incorrect register for CS
2622         instruction).
2623         * mini-s390x.h, mini-s390.h: Simplify MCONTEXT_GET_BP.
2624         * cpu-s390x.md: Fix max. length values for a couple of instructions.
2625
2626 2006-06-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
2627
2628         * mini-exceptions.c: Minor fix for building mono in Visual Studio.
2629
2630 2006-06-08  Massimiliano Mantione  <massi@ximian.com>
2631
2632         * ssapre-cee-ops.h: Renamed as "simple-cee-ops.h"
2633         * simple-cee-ops.h: Was "ssapre-cee-ops.h" (renamed).
2634         * ssapre-mini-ops.h: Renamed as "simple-mini-ops.h"
2635         * simple-mini-ops.h: Was "ssapre-mini-ops.h" (renamed).
2636         * local-propagation.c: In mono_cprop_invalidate_values use a whitelist
2637         of opcodes, so that bug 78549 should not happen again.
2638         * ssapre.c: Updated to use the renamed files.
2639
2640 2006-06-08  Zoltan Varga  <vargaz@gmail.com>
2641
2642         * mini-amd64.c (mono_arch_output_basic_block): Fix a wrong reg-reg move 
2643         in OP_ATOMIC_EXCHANGE_I4.
2644
2645 2006-06-07  Wade Berrier <wberrier@novell.com>
2646
2647         * tramp-s390.c: Fix s390 build (add missing pointer declarations 
2648         in mono_debugger_create_notification_function)
2649
2650 2006-06-06  Zoltan Varga  <vargaz@gmail.com>
2651
2652         * mini.c (NEW_AOTCONST_TOKEN): Fix amd64 build.
2653         
2654         * mini.c (type_from_stack_type): Disable some changes which do not
2655         seem to work.
2656
2657         * driver.c: Reenable opts.
2658
2659         * mini.h (MonoStackSlot): New structure to keep track of the verification state
2660         of the evaluation stack.
2661         
2662         * mini.h (MonoBasicBlock): Add a 'stack_state' field to keep track of the
2663         evaluation stack trace at entry to the bblock.
2664
2665         * mini.c (merge_stacks): New function to perform verification of stack merges.
2666         Turned off by default.
2667
2668         * mini.c: Fill up ins->klass for instructions whose type is STACK_OBJ or
2669         STACK_MP.
2670         
2671 2006-06-06  Massimiliano Mantione  <massi@ximian.com>
2672
2673         * local-propagation.c: Fixed bug 78549.
2674
2675 2006-06-04  Zoltan Varga  <vargaz@gmail.com>
2676
2677         * mini-exceptions.c (ves_icall_get_frame_info): Fix this function on ia64.
2678
2679 2006-06-02  Miguel de Icaza  <miguel@novell.com>
2680
2681         * tramp-sparc.c, tramp-ppc.c, tramp-s390.c, tramp-s390x.c,
2682         tramp-arm.c, tramp-ia64.c
2683         (mono_debugger_create_notification_function): Update signature to
2684         new signature and use new protocol for creating the notification
2685         function.  
2686
2687         Should fix the build.
2688
2689 2006-06-02  Geoff Norton  <gnorton@customerdna.com>
2690
2691         * exceptions-ppc.c (mono_jit_walk_stack)
2692         (ves_icall_get_frame_info): Fix the build
2693
2694 2006-06-02  Zoltan Varga  <vargaz@gmail.com>
2695
2696         * mini.c (mono_set_defaults): Fix the handling of -O=-all.
2697
2698 2006-05-31  Raja R Harinath  <rharinath@novell.com>
2699
2700         * il2tests.2.il: New file for generics CIL tests.  Add test for
2701         #78019.
2702         * Makefile.am: Update.
2703
2704         Fix #78019
2705         * mini.c (mono_method_to_ir): Don't apply box+brtrue optimization
2706         to nullable types.
2707
2708 2006-05-30  Massimiliano Mantione  <massi@ximian.com>
2709
2710         * aliasing.c: Fixed bug 78311.
2711
2712 2006-05-29  Martin Baulig  <martin@ximian.com>
2713
2714         * mini-exceptions.c (mono_find_jit_info): When computing the
2715         native offset, check whether we're actually inside the method's
2716         code; call mono_debug_print_stack_frame() to format the frame.
2717         (ves_icall_System_Exception_get_trace): Call
2718         mono_debug_print_stack_frame() to format the stack frame.
2719         (ves_icall_get_trace): Update to the new debugging API.
2720         (mono_jit_walk_stack_from_ctx): Likewise.
2721         (ves_icall_get_frame_info): Likewise.
2722
2723         * mini.c (get_method_from_ip): Use the new debugging API.
2724         (mono_print_method_from_ip): Likewise.
2725
2726         * exceptions-ppc.c
2727         (mono_jit_walk_stack): Use the new debugging API.
2728         (ves_icall_get_frame_info): Likewise.   
2729
2730 2006-05-27  Zoltan Varga  <vargaz@gmail.com>
2731
2732         * mini-amd64.c (mono_arch_output_basic_block): Fix MONO_PROFILE_COVERAGE.
2733
2734 2006-05-25  Massimiliano Mantione  <massi@ximian.com>
2735
2736         * mini.c: Added "limitator" to inline for debugging.
2737
2738 2006-05-24  Martin Baulig  <martin@ximian.com>
2739
2740         * debug-debugger.c (mono_debugger_init): Create a private,
2741         malloc()-based code manager for the notification function and
2742         intentionally leak it on exit.  This fixes the crash-on-exit race
2743         condition.
2744
2745         * tramp-amd64.c
2746         (mono_debugger_create_notification_function): Added
2747         `MonoCodeManager *' argument.
2748
2749         * tramp-x86.c
2750         (mono_debugger_create_notification_function): Added
2751         `MonoCodeManager *' argument.
2752
2753 2006-05-23  Massimiliano Mantione  <massi@ximian.com>
2754
2755         * aliasing.c: Fixed 64 bit issue.
2756         * driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
2757         default since all known bugs are fixed (one more time!).
2758
2759 Tue May 23 13:47:28 CEST 2006 Paolo Molaro <lupus@ximian.com>
2760
2761         * mini.c: write barrier support.
2762
2763 2006-05-23  Martin Baulig  <martin@ximian.com>
2764
2765         * debug-debugger.c: Revert Paolo's change.  Add comment and #error
2766         check at the top of the file.
2767
2768 Sun May 21 12:22:29 CEST 2006 Paolo Molaro <lupus@ximian.com>
2769
2770         * debug-debugger.c: fix the build. Again. Hopefully Martin will stop
2771         reverting changes without reason and without changelog entries.
2772
2773 2006-05-18  Zoltan Varga  <vargaz@gmail.com>
2774
2775         * mini-sparc.c (mono_arch_output_basic_block): Add support for large stack offets
2776         to a few opcodes. Fixes #78439.
2777
2778         * mini-sparc.c: Rename mono_sparch_break () to mono_arch_break () to improve
2779         consistency with other archs.
2780
2781         * mini-ia64.c (mono_arch_emit_prolog): Remove debug stuff left in by mistake.
2782
2783 Wed May 17 18:07:33 CEST 2006 Paolo Molaro <lupus@ximian.com>
2784
2785         * debug-debugger.c: fix the build.
2786
2787 2006-05-17  Martin Baulig  <martin@ximian.com>
2788
2789         * debug-debugger.c
2790         (debugger_thread_vtable): Moved here from ../metadata/threads.c.
2791         (debugger_init_threads): Formerly known as mono_debugger_init_threads().
2792         (debugger_finalize_threads): Formaly known as mono_debugger_finalize_threads().
2793         (debugger_attach): Call GC_mono_debugger_add_all_threads().
2794
2795 2006-05-11  Zoltan Varga  <vargaz@gmail.com>
2796
2797         * mini.c (mini_init): Call pthread_attr_destroy () to fix a small memory leak.
2798
2799 2006-05-10  Zoltan Varga  <vargaz@gmail.com>
2800
2801         * mini-x86.c (mono_arch_instrument_epilog): Fix handling of 
2802         MONO_TYPE_GENERICINST.
2803         
2804         * mini-amd64.c (mono_arch_instrument_epilog): Fix handling of 
2805         MONO_TYPE_GENERICINST.
2806
2807 2006-05-09  Zoltan Varga  <vargaz@gmail.com>
2808
2809         * mini-x86.c (mono_arch_get_vcall_slot_addr): Add a missing call sequence. Fixes
2810         #78325.
2811
2812 2006-05-08  Zoltan Varga  <vargaz@gmail.com>
2813
2814         * mini.c (mono_create_jump_trampoline): Allocate MonoJitInfo from the domain
2815         mempool.
2816         (mono_jit_free_method): Remove the method from jump_trampoline_hash as well.
2817
2818 2006-05-06  Zoltan Varga  <vargaz@gmail.com>
2819
2820         * mini.c (mini_cleanup): Applied patch from Joachim Ante (joe@otee.dk). Call
2821         mono_trace_cleanup ().
2822
2823         * iltests.il: Fix problem with the newly added test.
2824
2825         * mini-codegen.c (mono_local_regalloc): When changing the dreg of an instruction
2826         due to register constraints, free up the previous hreg. Fixes #78314.
2827
2828         * iltests.il: Add new test for #78314.  
2829
2830         * mini-x86.c (mono_arch_get_inst_for_method): Use OP_ATOMIC_ADD_NEW_I4 for
2831         Interlocked.Add. Fixes #78312.
2832
2833         * mini-amd64.c (mono_arch_get_inst_for_method): Ditto.
2834         
2835 2006-05-05  Zoltan Varga  <vargaz@gmail.com>
2836
2837         * inssel.brg (mini_emit_virtual_call): Fix a warning.
2838
2839 2006-05-05  Martin Baulig  <martin@ximian.com>
2840
2841         * debug-mini.c (mono_debug_open_block): New method.
2842
2843         * mini-amd64.c
2844         (mono_arch_output_basic_block): Call mono_debug_open_block() at
2845         the beginning of each basic block.
2846
2847         * mini-x86.c
2848         (mono_arch_output_basic_block): Call mono_debug_open_block() at
2849         the beginning of each basic block.
2850
2851 2006-05-04  Massimiliano Mantione  <massi@ximian.com>
2852
2853         * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
2854         default until I understand why they break the build on amd64.
2855
2856 2006-05-04  Zoltan Varga  <vargaz@gmail.com>
2857
2858         * mini.c (mini_cleanup): Call mono_cleanup ().
2859
2860         * mini.c (UNVERIFIED): New macro to make it easier to track down verification
2861         errors.
2862
2863 2006-05-04  Massimiliano Mantione  <massi@ximian.com>
2864
2865         * aliasing.c: Fixed shameful cut&paste error that caused JIT crashes.
2866         * driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
2867         default since all known bugs are fixed, and I cannot reproduce bug
2868         77944... I'm asking Matt Hargett to test again after this commit.
2869
2870 2006-04-28  Massimiliano Mantione  <massi@ximian.com>
2871
2872         * mini-codegen.c: Fixed typo that thrashed inline.
2873
2874 2006-04-28  Zoltan Varga  <vargaz@gmail.com>
2875
2876         * dominators.c (compute_dominators): Avoid using a worklist since
2877         it is not correct in some cases. Instead, iterate over all bblocks as
2878         in the original paper. Fixes --compile-all -O=all System.Xml.dll.
2879
2880 2006-04-28  Miguel de Icaza  <miguel@novell.com>
2881
2882         * mini.c (mono_jit_compile_method_inner): Use
2883         mono_prepare_exception_from_error that resets the value
2884         internally.
2885
2886 2006-04-27  Miguel de Icaza  <miguel@novell.com>
2887
2888         * mini.c: Move the mini_loader_error_to_exception to metadata. 
2889         
2890 2006-04-27  Massimiliano Mantione  <massi@ximian.com>
2891
2892         * aliasing.c: Fixed bug 78210.
2893
2894 2006-04-27  Massimiliano Mantione  <massi@ximian.com>
2895
2896         * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
2897         default until all their problems (or the ones they trigger) are fixed.
2898
2899 2006-04-26  Zoltan Varga  <vargaz@gmail.com>
2900
2901         * aot-runtime.c (mono_aot_get_method_from_token_inner): Fix the previous patch.
2902         
2903         * aot-runtime.c (mono_aot_get_method_from_token_inner): Mark the method
2904         as loaded only after resolving patches since that could invoke the same method.
2905
2906         * aot-runtime.c (mono_aot_plt_resolve): Fix ppc etc. builds.
2907
2908         * aot-compiler.c: Refactor mono_aot_compile_aot () into a bunch of smaller
2909         functions.
2910
2911         * aot-runtime.c (init_plt): Use a normal trampoline to transfer code to the
2912         AOT loader.
2913
2914         * aot-compiler.c (emit_plt): Pass the plt offset in %eax instead of on the
2915         stack.
2916
2917         * mini-trampolines.c (mono_aot_plt_trampoline): New trampoline to handle calls
2918         made from AOT code through the PLT table.
2919
2920         * mini-x86.h mini-amd64.h: Define MONO_ARCH_AOT_PLT_OFFSET_REG to the register
2921         holding the plt offset when a call is made to the aot plt trampoline.
2922         
2923 2006-04-25  Zoltan Varga  <vargaz@gmail.com>
2924
2925         * aot-runtime.c aot-compiler.c cpu-amd64.md mini-amd64.c: Update parts of the 
2926         amd64 AOT support.
2927
2928         * Makefile.am (common_sources): Fix build breakage.
2929
2930         * aot-runtime.c aot-compiler.c: Reorganize the AOT code yet again: Make all
2931         calls through a jump table similar to the ELF PLT table. Avoid indirect calls for
2932         intra-assembly calls if possible.
2933         
2934         * tramp-*.c: Add new functions for patching/nullifying PLT entries.
2935
2936         * mini-trampolines.c: Handle PLT entries.
2937
2938         * mini.c: Avoid creating a GOT var for calls.
2939
2940         * jit-icalls.c (helper_ldstr_mscorlib): New helper function for loading strings
2941         from mscorlib code.
2942
2943         * jit-icalls.c (helper_newobj_mscorlib): New helper function to create objects
2944         from mscorlib code.
2945
2946         * mini.c (mono_method_to_ir): Use the new helper functions in throw bblocks in
2947         AOT code.       
2948
2949         * mini.h: Bump AOT file format version.
2950         
2951         * mini.c (get_basic_blocks): Fix the calculation of bb->out_of_line so it
2952         covers more cases.
2953
2954 2006-04-25  Martin Baulig  <martin@ximian.com>
2955
2956         * driver.c: Disable copyprop, consprop and inline when running
2957         inside the debugger.
2958
2959 2006-04-25  Martin Baulig  <martin@ximian.com>
2960
2961         * debug-debugger.h (MonoDebuggerInfo): Replaced `get_thread_id'
2962         with `get_current_thread' and added `detach'.
2963         (MonoDebuggerMetadataInfo): Added `thread_size',
2964         `thread_tid_offset', `thread_stack_ptr_offset' and
2965         `thread_end_stack_offset'.
2966
2967 2006-04-25  Zoltan Varga  <vargaz@gmail.com>
2968
2969         * aot.c Makefile.am: Split aot.c into two new files aot-compiler.c and 
2970         aot-runtime.c.
2971
2972         * inssel.brg (mini_emit_load_intf_reg_vtable): Use a new kind of AOT constant
2973         ADJUSTED_IID to avoid the need for adjusting the IID at runtime.
2974
2975         * mini.h (MonoJumpInfoType): Add MONO_PATCH_INFO_ADJUSTED_IID.
2976
2977         * mini.c (mono_resolve_patch_target): Handle ADJUSTED_IID.
2978
2979         * aot.c: Add support for ADJUSTED_IID.  
2980
2981 2006-04-24  Zoltan Varga  <vargaz@gmail.com>
2982
2983         * aot.c (emit_method_order): Don't align method_order_end.
2984
2985         * inssel.brg (stmt): Fix interface calls in AOT code which got broken by
2986         the interface ID changes.
2987
2988 2006-04-21  Dick Porter  <dick@ximian.com>
2989
2990         * mini.c (mini_thread_cleanup): Clear the JIT TLS data when
2991         cleaning up a thread.  Fixes the new part of bug 77470.
2992
2993 2006-04-20  Geoff Norton  <gnorton@customerdna.com>
2994
2995         * mini-ppc.c: Call mono_jit_thread_attach when transitioning a native
2996         to managed wrapper.
2997                      
2998 2006-04-19  Zoltan Varga  <vargaz@gmail.com>
2999
3000         * mini.h mini.c: Remove mono_type_to_ldind/stind () which are now in marshal.c.
3001         
3002         * mini.c (mono_runtime_install_handlers): Handle SIGABRT similarly to
3003         SIGSEGV. Fixes #78072.
3004
3005         * mini-exceptions.c (mono_handle_native_sigsegv): Add a 'signal' argument,
3006         unregister our SIGABRT handler.
3007
3008 2006-04-19  Massimiliano Mantione  <massi@ximian.com>
3009
3010         * mini.c: Disabled inline where it can alter the call stack in a
3011         way visible from managed code.
3012         * driver.c: enabled inline,consprop,copyprop,treeprop,deadce by
3013         default.
3014
3015 2006-04-16  Zoltan Varga  <vargaz@gmail.com>
3016
3017         * mini-amd64.c (mono_arch_emit_prolog): Attach the thread to the runtime as it is done
3018         on other platforms. Fixes #78089.
3019
3020 2006-04-13  Martin Baulig  <martin@ximian.com>
3021
3022         * driver.c: Also check a `MONO_INSIDE_MDB' environment variable to
3023         determine whether we're inside the debugger.
3024
3025         * debug-debugger.h
3026         (MonoDebuggerMetadataInfo): Added all offsets from `MonoDefaults'.
3027
3028 2006-04-12  Zoltan Varga  <vargaz@gmail.com>
3029
3030         * mini.c (mono_method_to_ir): Handle multiple LEAVE statements inside a single
3031         handler clauses. Fixes #78024.
3032
3033         * mini-sparc.c (mono_arch_output_basic_block): Handle large offsets
3034         in the CALL_MEMBASE opcodes. Fixes #78088.
3035         (mono_arch_get_vcall_slot_addr): Ditto.
3036
3037 2006-04-10  Martin Baulig  <martin@ximian.com>
3038
3039         * debug-debugger.c: The thread handling code has now been moved
3040         into ../metadata/threads.c.
3041
3042 2006-04-10  Zoltan Varga  <vargaz@gmail.com>
3043
3044         * driver.c (mono_main): Fix --with-gc=none build.
3045
3046         * mini-codegen.c (mono_spillvar_offset): Improve alignment.
3047         (mono_spillvar_offset_float): Ditto.
3048         (mono_local_regalloc): Only do the OP_MOVE optimization if ins->dreg is a local
3049         hreg, not when its !global, since on ia64, there is a third category: stacked
3050         registers.      
3051
3052 Mon Apr 10 14:39:49 CEST 2006 Paolo Molaro <lupus@ximian.com>
3053
3054         * mini.c: set MonoInst->klass for load field address and a few other
3055         places.
3056
3057 2006-04-10  Zoltan Varga  <vargaz@gmail.com>
3058
3059         * helpers.c (mono_disassemble_code): Emit debug info on amd64 as well.
3060
3061 2006-04-07  Zoltan Varga  <vargaz@gmail.com>
3062
3063         * dominators.c (compute_dominators): Fix yet another bug which surfaced after
3064         the branch opt changes.
3065
3066 2006-04-06  Dick Porter  <dick@ximian.com>
3067
3068         * wapihandles.c (mini_wapi_semdel): Fix parameters in semctl () call.
3069         
3070         * wapihandles.c (mini_wapi_seminfo): 
3071         * driver.c (mono_main): Add semaphore info option
3072
3073 2006-04-05  Zoltan Varga  <vargaz@gmail.com>
3074
3075         * dominators.c (compute_dominators): Fix a bug which surfaced after the recent
3076         branch optimization changes. Fixes #78009.
3077
3078 Wed Apr 5 16:40:33 CEST 2006 Paolo Molaro <lupus@ximian.com>
3079
3080         * mini.c: ignore accessibility of methods in managed->native wrappers.
3081
3082 2006-04-04  Zoltan Varga  <vargaz@gmail.com>
3083
3084         * mini.c (mini_cleanup): Call print_jit_stats () earlier since it accesses metadata.
3085         
3086         * mini.c (mini_cleanup): Free 'emul_opcode_map' as well.
3087
3088 2006-04-03  Zoltan Varga  <vargaz@gmail.com>
3089
3090         * mini.c: Modify the branch optimizations to preserve the invariant that
3091         the entries inside the in_bb and out_bb arrays are unique.
3092         (mono_unlink_bblock): Avoid creation of new arrays.
3093
3094 2006-04-02  Zoltan Varga  <vargaz@gmail.com>
3095
3096         * mini.c (mono_unlink_bblock): Fix regression caused by previous
3097         change (#77992).
3098
3099 2006-04-01  Zoltan Varga  <vargaz@gmail.com>
3100
3101         * mini.c (optimize_branches): Remove the "optimizations" in
3102         the cbranch1/cbranch2 -> branch cases which were causing several
3103         problems in the past. Fixes #77986.
3104
3105 2006-03-31  Chris Toshok  <toshok@ximian.com>
3106
3107         * driver.c (DEFAULT_OPTIMIZATIONS): back out the new set of
3108         default optimizations :(
3109
3110 2006-03-31  Zoltan Varga  <vargaz@gmail.com>
3111
3112         * inssel-x86.brg mini-codegen.c mini.c: Merge some changes/fixes from linear-il
3113         branch.
3114
3115 2006-03-31  Massimiliano Mantione  <massi@ximian.com>
3116
3117         * local-propagation.c: Added comments to structs and removed
3118         "Mono" prefixes from local tree mover types.
3119
3120 2006-03-30  Zoltan Varga  <vargaz@gmail.com>
3121
3122         * Makefile.am (arch_sources): Define this for each architecture so 
3123         libmono_la_SOURCES is defined in one place.
3124
3125 Wed Mar 29 20:51:14 CEST 2006 Paolo Molaro <lupus@ximian.com>
3126
3127         * driver.c, wapihandles.c, Makefile.am: integrate the io-layer utils
3128         from handles/.
3129
3130 Wed Mar 29 17:16:57 CEST 2006 Paolo Molaro <lupus@ximian.com>
3131
3132         * driver.c: print the GC name supplied by configure.
3133
3134 2006-03-29  Massimiliano Mantione  <massi@ximian.com>
3135
3136         * local-propagation.c: Added tree mover, and moved here all the
3137         local propagation code from mini.c
3138         * mini.c: Added support for treeprop, and moved all the local
3139         propagation code to local-propagation.c
3140         * mini.h: Added support for treeprop
3141         * driver.c: Added support for treeprop, enabled consprop, copyprop,
3142         treeprop, inline and deadce by default
3143         * Makefile.am: Added local-propagation.c
3144
3145 2006-03-25  Zoltan Varga  <vargaz@gmail.com>
3146
3147         * exceptions-sparc.c: Applied patch from David S. Miller  <davem@sunset.davemloft.net>: Implement correct support for sparc/linux.
3148
3149 Fri Mar 24 20:07:19 CET 2006 Paolo Molaro <lupus@ximian.com>
3150
3151         * debug-debugger.c: make it compile without the Boehm GC.
3152
3153 Wed Mar 22 18:25:18 CET 2006 Paolo Molaro <lupus@ximian.com>
3154
3155         * mini.c: fixed issue with mismatch when an icall is registered
3156         with multiple names but same address.
3157
3158 Tue Mar 21 15:59:57 CET 2006 Paolo Molaro <lupus@ximian.com>
3159
3160         * declsec.c, mini-exceptions.c: use write barrier to set reference
3161         fields of managed objects.
3162
3163 2006-03-19  Zoltan Varga  <vargaz@gmail.com>
3164
3165         * mini.c (mono_print_method_from_ip): Recognize JIT trampolines as well.
3166         (can_access_internals): Fix a warning.
3167
3168         * mini.c (print_method_from_ip): Rename this to 
3169         mono_print_method_from_ip so it gets exported.
3170
3171         * trace.c: Deal with strings inside StringBuilder's containing garbage
3172         and fix memory leaks. Fixes #77848.
3173
3174 2006-03-19  Zoltan Varga  <vargaz@gmail.com>
3175
3176         * mini.c (mini_init): Disable the setting of GC_stackbottom on ia64. Hopefully
3177         fixes #77787.
3178
3179 2006-03-16 Neale Ferguson <neale@sinenomine.net>
3180         
3181         * mini-s390.c: Remove OP_X86_TEST_NULL.
3182
3183 Thu Mar 16 17:19:04 CET 2006 Paolo Molaro <lupus@ximian.com>
3184
3185         * mini.c: use the correct GetHashCode() for the moving collector.
3186
3187 2006-03-16  Massimiliano Mantione  <massi@ximian.com>
3188
3189         * liveness.c: Regalloc spill cost tuning.
3190
3191 2006-03-15 Neale Ferguson <neale@sinenomine.net>
3192         
3193         * mini-s390x.h: Correct S390_LONG macro.
3194
3195         * mini-s390x.c: Cleanup unused code.
3196
3197 2006-03-15  Zoltan Varga  <vargaz@gmail.com>
3198
3199         * jit-icalls.h: New file.
3200
3201         * Makefile.am mini.c jit-icalls.c: Use a proper include file for the jit
3202         icalls and include that instead of including jit-icalls.c.
3203
3204         * mini-ppc.c (mono_arch_output_basic_block): Remove references to
3205         OP_X86 opcodes.
3206
3207 Tue Mar 14 20:23:53 CET 2006 Paolo Molaro <lupus@ximian.com>
3208
3209         * mini.c: when checking for member accessibility, also check for
3210         friend assemblies and for explicit interface implementations.
3211
3212 2006-03-14  Zoltan Varga  <vargaz@gmail.com>
3213
3214         * mini-codegen.c (mono_local_regalloc): Remove incorrect g_free () calls.
3215
3216         * cpu-arm.md cpu-g4.md: Remove x86_ opcodes.
3217
3218         * mini-x86.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
3219         common cases are done first.    
3220
3221         * mini-ops.h: Only define platform specific opcodes on the given platform.
3222
3223         * mini.h regalloc.h mini-codegen.c: Merge optimizations from the linear-il
3224         branch.
3225         
3226 2006-03-14  Martin Baulig  <martin@ximian.com>
3227
3228         Revert Paolo's change from r57348:
3229
3230         * mini.h: don't use gboolean for bitfields.
3231         * mini.c: verifier changes for fields and methods accessibility.
3232
3233 2006-03-13  Neale Ferguson <neale@sinenomine.net>
3234
3235         * mini-s390.h, mini-s390x.h: Fix calls to mono_call_inst_add_outarg_reg.
3236
3237         * mini-s390x.c: Fix conv_r_un.
3238
3239         * cpu-s390, cpu-s390x.md: Fix lengths.
3240
3241 Sun Mar 12 17:31:22 CET 2006 Paolo Molaro <lupus@ximian.com>
3242
3243         * mini.c: nested types have access to all the nesting
3244         levels, not just the enclosing types.
3245
3246 Sun Mar 12 16:23:11 CET 2006 Paolo Molaro <lupus@ximian.com>
3247
3248         * mini.c: added a few more verification checks.
3249
3250 2006-03-12  Zoltan Varga  <vargaz@gmail.com>
3251
3252         * liveness.c: Merge optimizations from the linear-il branch.
3253
3254 2006-03-11  Zoltan Varga  <vargaz@gmail.com>
3255
3256         * mini-ia64.c (emit_call): Add a comment.
3257
3258         * tramp-ia64.c (mono_arch_patch_callsite): Handle indirect calls as well.
3259
3260         * tramp-ia64.c: Fix some warnings.
3261
3262 Sat Mar 11 20:15:59 CET 2006 Paolo Molaro <lupus@ximian.com>
3263
3264         * mini.h: don't use gboolean for bitfields.
3265         * mini.c: verifier changes for fields and methods accessibility.
3266
3267 2006-03-11  Zoltan Varga  <vargaz@gmail.com>
3268
3269         * mini.c (mono_icall_get_wrapper): Fix an ia64 bug introduced by the
3270         lazy icall wrapper changes.
3271
3272         * dominators.c: Replace all the dominator algorithms with faster
3273         ones from the linear-il branch.
3274
3275         * inssel-*.brg: Allocate call->out_ireg_args and call->out_freg_args from
3276         the mempool.
3277
3278         * mini-amd64.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
3279         common cases are done first.
3280
3281         * mini-amd64.c: Fix some warnings.
3282
3283         * mini-codegen.c mini-*.c: Allocate call->out_ireg_args and call->out_freg_args
3284         from the mempool.
3285
3286         * mini.c (mono_jit_compile_method_with_opt): Fix a race in the newly
3287         added code.
3288
3289         * mini.h: Add a missing prototype.
3290
3291 2006-03-10  Zoltan Varga  <vargaz@gmail.com>
3292
3293         * mini.c: Compile icall wrappers lazily.
3294
3295         * mini-codegen.c: Use printf instead of g_print since its much faster.
3296
3297         * mini.h (mono_bitset_foreach_bit): Use the faster mono_bitset_find_start ()
3298         function.
3299
3300         * mini.c (optimize_branches): Cache the negative result from 
3301         remove_block_if_useless ().
3302
3303         * mini.c (optimize_branches): Avoid restarting the iteration after each change. 
3304         Also fix some bblock linking issues.
3305
3306         * helpers.c (mono_disassemble_code): Reduce the size of the temporary
3307         assembly files.
3308
3309         * mini.h: Define G_LIKELY/G_UNLIKELY macros for older glib versions.
3310
3311         * mini.h (MonoBasicBlock): Reorganize the fields, putting more frequently
3312         accessed fields first, for better cache behavior.
3313         
3314 Fri Mar 10 18:21:41 CET 2006 Paolo Molaro <lupus@ximian.com>
3315
3316         * mini.c: speedup IList<T> array accesses.
3317
3318 2006-03-09  Zoltan Varga  <vargaz@gmail.com>
3319
3320         * mini.c (mono_method_to_ir): Handle large methods overflowing the 
3321         inline_costs counter. Fixes #77190.
3322
3323 2006-03-06  Zoltan Varga  <vargaz@gmail.com>
3324
3325         * mini-exceptions.c: Call mono_trace_is_enabled () before printing
3326         trace messages. Fixes #77706.
3327
3328 2006-03-04  Martin Baulig  <martin@ximian.com>
3329
3330         * tramp-amd64.c, tramp-x86.c
3331         (mono_debugger_create_notification_function): Use
3332         mono_global_codeman_reserve() to allocate a buffer at runtime and
3333         return it.
3334
3335         * debug-debugger.h (MonoDebuggerInfo): Added `initialize'.
3336
3337         * debug-debugger.c (mono_debugger_init): Dynamically allocate the
3338         notification function at runtime and then call `initialize' in the
3339         `MONO_DEBUGGER__debugger_info' vtable.
3340
3341 2006-03-04  Zoltan Varga  <vargaz@gmail.com>
3342
3343         * iltests.il: Fix a visibility problem.
3344
3345 Wed Mar 1 15:55:25 CET 2006 Paolo Molaro <lupus@ximian.com>
3346
3347         * driver.c, mini.c: add hooks for the counters API.
3348
3349 Wed Mar 1 12:28:04 CET 2006 Paolo Molaro <lupus@ximian.com>
3350
3351         * driver.c: show disabled options.
3352
3353 Wed Mar 1 12:18:51 CET 2006 Paolo Molaro <lupus@ximian.com>
3354
3355         * linear-scan.c: always use cost-driven selection.
3356
3357 2006-02-28  Raja R Harinath  <rharinath@novell.com>
3358
3359         * jit-icalls.c (helper_compile_generic_method): Revert change from
3360         2006-02-24.
3361
3362 Mon Feb 27 18:58:19 GMT 2006 Paolo Molaro <lupus@ximian.com>
3363
3364         * cpu-arm.md, mini-arm.c: implemented MemoryBarrier.
3365
3366 Sat Feb 25 17:39:21 CET 2006 Paolo Molaro <lupus@ximian.com>
3367
3368         * inssel.brg: style fixes, mostly to force the updated monoburg
3369         to run for people using svn.
3370
3371 Sat Feb 25 17:07:42 CET 2006 Paolo Molaro <lupus@ximian.com>
3372
3373         * mini.c: match monoburg changes.
3374
3375 Sat Feb 25 16:04:33 CET 2006 Paolo Molaro <lupus@ximian.com>
3376
3377         * mini.h, mini.c, abcremoval.c, aliasing.c, liveness.c,
3378         ssapre.c, graph.c, ssa.c: put the mono_burg_arity[]
3379         declaration in the header file.
3380
3381 Sat Feb 25 14:19:31 CET 2006 Paolo Molaro <lupus@ximian.com>
3382
3383         * helpers.c: reduce relocations and mem usage.
3384
3385 Sat Feb 25 11:58:16 CET 2006 Paolo Molaro <lupus@ximian.com>
3386
3387         * mini.h, mini-codegen.c: disable logging features if
3388         requested by configure.
3389
3390 Sat Feb 25 11:54:49 CET 2006 Paolo Molaro <lupus@ximian.com>
3391
3392         * mini.c: tiny verifier changes.
3393
3394 Fri Feb 24 18:17:52 CET 2006 Paolo Molaro <lupus@ximian.com>
3395
3396         * mini-ops.h, inssel-x86.brg, tramp-x86.c, mini-x86.c,
3397         cpu-pentium.md: stack alignment changes for osx/x86,
3398         partially from Geoff Norton <gnorton@customerdna.com>.
3399
3400 2006-02-24  Raja R Harinath  <harinath@gmail.com>
3401
3402         * jit-icalls.c (helper_compile_generic_method): Update to changes
3403         in metadata/class.c.
3404
3405 2006-02-24  Zoltan Varga  <vargaz@gmail.com>
3406         
3407         * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add a missing check.
3408         
3409         * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add support for
3410         interface calls with large offsets.
3411
3412 2006-02-23  Raja R Harinath  <rharinath@novell.com>
3413
3414         * jit-icalls.c (helper_compile_generic_method): Document the
3415         special-case we depend on so that we can inflate the method twice
3416         with the same context with no bad side-effects.
3417
3418 Thu Feb 23 13:45:46 CET 2006 Paolo Molaro <lupus@ximian.com>
3419
3420         * mini-x86.c, mini-amd64.c: fix for case when xen support
3421         is disabled.
3422
3423 Wed Feb 22 19:38:40 CET 2006 Paolo Molaro <lupus@ximian.com>
3424
3425         * mini-x86.c, mini-amd64.c: generate code to access tls items
3426         in a faster way for Xen systems.
3427
3428 Wed Feb 22 10:31:25 CET 2006 Paolo Molaro <lupus@ximian.com>
3429
3430         * exceptions-x86.c, mini-x86.h, driver.c, mini-codegen.c:
3431         updates and compilation fixes for the OSX/x86 port, mostly from
3432         Geoff Norton <gnorton@customerdna.com>.
3433
3434 Tue Feb 21 19:56:55 CET 2006 Paolo Molaro <lupus@ximian.com>
3435
3436         * inssel.brg: faster interface call implementation
3437         to sync with the interface_offsets MonoVTable changes.
3438
3439 Mon Feb 20 10:37:57 CET 2006 Paolo Molaro <lupus@ximian.com>
3440
3441         * mini.c: more verification checks.
3442
3443 Fri Feb 17 19:47:29 CET 2006 Paolo Molaro <lupus@ximian.com>
3444
3445         * mini.c: added a few more verification checks.
3446
3447 2006-02-17      Neale Ferguson <neale@sinenomine.net>
3448
3449         * mini-s390x.c, mini-s390x.h: Check for presence of long displacement
3450         facility on the processor and use it if available.
3451
3452 Fri Feb 17 16:12:52 CET 2006 Paolo Molaro <lupus@ximian.com>
3453
3454         * driver.c, aot.c, mini.c: throw exception if the IL code is
3455         invalid or unverifiable.
3456
3457 2006-02-17  Raja R Harinath  <rharinath@novell.com>
3458
3459         * generics.2.cs (test_0_ldfld_stfld_mro): Use m.struct_field, not
3460         m.StructField.
3461
3462 2006-02-16  Zoltan Varga  <vargaz@gmail.com>
3463
3464         * generics.2.cs: Add some tests for generics ldfld/stfld wrappers.
3465
3466 Wed Feb 15 16:23:17 CET 2006 Paolo Molaro <lupus@ximian.com>
3467
3468         * mini-s390x.c, mini-s390.c, mini.c, mini-amd64.c, mini-arm.c,
3469         mini-ia64.c, mini-sparc.c, mini-x86.c, mini-ppc.c: fixed
3470         handling of instantiated generic valuetypes.
3471
3472 2006-02-11  Zoltan Varga  <vargaz@gmail.com>
3473
3474         * mini-exceptions.c mini-x86.h mini-x86.c: Get rid of 
3475         MONO_INIT_CONTEXT_FROM_CALLER, and use MONO_INIT_CONTEXT_FROM_FUNC
3476         instead.
3477
3478         * generics.2.cs: Revert the nullable reftypes tests.
3479
3480 2006-02-10  Zoltan Varga  <vargaz@gmail.com>
3481
3482         * mini-exceptions.c (MONO_INIT_CONTEXT_FROM_CALLER): Avoid
3483         using __builtin_frame_address (1) as it doesn't work in the presence
3484         of optimizations. Hopefully fixes #77273.
3485
3486         * Makefile.am generics.cs generics.2.cs: Revert the generics.2.cs
3487         -> generics.cs change as it doesn't work with some automake versions.
3488
3489 Thu Feb 9 16:24:44 CET 2006 Paolo Molaro <lupus@ximian.com>
3490
3491         * mini.c: handle systems that sue a different way to
3492         retrieve the stack address of the current thread.
3493
3494 2006-02-09  Zoltan Varga  <vargaz@gmail.com>
3495
3496         * Makefile.am generics.2.cs: Rename this to generics.cs and handle
3497         it specially in the makefile.
3498
3499         * generics.2.cs: Add tests for nullable reference types.
3500
3501 Wed Feb 8 19:33:17 CET 2006 Paolo Molaro <lupus@ximian.com>
3502
3503         * mini.c: always handle the case when mono_jit_init()
3504         is called in a thread different from the main thread,
3505         confusing libgc (bug #77309).
3506
3507 Mon Feb 6 09:01:24 EST 2006 Paolo Molaro <lupus@ximian.com>
3508
3509         * mini-ppc.c: fix handling of exceptions in large methods (bug #74932).
3510
3511 Fri Feb 3 18:51:35 CET 2006 Paolo Molaro <lupus@ximian.com>
3512
3513         * mini.c: change optimize_branches () to use a single loop
3514         and introduce a new optimization to simplify some range checks.
3515
3516 2006-02-03  Martin Baulig  <martin@ximian.com>
3517
3518         * debug-debugger.c (debugger_thread_manager_thread_created): Removed
3519         and merged with debugger_thread_manager_add_thread().
3520         (mono_debugger_main): Call debugger_thread_manager_add_thread() to
3521         inform the debugger about the main thread.
3522
3523 2006-02-03  Zoltan Varga  <vargaz@gmail.com>
3524
3525         * basic.cs: Add test for div.un/rem.un constant folding.
3526
3527 2006-02-03  Neale Ferguson <neale@sinenomine.net>
3528
3529         * cpu-s390x.md: correct int_xor_imm length
3530
3531 2006-02-03  Zoltan Varga  <vargaz@gmail.com>
3532
3533         * generics.2.cs: New test for #77442.
3534
3535         * jit-icalls.c (helper_compile_generic_method): Check for null. Fixes
3536         #77442.
3537
3538 2006-02-02  Martin Baulig  <martin@ximian.com>
3539
3540         * tramp-x86.c, tramp-amd64.c: It's now safe to #include
3541         <mono/metadata/mono-debug-debugger.h>   
3542
3543         * debug-mini.c: Don't #define _IN_THE_MONO_DEBUGGER.
3544
3545 2006-02-02  Martin Baulig  <martin@ximian.com>
3546
3547         * debug-debugger.h: New header file for debug-debugger.c.
3548
3549         * debug-debugger.c: Big API cleanup; don't run the managed Main()
3550         function is a separate thread anymore; add support for attaching.
3551
3552 2006-02-01  Zoltan Varga  <vargaz@gmail.com>
3553
3554         * tramp-x86.c: Fix a warning.
3555
3556 2006-01-31  Zoltan Varga  <vargaz@gmail.com>
3557
3558         * mini-amd64.c (mono_arch_compute_omit_fp): Avoid hitting an assertion
3559         on very large methods.
3560
3561         * aot.c (load_patch_info): Fix a warning.
3562
3563 Mon Jan 30 12:51:10 CET 2006 Paolo Molaro <lupus@ximian.com>
3564
3565         * cpu-pentium.md, mini-x86.c, inssel.brg, inssel-x86.brg,
3566         mini-ops.h: alu membase optimizations.
3567
3568 Fri Jan 27 21:11:08 CET 2006 Paolo Molaro <lupus@ximian.com>
3569
3570         * mini-ops.h, mini.c, inssel.brg, inssel-x86.brg: opcode
3571         to speedup StringBuilder.
3572
3573 2006-01-27  Zoltan Varga  <vargaz@gmail.com>
3574
3575         * dominators.c (mono_compute_natural_loops): Fix detection of
3576         loop body start blocks.
3577
3578         * mini-exceptions.c (mono_print_thread_dump): Fix non x86 builds.
3579
3580 2006-01-26  Zoltan Varga  <vargaz@gmail.com>
3581
3582         * mini.h mini.c mini-exceptions.c: Add thread dump support. Fixes
3583         #75145.
3584
3585 2006-01-25  Massimiliano Mantione  <massi@ximian.com>
3586
3587         * aliasing.c: Fixed aliasing issue on 64 bit archs.
3588
3589 2006-01-25  Martin Baulig  <martin@ximian.com>
3590
3591         * debug-debugger.c: Moved the `MonoDebuggerManager' and
3592         `MonoDebuggerThread' typedefs here from mono-debug-debugger.h and
3593         started to cleanup this file a little bit.
3594
3595 Tue Jan 24 18:20:48 CET 2006 Paolo Molaro <lupus@ximian.com>
3596
3597         * mini.c: optimize a codepath frequently happening in generics code.
3598
3599 2006-01-23  Martin Baulig  <martin@ximian.com>
3600
3601         * Makefile.am: Only compile debug-debugger.c on supported platforms.
3602
3603         * debug-debugger.c: Kill the IO_LAYER() hack and use the io-layer
3604         functions directly.
3605
3606         * driver.c: debug-debugger.c is only available if
3607         `MONO_DEBUGGER_SUPPORTED' is defined.   
3608
3609 2006-01-23  Martin Baulig  <martin@ximian.com>
3610
3611         * debug-debugger.c: Only enable this on platforms where the Mono
3612         Debugger is working (x86 and x86_64).
3613
3614 2006-01-21  Martin Baulig  <martin@ximian.com>
3615
3616         The Mono Debugger is now using the normal `mono' instead of the
3617         `mono-debugger-mini-wrapper' when executing managed code.
3618
3619         * debug-debugger.c: New file; previously known as
3620         debugger/wrapper/wrapper.c.
3621
3622         * debug-mini.c (mono_init_debugger): Removed.
3623
3624         * driver.c (mono_main): Added new `--inside-mdb' command line
3625         argument which is used when running inside the debugger.
3626
3627 2006-01-20  Zoltan Varga  <vargaz@gmail.com>
3628
3629         * liveness.c (mono_analyze_liveness): Remove some unused data
3630         structures.
3631
3632 2006-01-17  Zoltan Varga  <vargaz@gmail.com>
3633
3634         * mini.h: Move mono_bitset_test_fast macro to monobitset.h where it belongs.
3635
3636 2006-01-16  Zoltan Varga  <vargaz@gmail.com>
3637
3638         * mini.h (mono_bitset_test_fast): Disable the 'fast' implementation which
3639         depends on implementation details of monobitset.
3640
3641         * mini.c (mini_get_ldelema_ins): Fix handling of 1 dimensional arrays.
3642         Fixes #77271.
3643
3644 2006-01-15  Zoltan Varga  <vargaz@gmail.com>
3645
3646         * liveness.c: Update after monobitset changes.
3647
3648 2006-01-14  Zoltan Varga  <vargaz@gmail.com>
3649
3650         * mini-amd64.c (mono_arch_compute_omit_fp): Fix a leak.
3651
3652 2006-01-11 Neale Ferguson <neale@sinenomine.net>
3653
3654         * inssel-s390x.brg: Fix reg: OP_LDADDR(OP_S390_LOADARG) register setting.
3655
3656         * mini-s390x.c: Remove warning messages.
3657
3658 2006-01-11  Ben Maurer  <bmaurer@andrew.cmu.edu>
3659
3660         * mini.c: pass the jitinfo to mono_profiler_method_end_jit.
3661
3662 2006-01-10  Zoltan Varga  <vargaz@gmail.com>
3663
3664         * generics.2.cs: Add ldelem/stelem_any test.
3665
3666 2006-01-10 Neale Ferguson <neale@sinenomine.net>
3667
3668         * mini-s390.c: Fix ATOMIC_ADD_I4 operation.
3669
3670 2006-01-07  Zoltan Varga  <vargaz@gmail.com>
3671
3672         * inssel-long.brg: Fix int->long ovf conversion rules. Fixes #77172.
3673         
3674 2006-01-06  Zoltan Varga  <vargaz@gmail.com>
3675
3676         * generics.2.cs: Reenable vtype tests.
3677
3678         * inssel-x86.brg: Remove an icorrect valuetype rule.
3679
3680 2006-01-06 Neale Ferguson <neale@sinenomine.net>
3681
3682         * mini-s390x.c, inssel-s390x.brg, cpu-s390x.md: Fix ATOMIC_I8 operations. Provide
3683         initial support for OP_ABS.
3684
3685 2006-01-05 Neale Ferguson <neale@sinenomine.net>
3686
3687         * mini-s390x.c (emit_float_to_int): Correct r8 to unsigned int algorithm.
3688
3689 2006-01-05 Neale Ferguson <neale@sinenomine.net>
3690
3691         * mini-s390.c, mini-s390.h, inssel-s390.brg, cpu-s390.md: Fix r8 to unsigned int 
3692         conversion and implement LADD/LSUB.
3693
3694         * exceptions-s390.c: Standardize mono_arch_find_jit_info to match other
3695         architectures.
3696
3697 2006-01-05 Neale Ferguson <neale@sinenomine.net>
3698
3699         * mini-s390x.c, mini-s390x.h: Fix r8 to unsigned int conversion.
3700
3701         * exceptions-s390x.c: Standardize mono_arch_find_jit_info to match other
3702         architectures.
3703
3704 2006-01-05 Neale Ferguson <neale@sinenomine.net>
3705
3706         * mini-s390x.c, mini-s390x.h, mini-s390.c, mini-s390.h: Fix lmf handling when 
3707         localloc is encountered.  Fixes crash in test-183.cs when using gmcs 
3708         (stack walk problem).
3709
3710 2006-01-04  Zoltan Varga  <vargaz@gmail.com>
3711
3712         * aot.c (mono_aot_load_method): Fix a warning.
3713
3714 2006-01-03  Neale Ferguson <neale@sinenomine.net>
3715
3716         * mini-s390x.h, exceptions-s390x.c, inssel-s390x.brg: Fix compiler warnings
3717
3718 2006-01-03  Zoltan Varga  <vargaz@gmail.com>
3719
3720         * iltests.il: Add test for #77148.
3721
3722         * mini.c (mini_get_ldelema_ins): Handle arrays with rank 1 too. Fixes
3723         #77148.
3724
3725 2006-01-03  Neale Ferguson <neale@sinenomine.net>
3726
3727         * mini-s390x.c, inssel-s390x.brg: Remove debug statements
3728
3729 2006-01-03  Neale Ferguson <neale@sinenomine.net>
3730
3731         * mini-s390x.c, mini-s390x.h, exceptions-s390x.c, tramp-s390x.c, inssel-s390x.brg,
3732         cpu-s390x.md, mini-codegen.c, Makefile.am: add 64-bit s390 support to JIT.
3733
3734         * basic-long.cs: Add lconv-to-r4/r8 tests.
3735
3736 2006-01-03  Zoltan Varga  <vargaz@gmail.com>
3737
3738         * mini.c (mono_method_to_ir): Fix DynamicMethod support in some opcodes.
3739
3740         * mini-sparc.c (mono_arch_call_opcode): Use mono_class_value_size ()
3741         here as on other archs.
3742
3743 2005-12-29 Neale Ferguson <neale@sinenomine.net>
3744
3745         * mini-s390.c (mono_arch_get_inst_for_method): Add memory_barrier support.
3746
3747 2005-12-29 Neale Ferguson <neale@sinenomine.net>
3748
3749         * inssel-s390.brg: Correct register assignment; Rework L[ADD|SUB]_OVF[_UN] for s390.
3750         
3751         * cpu-s390.md: Fix lengths of a couple of long instructions; Add memory_barrier.
3752
3753         * mini-s390.c: Fix long add/sub overflow instructions; Fix displacement handling in
3754         instrument_prolog; Add memory_barrier instruction.
3755
3756 2005-12-26  Zoltan Varga  <vargaz@gmail.com>
3757
3758         * exceptions-x86.c mini-x86.h: Fix solaris/x86 exception handling.
3759
3760 2005-12-23  Zoltan Varga  <vargaz@gmail.com>
3761
3762         * tramp-ia64.c (mono_arch_get_unbox_trampoline): Flush icache.
3763
3764         * aliasing.c inssel.brg: Fix warnings.
3765
3766         * inssel-ia64.brg (OP_MEMSET): Fix an optimization which previously
3767         could skip initialization of some parts of memory.
3768
3769         * mini.c mini-ia64.c: Fix warnings.
3770
3771         * inssel-sparc.brg: Add an implementation of lneg which actually works.
3772
3773 2005-12-22  Zoltan Varga  <vargaz@gmail.com>
3774
3775         * aliasing.c (mono_build_aliasing_information): Add a workaround for
3776         a crash seen on sparc.
3777
3778         * mini-sparc.c: Add implementation of Thread.MemoryBarrier.
3779         
3780         * cpu-sparc.md: Add memory_barrier opcode. Remove unused opcodes.
3781
3782 2005-12-21 Neale Ferguson <neale@sinenomine.net>
3783
3784         * mini-ops.h: Add s390_backchain instruction
3785
3786         * inssel-s390.brg: Use backchaining instruction for LOADARG/STKARG operations.
3787
3788         * cpu-s390.md: Add s390_backchain instruction
3789
3790         * mini-s390.c: Significant ABI changes
3791
3792         * mini-s390.h: Cater for zero length structures
3793
3794 2005-12-20 Neale Ferguson <neale@sinenomine.net>
3795
3796         * mini-s390.c: ABI fixes
3797
3798         * inssel-s390.brg: Remove debug statements
3799
3800         * cpu-s390.md: Fix length of ATOMIC_xx operations
3801
3802 2005-12-19  Zoltan Varga  <vargaz@gmail.com>
3803
3804         * basic-float.cs: Add float<->long conversion tests.
3805
3806 2005-12-16 Neale Ferguson <neale@sinenomine.net>
3807
3808         * mini-s390.c: Fix LOCALLOC processing.
3809
3810         * tramp-s390.c (s390_magic_trampoline): Fix base calculation.
3811
3812 2005-12-15  Zoltan Varga  <vargaz@gmail.com>
3813
3814         * iltests.il: Add tests for some opcodes not covered by the other
3815         tests.
3816
3817 2005-12-15 Neale Ferguson <neale@sinenomine.net>
3818
3819         * mini-s390.c: Fix ADDCC/SBB bug revealed by test_0_ulong_regress; Correct 
3820         register loading for Tail processing; Correct trace output.
3821
3822         * inssel-s390.brg: Reimplement LSUB_OVF due to s390 implementation of signed math.
3823
3824         * cpu-s390.md: Correct size of jmp instruction. 
3825
3826 2005-12-13 Neale Ferguson <neale@sinenomine.net>
3827
3828         * mini-s390.c (mono_arch_emit_prolog): Remove some debugging bits.
3829
3830 2005-12-13 Neale Ferguson <neale@sinenomine.net>
3831
3832         * inssel-s390.brg tramp-s390.c cpu-s390.md mini-s390.c mini-s390.h:
3833           Bring s390 up to current level.
3834
3835 2005-12-12  Zltan Varga  <vargaz@gmail.com>
3836
3837         * generics.2.cs: Disable the newly added tests as they do not work yet.
3838         
3839         * generics.2.cs: Add valuetype tests.
3840
3841 2005-12-09  Zoltan Varga  <vargaz@gmail.com>
3842
3843         * basic-long.cs: Add i4->u8 test.
3844
3845         * objects.cs: Add tests for JIT intrinsic.
3846
3847         * mini.c (mini_get_inst_for_method): Resurrect the array Rank/Length
3848         optimizations lost by a mistake.
3849
3850 2005-12-07  Zoltan Varga  <vargaz@gmail.com>
3851
3852         * basic-long.cs: Remove a test moved to objects.cs.
3853
3854         * arrays.cs: Add more array tests.
3855
3856 2005-12-06  Zoltan Varga  <vargaz@gmail.com>
3857
3858         * arrays.cs: Add new tests for multi-dimensional arrays.
3859
3860 2005-12-06  Raja R Harinath  <rharinath@novell.com>
3861
3862         * Makefile.am (test_sources2): Add generics.2.cs.
3863         (EXTRA_DIST): Add test_sources2.
3864
3865 2005-12-05  Ben Maurer  <bmaurer@ximian.com>
3866
3867         Support for boxing and unboxing nullable types as well as the
3868         isinst operation on nullables, per the CLI ammendment.
3869
3870         * inssel.brg (CEE_ISINST): Special case for nullable
3871
3872         * mini.c (handle_unbox_nullable): new method
3873         (handle_box): Special case for nullable types
3874         (mono_method_to_ir): Call handle_unbox_nullable in correct
3875         places.
3876
3877         * generics.2.cs: New test suite
3878
3879         * Makefile.am: Support for regression tests with generics.
3880
3881 2005-12-03  Zoltan Varga  <vargaz@gmail.com>
3882
3883         * mini-amd64.c (emit_load_volatile_arguments): Add loading of arguments
3884         allocated to registers. Fixes #76800.
3885
3886 Thu Dec 1 12:59:40 EST 2005 Paolo Molaro <lupus@ximian.com>
3887
3888         * mini-ppc.c, inssel-ppc.brg: fix ABI issue (pinvoke3.cs).
3889
3890 2005-11-30  Zoltan Varga  <vargaz@gmail.com>
3891
3892         * exceptions.cs: Disable test_0_long_cast () test, since it fails on a lot 
3893         of platforms.
3894
3895 2005-11-29  Zoltan Varga  <vargaz@gmail.com>
3896
3897         * objects.cs basic-calls.cs: Move a test depending on valuetypes to
3898         objects.cs.
3899
3900         * inssel-long32.brg (CEE_CONV_I8): Remove unused labels.
3901         
3902         * inssel-long32.brg (CEE_CONV_I8): Convert this to a branchless version.
3903 Tue Nov 29 05:41:34 EST 2005 Paolo Molaro <lupus@ximian.com>
3904
3905         * mini-ppc.c, cpu-g4.md: ensure a fp register is converted to
3906         single precision before storing to a single precision location.
3907
3908 2005-11-28  Raja R Harinath  <rharinath@novell.com>
3909
3910         * Makefile.am (ILASM): Use profile-dependent location of ilasm.
3911
3912 2005-11-27  Zoltan Varga  <vargaz@gmail.com>
3913
3914         * basic-long.cs basic-calls.cs objects.cs: Move some tests to the
3915         correct files.
3916
3917         * basic.cs: Remove test_0_byte_compares test which was moved to
3918         objects.cs a long time ago.
3919
3920 2005-11-22  Massimiliano Mantione  <massi@ximian.com>
3921
3922         * aliasing.c: Fixed aliasing issue on 64 bit archs.
3923
3924 2005-11-20  Zoltan Varga  <vargaz@gmail.com>
3925
3926         * mini-ia64.c exceptions-ia64.c: Simplify the way filters/finally
3927         handlers are called.
3928
3929         * mini-ia64.c (mono_arch_emit_exceptions): Optimize size of exception
3930         throwing code.
3931
3932          * mini-ia64.c: Add support for the throw->branch exception 
3933         optimization.   
3934
3935         * driver.c (DEFAULT_OPTIMIZATIONS): Add MONO_OPT_EXCEPTION.
3936
3937 2005-11-18  Massimiliano Mantione  <massi@ximian.com>
3938
3939         * mini.c: Enabled "fastpath" deadce :-)
3940         
3941 2005-11-18  Massimiliano Mantione  <massi@ximian.com>
3942
3943         * mini.c: Added "fastpath" deadce (deadce without SSA), and a simple
3944         alias analysis pass to support it.
3945         * mini.h: Likewise.
3946         * ssa.c: Likewise.
3947         * liveness.c: Likewise (liveness computation can use aliasing
3948         information to be more accurate).
3949         * driver.c: Added an "ssa" option go tell the JIT to use SSA, and
3950         moreover made so that "--compile-all" uses the given optimization
3951         flags and not the default ones.
3952         * aliasing.c: Alias analysis (new file).
3953         * aliasing.h: Likewise.
3954         * Makefile.am: added "aliasing.c" and "aliasing.h".
3955         
3956 2005-11-17  Zoltan Varga  <vargaz@gmail.com>
3957
3958         * mini-ops.h: Add missing OP_I opcodes so it is in synch with the
3959         OP_L opcodes.
3960
3961 2005-11-13  Zoltan Varga  <vargaz@gmail.com>
3962
3963         * mini-exceptions.c (mono_handle_exception_internal): Remove the 
3964         fp >= end_of_stack exit condition, as it is not needed, and it might
3965         become true for fp eliminated frames.
3966
3967 2005-11-11  Zoltan Varga  <vargaz@gmail.com>
3968
3969         * mini-x86.c (mono_arch_emit_epilog): Use G_STRUCT_OFFSET instead of hard
3970         coded offsets.
3971
3972 Tue Nov 8 11:28:20 GMT 2005 Paolo Molaro <lupus@ximian.com>
3973
3974         * mini-arm.c: fixed alignment of doubles/longs to match
3975         the C ABI (bug #76635).
3976
3977 Mon Nov 7 16:13:21 CET 2005 Paolo Molaro <lupus@ximian.com>
3978
3979         * aot.c: fix compilation with --enable-minimal=aot.
3980
3981 Fri Nov 4 12:34:15 GMT 2005 Paolo Molaro <lupus@ximian.com>
3982
3983         * mini-arm.c: fixed compatibility with the new
3984         floating point emulator package for compares.
3985
3986 2005-11-03  Atsushi Enomoto  <atsushi@ximian.com?
3987
3988         * mini.c : reverted sig->pinvoke changes (r51396-51397).
3989
3990 2005-11-01  Zoltan Varga  <vargaz@freemail.hu>
3991
3992         * mini-exceptions.c (print_stack_frame): Output to stderr.
3993         (mono_handle_native_sigsegv): Ditto.
3994
3995 2005-10-30  Zoltan Varga  <vargaz@freemail.hu>
3996
3997         * mini-amd64.c (mono_arch_output_basic_block): Remove unused
3998         OP_LCONV_TO_OVF_I implementation.
3999
4000         * mini-amd64.c: Add support for the throw->branch exception 
4001         optimization.
4002
4003         * branch-opts.c (mono_branch_optimize_exception_target): Allow the case
4004         when the catch clause catches a more general exception, i.e. Object.
4005
4006 2005-10-30  Zoltan Varga  <vargaz@gmail.com>
4007
4008         * cpu-ia64.md: Remove unused opcodes.
4009
4010         * mini.c (GET_CONTEXT): Simplify this somewhat by removing arch
4011         specific defines for architectures defining USE_SIGACTION.
4012
4013         * mini-ia64.c: Fix some warnings.
4014
4015         * exceptions-ia64.c (mono_arch_ip_from_context): Fix this, the previous
4016         version seemed to skip a frame.
4017
4018 2005-10-30  Zoltan Varga  <vargaz@freemail.hu>
4019
4020         * mini.c: Clean up the usage of sig->pinvoke flag. Now
4021         only calls which are made to native code use this flag.
4022
4023 2005-10-29  Zoltan Varga  <vargaz@freemail.hu>
4024
4025         * mini-amd64.c (mono_arch_compute_omit_fp): Disable fp elimination for
4026         varargs methods as well.
4027         
4028         * mini-amd64.c exceptions-amd64.c: Allow fp elimination in methods
4029         which have save_lmf set. Reorganize methods prologs a bit.
4030
4031         * mini-amd64.c (mono_arch_compute_omit_fp): Move the check for the
4032         debugger to the proper place.
4033
4034 2005-10-29  Martin Baulig  <martin@ximian.com>
4035
4036         * mini-amd64.c (debug_omit_fp): Temporarily disable fp elimination
4037         when running inside the debugger until the debugger has support
4038         for it.
4039
4040 2005-10-26  Zoltan Varga  <vargaz@gmail.com>
4041
4042         * mini.h: Fix a warning.
4043
4044 2005-10-24  Miguel de Icaza  <miguel@novell.com>
4045
4046         * mini.c (mono_pmip): Just a wrapper for get_method_from_ip which
4047         we expose publicly, this returns the string.
4048
4049 2005-10-22  Zoltan Varga  <vargaz@freemail.hu>
4050
4051         * exceptions-amd64.c (mono_arch_find_jit_info): Fix some corner cases
4052         with fp elimination.
4053
4054 2005-10-21  Zoltan Varga  <vargaz@gmail.com>
4055
4056         * mini-exceptions.c (mono_handle_native_sigsegv): Try to print a
4057         native stacktrace using the glibc 'backtrace' function if available.
4058
4059 2005-10-20  Zoltan Varga  <vargaz@gmail.com>
4060
4061         * mini.h (MonoDebugOptions): Remove 'abort_on_sigsegv' option.
4062
4063         * mini-exceptions.c (mono_handle_native_sigsegv): New function to 
4064         handle SIGSEGVs received while in native code.
4065
4066         * mini.c (sigsegv_signal_handler): If the SIGSEGV happened in native
4067         code, call mono_handle_native_sigsegv which will abort the runtime
4068         after printing some diagnostics, instead of converting it into a
4069         confusing NullReferenceException.
4070
4071 2005-10-18  Zoltan Varga  <vargaz@gmail.com>
4072
4073         * cpu-pentium.md: Remove unused opcodes.
4074
4075 2005-10-18  Zoltan Varga  <vargaz@freemail.hu>
4076
4077         * mini-amd64.h (MonoLMF): Add rsp field.
4078
4079         * mini-amd64.c exceptions-amd64.c tramp-amd64.c: Save the sp reg into
4080         the lmf too.
4081
4082 2005-10-17  Zoltan Varga  <vargaz@gmail.com>
4083
4084         * mini-codegen.c (get_register_spilling): Fix some warnings.
4085
4086 2005-10-16  Zoltan Varga  <vargaz@freemail.hu>
4087
4088         * mini-amd64.h mini-amd64.c exceptions-amd64.c: Add support for fp
4089         elimination during exception handling. Enable fp elimination by
4090         default.
4091
4092         * mini-amd64.h mini-amd64.c: Add preliminary support for frame pointer
4093         elimination.
4094
4095 2005-10-16  Martin Baulig  <martin@ximian.com>
4096
4097         * mini-exceptions.c
4098         (mono_debugger_run_finally): New public method for the debugger.
4099
4100 2005-10-10  Zoltan Varga  <vargaz@gmail.com>
4101
4102         * debug-mini.c (mono_debug_init_method): Fix warning.
4103
4104         * mini.h branch-opts.c (mono_branch_optimize_exception_target): Make
4105         the 'exname' parameter const to fix some warnings.
4106
4107 2005-10-09  Zoltan Varga  <vargaz@freemail.hu>
4108
4109         * mini-exceptions.c (mono_handle_exception_internal): Fix another bug
4110         introduced by the previous patch.
4111
4112 2005-10-08  Zoltan Varga  <vargaz@gmail.com>
4113
4114         * basic-float.cs: Add test for precision of float arithmetic.
4115
4116         * mini-ia64.c (mono_arch_output_basic_block): Convert to/from doubles
4117         when loading/storing single values from/to memory.
4118
4119         * mini.c (mono_jit_compile_method_with_opt): Create the function
4120         pointers in the correct domain.
4121
4122 2005-10-08  Zoltan Varga  <vargaz@freemail.hu>
4123
4124         * mini-exceptions.c (mono_handle_exception_internal): Fix bug 
4125         introduced by previous patch.
4126         
4127         * mini-exceptions.c (mono_handle_exception_internal): Handle the case
4128         when out_filter_idx is NULL.
4129
4130         * mini-exceptions.c: Don't run filter clauses twice during exception
4131         handling. Fixes #75755.
4132
4133 2005-10-07  Zoltan Varga  <vargaz@gmail.com>
4134
4135         * aot.c: Add support for ldflda wrappers.
4136
4137         * mini.c (mono_method_to_ir): Use ldflda wrappers for CEE_LDFLDA. Fixes
4138         #75902.
4139
4140 Tue Oct 4 20:23:25 CEST 2005 Paolo Molaro <lupus@ximian.com>
4141
4142         * mini.c, mini.h: do not consider exception handlers blocks when
4143         setting up interface variables.
4144
4145 2005-10-04  Zoltan Varga  <vargaz@freemail.hu>
4146
4147         * aot.c (emit_section_change): Fix emitting of sections on win32. Fixes #76322.
4148
4149 2005-10-03  Zoltan Varga  <vargaz@gmail.com>
4150
4151         * liveness.c (mono_analyze_liveness): Revert parts of r51051 since it
4152         causes a regression.
4153
4154         * mini.c (mini_thread_cleanup): Fix reading of freed memory.
4155
4156 2005-10-02  Zoltan Varga  <vargaz@freemail.hu>
4157
4158         * mini.h (OP_PCONST): Move the definition of OP_PCONST into the rest
4159         of the OP_P definitions.
4160
4161         * TODO: Add a proposal for dealing with the CEE/OP mess.
4162
4163         * mini-amd64.c (mono_arch_output_basic_block): Merge mul_imm 
4164         optimizations from the x86 port.
4165
4166         * cpu-amd64.md: Ditto.
4167
4168         * basic.cs basic-long.cs: Add tests.
4169
4170 Fri Sep 30 20:07:20 CEST 2005 Paolo Molaro <lupus@ximian.com>
4171
4172         * Makefile.am, driver.c, mini-x86.c, mini.c, mini.h, branch-opts.c:
4173         Patrik Torstensson's implementation of my exception-handling
4174         optimization idea, when the exception object is not used
4175         (bug #62150).
4176
4177 Fri Sep 30 19:10:29 CEST 2005 Paolo Molaro <lupus@ximian.com>
4178
4179         * mini-x86.c, cpu-pentium.md: Patrik Torstensson's port
4180         of the mul_imm optimizations from the old jit.
4181
4182 Fri Sep 30 11:37:51 EDT 2005 Paolo Molaro <lupus@ximian.com>
4183
4184         * mini.c, liveness.c: patch by Patrik Torstensson and
4185         Zoltan Varga to improve performance in methods with
4186         exception clauses.
4187
4188 2005-09-30  Zoltan Varga  <vargaz@gmail.com>
4189
4190         * driver.c: Remove 'Globalization' entry from --version.
4191
4192 2005-09-28  Zoltan Varga  <vargaz@gmail.com>
4193
4194         * mini.c (mono_jit_compile_method_inner): Do not load AOT code when
4195         there is a profiler interested in JIT events.
4196
4197         * aot.c: Load profile files produced by the AOT profiling module, and
4198         reorder methods based on the profiling info. Add a 'method_order' table
4199         to the AOT file to make mono_aot_find_jit_info work with the reordered
4200         methods.
4201
4202         * mini.h: Bump AOT file version info.
4203
4204 Wed Sep 28 17:12:48 CEST 2005 Paolo Molaro <lupus@ximian.com>
4205
4206         * mini-arm.h: work around what looks like a gcc bug when optimizations
4207         are enabled.
4208
4209 2005-09-28  Raja R Harinath  <rharinath@novell.com>
4210
4211         * Makefile.am (AM_CFLAGS): Don't use += to append inside
4212         conditionals.  Use ...
4213         (PLATFORM_CFLAGS, ARCH_CFLAGS): ... these.
4214
4215 2005-09-27  Zoltan Varga  <vargaz@freemail.hu>
4216
4217         * mini-amd64.c (mono_arch_call_opcode): Use mono_class_value_size ()
4218         to determine the amount of memory to copy when passing valuetypes.
4219
4220         * inssel-amd64.brg: Remove PUSH(LDIND4) rules since they convert an
4221         4 byte load into a 8 byte load. Fix aligning of size in OP_OUTARG_VT.
4222
4223 2005-09-27  Zoltan Varga  <vargaz@gmail.com>
4224
4225         * mini.h mini.c aot.c: Add infrastructure to collect pagefault 
4226         information about aot.
4227
4228 2005-09-27  Ben Maurer  <bmaurer@ximian.com>
4229
4230         * *.c: Replace the use of {Enter,Leave}CriticalSection with
4231         macros. This will allow a deadlock debugger to easily be plugged
4232         in.
4233
4234 Tue Sep 27 09:32:11 EDT 2005 Paolo Molaro <lupus@ximian.com>
4235
4236         * mini-ppc.c, cpu-g4.md: added memory barrier instruction.
4237
4238 2005-09-27  Raja R Harinath  <rharinath@novell.com>
4239
4240         * Makefile.am (AM_CFLAGS): Rename from INCLUDES.
4241         (AM_CFLAGS) [PLATFORM_WIN32): Append to it, don't set it.
4242         (AM_CFLAGS) [ARM]: Add arch/arm directory from the build tree.
4243         ($(arch_built)) [CROSS_COMPILING]: Error out.
4244
4245 2005-09-26  Zoltan Varga  <vargaz@gmail.com>
4246
4247         * aot.c: Add support for the no_special_static flag for classes.
4248
4249 2005-09-24  Zoltan Varga  <vargaz@freemail.hu>
4250
4251         * Reapply reverted patches.
4252
4253         * *: Revert r50174 as well.
4254
4255         * mini-amd64.c cpu-amd64.md inssel-amd64.brg: Revert r50170 as well.
4256
4257 2005-09-24  Zoltan Varga  <vargaz@freemail.hu>
4258
4259         * mini-amd64.c: Revert r50342 to see if this fixed buildbot.
4260
4261 2005-09-23  Miguel de Icaza  <miguel@novell.com>
4262
4263         * mini.c (SIG_HANDLER_SIGNATURE): Only dereference info if it is
4264         part of the SIG_HANDLER_SIGNATURE.  
4265
4266 2005-09-23  Zoltan Varga  <vargaz@gmail.com>
4267
4268         * mini.h mini.c: Add a new MONO_DEBUG option to collect metadata pagefault
4269         statistics.
4270
4271         * mini-x86.c (mono_arch_call_opcode): Fix vararg calling convention 
4272         introduced by previous patch.
4273
4274 2005-09-21  Zoltan Varga  <vargaz@gmail.com>
4275
4276         * tramp-x86.c (mono_arch_create_trampoline_code): Restore caller
4277         saved registers too.
4278
4279         * mini-x86.c (mono_arch_allocate_vars): Rewrite this so it works based 
4280         upon the information returned by get_call_info ().
4281         
4282         * mini-x86.c (add_float): Fix stack size calculation.
4283         (mono_arch_call_opcode): Rewrite this so it works based up the
4284         information returned by get_call_info ().
4285         (mono_arch_get_this_vret_args): Ditto.
4286
4287 2005-09-21  Zoltan Varga  <vargaz@freemail.hu>
4288
4289         * mini-amd64.c (mono_arch_emit_this_vret_args): Use the information
4290         in cinfo to determine the registers which need to be used.
4291
4292 2005-09-20  Miguel de Icaza  <miguel@novell.com>
4293
4294         * driver.c (mono_main): Add --server and --desktop flags. 
4295
4296 2005-09-16  Zoltan Varga  <vargaz@gmail.com>
4297
4298         * mini-ia64.h: Make register masks 64 bit. Don't treat argument
4299         registers as global registers.
4300
4301         * inssel-ia64.brg (stmt): Remove OP_OUTARG_REG () rules which are no 
4302         longer needed with the new register allocator.
4303
4304         * mini-ia64.c: Use OP_MOVE instead of OP_SETREG for reg-reg moves.
4305
4306         * cpu-ia64.md: Remove unused opcodes.
4307         
4308         * regalloc.c mini-codegen.c: Make register masks 64 bit on ia64.
4309         
4310 2005-09-16  Zoltan Varga  <vargaz@freemail.hu>
4311
4312         * cpu-amd64.md: Remove unused opcodes.
4313
4314         * inssel-amd64.brg: Remove OP_OUTARG_REG () rules which are no longer
4315         needed with the new register allocator.
4316
4317         * inssel-amd64.brg mini-amd64.c: Use OP_MOVE instead of OP_SETREG for
4318         reg-reg moves.
4319
4320 2005-09-16  Raja R Harinath  <rharinath@novell.com>
4321
4322         * Makefile.am (check-local): Don't invoke semdel-wrapper.
4323
4324 2005-09-16  Martin Baulig  <martin@ximian.com>
4325
4326         * exceptions-amd64.c
4327         (throw_exception): Don't call mono_debugger_throw_exception() if
4328         we're a rethrow - see the FIXME in the code.
4329
4330 2005-09-15  Geoff Norton  <gnorton@customerdna.com>
4331
4332         * mini.c (mono_init_exceptions): This only works on some architectures.
4333         
4334 2005-09-15  Zoltan Varga  <vargaz@gmail.com>
4335
4336         * mini.c (mono_method_to_ir): Add OP_LMUL imm -> OP_LMUL_IMM conversion
4337         on ia64.
4338
4339         * inssel-long.brg mini-ia64.c: Add OP_LMUL_IMM rules.
4340
4341         * mini-ia64.h mini-ia64.c: Remove the altstack support code which is
4342         now in mini-exceptions.c.
4343
4344 2005-09-15  Zoltan Varga  <vargaz@freemail.hu>
4345
4346         * mini-amd64.h mini-am64.c: Remove the altstack support code which is
4347         now in mini-exceptions.c.
4348
4349 2005-09-15  Zoltan Varga  <vargaz@gmail.com>
4350
4351         * exceptions-x86.c: Applied patch from Patrik Torstensson 
4352         <patrik.torstensson@gmail.com>. Add stack overflow handling support for win32.
4353
4354         * mini-exceptions.c mini-x86.c mini.c: Move the altstack setup/teardown
4355         code into mini-exceptions.c. Add some assertions to it.
4356
4357 2005-09-12  Zoltan Varga  <vargaz@gmail.com>
4358
4359         * aot.c (emit_section_change): Applied patch from "The Software Team" 
4360         (<software@solmersa.com>). Fix as errors on windows.
4361
4362 2005-09-11  Zoltan Varga  <vargaz@freemail.hu>
4363
4364         * tramp-amd64.c (mono_arch_create_trampoline_code): Fix saving of
4365         method info into the LMF.
4366
4367 2005-09-11  Zoltan Varga  <vargaz@gmail.com>
4368         
4369         * mini-ia64.c: Add proper unwind info for method epilogs.
4370
4371         * exceptions-ia64.c: Add some code to help debugging.
4372         
4373         * mini-ia64.c mini-ia64.h: Add sigaltstack support.
4374
4375         * mini-exceptions.c: Fix warning.
4376
4377 2005-09-11  Zoltan Varga  <vargaz@freemail.hu>
4378
4379         * mini.c: Really fix build.
4380
4381         * mini-x86.c mini-amd64.c: Fix build.
4382
4383 2005-09-11  Zoltan Varga  <vargaz@gmail.com>
4384
4385         * mini-ia64.c inssel-ia64.brg: Add InterlockedExchange instrinsics.
4386
4387         * mini-ops.h cpu-ia64.md inssel-ia64.brg mini-ia64.c: Implement
4388         some Interlocked methods as intrinsics.
4389
4390         * mini.c (mini_get_inst_for_method): Call arch_get_inst_for_method
4391         for Thread methods as well.
4392
4393         * mini-ops.h: Add OP_MEMORY_BARRIER opcode.
4394
4395         * inssel.brg: Add rule for OP_MEMORY_BARRIER.
4396
4397         * mini-ia64.c mini-x86.c mini-amd64.c 
4398         cpu-ia64.md cpu-pentium.md cpu-amd64.md: Add implementation of 
4399         OP_MEMORY_BARRIER.
4400         
4401         * mini.c (mono_init_exceptions): Fix build breakage.
4402
4403 2005-09-10  Zoltan Varga  <vargaz@gmail.com>
4404
4405         * mini-ia64.c exceptions-ia64.c tramp-ia64.c: Remove 'manual' emitting
4406         of instructions. Use the new ia64_unw_op macros for emitting unwind
4407         info.
4408
4409         * mini.c (mono_init_exceptions): Initialize exception handling
4410         related trampolines at startup.
4411
4412 Fri Sep 9 19:30:37 BST 2005 Paolo Molaro <lupus@ximian.com>
4413
4414         * cpu-arm.md, mini-arm.c: fix for dynamic code (Gtk# apps).
4415
4416 2005-09-09  Zoltan Varga  <vargaz@gmail.com>
4417
4418         * mini.c: Handle type loading errors gracefully during compilation and
4419         throw the appropriate exception.
4420
4421 Fri Sep 9 09:49:14 CEST 2005 Paolo Molaro <lupus@ximian.com>
4422
4423         * ldscript.mono, Makefile.am: use anonymous versions in the ldscript
4424         for the mono binary.
4425
4426 2005-09-09  Martin Baulig  <martin@ximian.com>
4427
4428         * mini.c (mono_method_to_ir): Comment out the G_BREAKPOINT()'s for
4429         the release.
4430
4431 Thu Sep 8 14:53:45 BST 2005 Paolo Molaro <lupus@ximian.com>
4432
4433         * mini-arm.h: use emulation for conv.r.un for the release.
4434
4435 Thu Sep 8 11:28:45 BST 2005 Paolo Molaro <lupus@ximian.com>
4436
4437         * mini-arm.c, objects.cs: more fixes and tests for them.
4438
4439 Wed Sep 7 17:14:26 BST 2005 Paolo Molaro <lupus@ximian.com>
4440
4441         * mini-arm.c: align structures to at least 4 bytes to be able
4442         to keep our current optimized memcpy.
4443
4444 Tue Sep 6 22:51:08 BST 2005 Paolo Molaro <lupus@ximian.com>
4445
4446         * mini-arm.c, cpu-arm.md, inssel-arm.brg: bugfixes.
4447
4448 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4449
4450         * mini.c: ignore SIGPIPE.
4451
4452 2005-09-04  Zoltan Varga  <vargaz@gmail.com>
4453
4454         * mini-ia64.c (mono_arch_lowering_pass): Convert 'and_imm 255' to zext1.
4455
4456         * mini-ia64.h mini-ia64.c: Add some minor optimizations.
4457
4458 2005-09-02  Zoltan Varga  <vargaz@gmail.com>
4459
4460         * mini.h: Add prototype for mono_allocate_stack_slots_full.
4461
4462 Thu Sep 1 21:05:26 BST 2005 Paolo Molaro <lupus@ximian.com>
4463
4464         * exceptions-arm.c, mini.c, mini-arm.c, mini-arm.h:
4465         exception handling support.
4466         * mini-arm.c, mini-arm.h: bigendian fixes (partially from a
4467         patch by Brian Koropoff <briank@marakicorp.com>).
4468
4469 Thu Sep 1 10:22:44 EDT 2005 Paolo Molaro <lupus@ximian.com>
4470
4471         * mini.c: revert another 'optimization' which breaks when
4472         items on the eval stack need to be saved at a basic block end
4473         (bug #75940).
4474
4475 Wed Aug 31 17:29:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
4476
4477         * jit-icalls.c: for arrays, ensure we always provide
4478         lower bounds.
4479
4480 2005-08-30  Zoltan Varga  <vargaz@gmail.com>
4481
4482         * mini.c (mono_allocate_stack_slots_full): Fix ia64 build.
4483         
4484         * mini.c (mini_get_inst_for_method): Special case Object:.ctor as well.
4485
4486 2005-08-29  Zoltan Varga  <vargaz@gmail.com>
4487
4488         * mini-ia64.h mini-ia64.c: Implement frame pointer elimination. Keep
4489         arguments in their original register.
4490
4491 2005-08-28  Zoltan Varga  <vargaz@gmail.com>
4492
4493         * mini-ops.h cpu-ia64.md inssel-ia64.brg mini-ia64.c: Optimize
4494         memset/memcpy.
4495
4496         * mini.c (mono_method_to_ir): Disable the MUL->MUL_IMM optimization
4497         when ssapre is enabled.
4498
4499         * inssel-long.brg: Fix bug in previous patch.
4500
4501         * mini-ia64.c mini-ia64.h mini.c inssel-long.brg: Optimize 
4502         multiplication by a constant.
4503
4504 2005-08-27  Zoltan Varga  <vargaz@gmail.com>
4505
4506         * mini-ia64.c (mono_arch_setup_jit_tls_data): Add support for intel
4507         icc.
4508
4509         * tramp-ia64.c (mono_arch_create_trampoline_code): Use st8.spill for
4510         saving registers.
4511
4512 Fri Aug 26 11:09:28 BST 2005 Paolo Molaro <lupus@ximian.com>
4513
4514         * inssel-arm.brg: apply changes tested by Brian Koropoff
4515         <briank@marakicorp.com>.
4516
4517 2005-08-25  Zoltan Varga  <vargaz@gmail.com>
4518
4519         * mini-x86.c (mono_arch_emit_prolog): Fix calling of mono_jit_thread_attach () under windows.
4520         
4521 2005-08-24  Zoltan Varga  <vargaz@gmail.com>
4522
4523         * mini-codegen.c (mono_local_regalloc): Avoid allocating dreg and sreg1/2
4524         to the same register if dreg is just a base register.
4525         (print_ins): Improve printing of membase opcodes.
4526
4527         * inssel-x86.brg: Add optimized ldind(reg) rules.
4528
4529         * mini-x86.c cpu-pentium.md: Changes required to support the new rules.
4530
4531 Wed Aug 24 19:39:36 CEST 2005 Paolo Molaro <lupus@ximian.com>
4532
4533         * mini.c: when running under valgrind, set the stack bottom for
4534         the GC at the actual approximate stack for the app (fixes running
4535         mono with valgrind).
4536
4537 Tue Aug 23 21:38:50 CEST 2005 Paolo Molaro <lupus@ximian.com>
4538
4539         * mini.c: do no break at the first valuetype to init found
4540         (fixes bug #75791).
4541
4542 Tue Aug 23 16:53:21 BST 2005 Paolo Molaro <lupus@ximian.com>
4543
4544         * cpu-arm.md, mini-arm.c: more fixes and LMF support.
4545
4546 Tue Aug 23 15:11:44 CEST 2005 Paolo Molaro <lupus@ximian.com>
4547
4548         * cpu-g4.md: fixed instruction length exposed by the nemerle compiler.
4549
4550 2005-08-23  Zoltan Varga  <vargaz@freemail.hu>
4551
4552         * inssel-amd64.brg inssel-x86.brg: Fix the fcall rules.
4553
4554 2005-08-22  Zoltan Varga  <vargaz@freemail.hu>
4555
4556         * inssel-x86.brg: Fix assert in patch_delegate_trampoline.
4557
4558         * tramp-x86.c (mono_arch_patch_delegate_trampoline): Add some debug
4559         code.
4560
4561         * tramp-amd64.c (mono_arch_patch_delegate_trampoline): Add some debug
4562         code.
4563
4564         * mini.c (optimize_branches): Don't quit after 1000 iterations on large
4565         methods.
4566
4567 Mon Aug 22 19:16:29 BST 2005 Paolo Molaro <lupus@ximian.com>
4568
4569         * tramp-arm.c: allocate less memory for the trampoline and fix typo.
4570
4571 2005-08-22  Zoltan Varga  <vargaz@freemail.hu>
4572
4573         * mini.c (mono_method_to_ir): Remove instructions inserted after a branch
4574         in the tail recursion optimization.
4575
4576         * mini.h helpers.c (mono_disassemble_code): Emit starts of basic blocks as 
4577         debug info into the assembly file.
4578
4579         * iltests.il: Add test for filter regions.
4580
4581         * mini.c (mono_method_to_ir): Fix handling of nested FILTER clauses. Fix
4582         initial stack of filter regions. Fixes #75755.
4583
4584 Mon Aug 22 17:49:16 BST 2005 Paolo Molaro <lupus@ximian.com>
4585
4586         * mini-arm.c, cpu-arm.c: fixes and support for methods with bigger
4587         stack requirements.
4588
4589 2005-08-22  Zoltan Varga  <vargaz@freemail.hu>
4590
4591         * mini.c (mono_create_delegate_trampoline): Fix memory leak. Put back
4592         the check for an already compiled method on non-ia64 platforms.
4593         (mono_create_jump_trampoline): Store the MonoJitInfo structure into the
4594         proper domain.
4595
4596         * mini-x86.h tramp-x86.c: Add support for delegate trampolines.
4597
4598         * inssel-x86.brg: Add some optimized call rules.
4599
4600 2005-08-21  Zoltan Varga  <vargaz@freemail.hu>
4601
4602         * mini.c (mono_create_delegate_trampoline): Do not return an already compiled
4603         method here.
4604
4605         * mini.h mini-trampolines.c: Pass the trampoline argument to 
4606         mono_arch_patch_delegate_trampoline.
4607
4608         * mini-ia64.h mini-ia64.c tramp-ia64.c: Add support for delegate trampolines.
4609
4610         * mini-trampolines.c: Fix build.
4611
4612         * mini-amd64.h: Add delegate trampolines.
4613
4614         * mini.h mini.c mini-trampolines.c tramp-amd64.c: Add delegate trampolines.
4615
4616         * inssel-amd64.brg: Add optimized call rules.
4617         
4618         * mini-ia64.c tramp-ia64.c: Improve instruction scheduling.
4619
4620         * inssel-ia64.brg: Add optimized ldind(reg) rules.
4621
4622 2005-08-20  Zoltan Varga  <vargaz@freemail.hu>
4623
4624         * mini.c (mono_create_class_init_trampoline): Fix bug caused by last
4625         change.
4626
4627         * mini-ia64.c: Remove LMF fixmes.
4628
4629         * mini-ia64.h: Remove most fields from LMF.
4630
4631         * inssel-ia64.brg (stmt): Fix unaligned access errors.
4632
4633         * mini-trampolines.c: Add support for IA64 function descriptors.
4634
4635         * mini.h mini.c jit-icalls.c exceptions-ia64.cdriver.c: Add support
4636         for IA64 function descriptors.
4637
4638 Sat Aug 20 16:51:44 BST 2005 Paolo Molaro <lupus@ximian.com>
4639
4640         * tramp-arm.c: patch the vtable for virtual calls. Added
4641         support code to register/unregister the LMF.
4642         * mini-arm.c, mini-arm.h: warning fixes, fixes, speedups,
4643         more LMF work.
4644
4645 2005-08-19  Dick Porter  <dick@ximian.com>
4646
4647         * mini.c: Use a gsize to store the thread ID, so it can hold a 64
4648         bit value if needed.
4649
4650 2005-08-19  Zoltan Varga  <vargaz@freemail.hu>
4651
4652         * mini.c (mini_get_method): Move handling of wrapper data here.
4653
4654         * mini.c (mono_method_to_ir): Add support for dynamic methods.
4655
4656         * mini.c (mono_method_to_ir): Convert nonvirtual calls to abstract methods into
4657         virtual.
4658
4659         * mini.c (mono_method_to_ir): Emit IR for CEE_NOP as well, so 
4660         bblock->code does not remain empty.
4661
4662 2005-08-17  Zoltan Varga  <vargaz@freemail.hu>
4663
4664         * arrays.cs: Add regression test for #75832.
4665
4666         * inssel-amd64.brg cpu-amd64.md mini-amd64.c: Fix LDELEMA optimization
4667         rules. Fixes #75832.
4668
4669         * mini-ia64.c tramp-ia64.c exceptions-ia64.c: Implement improved
4670         instruction scheduling.
4671
4672 2005-08-12  Zoltan Varga  <vargaz@freemail.hu>
4673
4674         * mini-exceptions.c (ves_icall_get_frame_info): Fix IA64 build.
4675
4676 2005-08-11  Zoltan Varga  <vargaz@freemail.hu>
4677
4678         * mini-exceptions.c mini-x86.h: Move VC stuff into macros in mini-x86.h.
4679
4680         * mini-codegen.c: Fix VC build.
4681
4682         * cpu-pentium.md: Increase length of atomic_exhange_i4.
4683
4684 2005-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4685
4686         * mini.h: fix signature for mono_register_opcode_emulation.
4687
4688 2005-08-09  Zoltan Varga  <vargaz@freemail.hu>
4689
4690         * mini.c: Get rid of most of the helper_sig_... constants using
4691         mono_create_icall_signature ().
4692
4693 2005-08-08  Zoltan Varga  <vargaz@freemail.hu>
4694
4695         * jit-icalls.c (helper_ldstr): New helper function.
4696
4697         * mini.c (get_basic_blocks): Set out_of_line for bblocks containing a throw.
4698
4699         * mini.c (mono_method_to_ir): If an LDSTR instruction is in a bblock with a
4700         throw, load the string using a helper call instead of creating a string object.
4701
4702         * aot.c: Update after LDSTR changes.
4703
4704         * mini.h: Bump AOT file version.
4705         
4706         * aot.c: Save class size info into the AOT file. Print more statistics during
4707         compilation.
4708
4709         * mini.h: Bump AOT file version.
4710
4711         * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix
4712         ordering of disasm cases. Fixes #74957.
4713
4714 Thu Aug 4 19:47:24 BST 2005 Paolo Molaro <lupus@ximian.com>
4715
4716         * mini-ops.h, mini-arch.h, inssel.brg, mini.c, mini.h,
4717         jit-icalls.c, mini-codegen.c, Makefile.am: changes in
4718         the generic code needed for the ARM port.
4719
4720 Thu Aug 4 19:42:54 BST 2005 Paolo Molaro <lupus@ximian.com>
4721
4722         * exceptions-arm.c, tramp-arm.c, mini-arm.c, mini-arm.h, cpu-arm.md,
4723         inssel-arm.brg: more ARM features and fixes.
4724
4725 Mon Aug 1 18:37:38 BST 2005 Paolo Molaro <lupus@ximian.com>
4726
4727         * tramp-arm.c, mini-arm.c, cpu-arm.md, inssel-arm.brg: more
4728         ARM port work in progress.
4729
4730 2005-07-30  Zoltan Varga  <vargaz@freemail.hu>
4731
4732         * mini-ia64.c (mono_arch_call_opcode): Ongoing IA64 work.
4733
4734         * mini-exceptions.c mini-ia64.h: Ongoing IA64 work.
4735
4736         * mini-ia64.c (ia64_emit_bundle): Ongoing IA64 work.
4737
4738         * inssel.brg (mini_emit_memset): Add support for unaligned access.
4739
4740         * *-ia64.*: Ongoing IA64 work.
4741         
4742         * mini-ia64.c exceptions-ia64.c: Ongoing IA64 work.
4743
4744 2005-07-28  Zoltan Varga  <vargaz@freemail.hu>
4745
4746         * TODO: Remove out-of-data todo stuff.
4747
4748         * mini.h mini.c (mono_create_jit_trampoline_from_token): Remove some
4749         dead code.
4750
4751         * aot.c: Save/load MonoCachedClassInfo->has_nested_classes.
4752
4753         * mini.h: Bump corlib version.
4754
4755 2005-07-27  Martin Baulig  <martin@ximian.com>
4756
4757         * mini-codegen.c
4758         (create_copy_ins): Added `const unsigned char *ip' argument; set
4759         `copy->cil_code' from it.
4760
4761 2005-07-27  Martin Baulig  <martin@ximian.com>
4762
4763         * mini-exceptions.c (mono_handle_exception): Don't call
4764         mono_debugger_handle_exception() for filters.
4765
4766 2005-07-27  Zoltan Varga  <vargaz@freemail.hu>
4767
4768         * mini-trampolines.c (mono_aot_trampoline): Handle AppDomain:InvokeInDomain
4769         as well.
4770
4771 2005-07-26  Martin Baulig  <martin@ximian.com>
4772
4773         Committing a patch from Michal Moskal <michal.moskal@gmail.com>.
4774
4775         * mini.c (mono_method_to_ir): In `CEE_CALLI', only use
4776         helper_compile_generic_method() if the method is actually virtual
4777         and non-final.
4778
4779 2005-07-26  Martin Baulig  <martin@ximian.com>
4780
4781         * mini.c
4782         (trampoline_code): Renamed to `mono_trampoline_code' and made it
4783         public; this is now accessed directly by the debugger.
4784         (mono_generic_trampoline_code): Removed.
4785
4786         * debug-mini.c
4787         (mono_debug_init_method): Also add interncalls and wrappers.
4788
4789 2005-07-23  Zoltan Varga  <vargaz@freemail.hu>
4790
4791         * mini-ia64.c mini-ia64.h: Add support for tracing/profiling.
4792
4793 2005-07-22  Zoltan Varga  <vargaz@freemail.hu>
4794
4795         * aot.c (mono_aot_get_method_from_token): Fix a potential crash here.
4796
4797 2005-07-21  Zoltan Varga  <vargaz@freemail.hu>
4798
4799         * aot.c (load_patch_info): Fix handling of stfld_remote wrapper.
4800
4801 2005-07-20  Zoltan Varga  <vargaz@freemail.hu>
4802
4803         * mini-amd64.c (mono_arch_setup_jit_tls_data): Use the nice way of
4804         getting TLS offsets on AMD64 too.
4805
4806 2005-07-20  KornĂ©l Pál <kornelpal@hotmail.com>
4807
4808         * driver.c: Detach console when executing IMAGE_SUBSYSTEM_WINDOWS_GUI on win32
4809
4810 Wed Jul 20 18:05:19 BST 2005 Paolo Molaro <lupus@ximian.com>
4811
4812         * exceptions-arm.c, mini-arm.c, tramp-arm.c, cpu-arm.md,
4813         inssel-arm.brg, mini-arm.h: ARM port work in progress.
4814
4815 2005-07-20  Zoltan Varga  <vargaz@freemail.hu>
4816
4817         * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix build.
4818
4819         * mini.h mini.c mini-*.h tramp-*.c: Move more cross platform trampoline code
4820         to mini.c.
4821
4822         * mini-sparc.c (mono_arch_get_vcall_slot_addr): Call 
4823         mono_sparc_is_virtual_call ().
4824         
4825         * mini-sparc.c (mono_arch_get_vcall_slot_addr): Fix warning.
4826
4827         * tramp-sparc.c (mono_arch_create_trampoline_code): Fix order of
4828         trampoline parameters.
4829
4830         * mini-sparc.c (mono_arch_get_vcall_slot_addr): Fix signature.
4831         
4832         * mini-sparc.c (mono_arch_get_vcall_slot_addr): Rename this
4833         to mono_arch_get_vcall_slot_addr.
4834
4835         * Makefile.am tramp-sparc.c: Update the sparc port to use the generic
4836         trampoline code.
4837
4838         * *-sparc.*: Merge the mini-xp-regalloc branch for sparc.
4839
4840 2005-07-19  Zoltan Varga  <vargaz@freemail.hu>
4841
4842         * mini-ia64.h mini-ia64.c: Finish pinvoke support.
4843
4844 2005-07-19  Martin Baulig  <martin@ximian.com>
4845
4846         * exceptions-amd64.c (throw_exception): Call
4847         mono_debugger_throw_exception() here like we're doing it on i386.
4848
4849 2005-07-19  Zoltan Varga  <vargaz@freemail.hu>
4850
4851         * mini-ia64.c: Add optimized TLS access support.
4852
4853 2005-07-18  Zoltan Varga  <vargaz@freemail.hu>
4854
4855         * mini-exceptions.c: Ongoing IA64 work.
4856
4857         * mini-ia64.c inssel-long.brg: Ongoing IA64 work.
4858
4859         * mini.c: Use the default optimization set when embedding. Fixes
4860         #75194.
4861
4862 2005-07-11  Zoltan Varga  <vargaz@freemail.hu>
4863
4864         * tramp-amd64.c tramp-ia64.c Makefile.am: Move arch independent parts 
4865         of trampolines to a separate file.
4866
4867         * mini-trampolines.c: New file.
4868
4869         * mini.h tramp-x86.c: Move arch independent parts of trampolines to a 
4870         separate file.
4871         
4872         * tramp-x86.c: Reorganize the trampoline code to be similar to the 
4873         amd64/ia64 code.
4874
4875         * mini-codegen.c: Fix cygwin build.
4876
4877 2005-07-10  Zoltan Varga  <vargaz@freemail.hu>
4878
4879         * mini.c: Add some minor changes needed by the IA64 port.
4880
4881         * *-ia64.*: Ongoing IA64 work.
4882
4883 2005-07-09  Zoltan Varga  <vargaz@freemail.hu>
4884
4885         * tramp-amd64.c mini-amd64.c: Update after latest AOT changes. Split 
4886         trampolines into arch-independent and arch-dependent parts.
4887
4888         * mini-amd64.c (mono_arch_lowering_pass): Fix store_membase_imm -> store_membase_reg rule.
4889
4890 2005-07-08  Zoltan Varga  <vargaz@freemail.hu>
4891
4892         * cpu-amd64.md: Merge the xp-regalloc-branch for amd64.
4893
4894         * mini-ops.h mini-amd64.h mini-amd64.c inssel-amd64.brg Makefile.am: Merge
4895         the xp-regalloc-branch for amd64.
4896
4897         * mini-x86.h mini-x86.c cpu-pentium.md Makefile.am: Merge the
4898         xp-regalloc-branch for x86.
4899
4900 2005-07-07  Zoltan Varga  <vargaz@freemail.hu>
4901
4902         * inssel.brg (OP_THROW_OR_NULL): Allways rethrow the abort exception.
4903
4904 2005-07-06  Martin Baulig  <martin@ximian.com>
4905
4906         * mini.c
4907         (mono_jit_compile_method_inner): Call mono_get_inflated_method().
4908         (mono_jit_runtime_invoke): Likewise.
4909
4910 2005-07-05  Zoltan Varga  <vargaz@freemail.hu>
4911
4912         * aot.c (mono_compile_assembly): Allocate the GOT in the .bss segment
4913         on x86 too.
4914         
4915         * aot.c: Add new mono_aot_get_method_from_token () function to load AOT methods
4916         without loading their metadata. Reorganize the file format so exception handling+
4917         debug info is kept separate from normal method info. Create MonoJitInfo 
4918         structures for methods lazily.
4919
4920         * tramp-x86.c (x86_aot_trampoline): Use the new from_token method to avoid
4921         loading metadata.
4922         (x86_class_init_trampoline): Patch AOT class init trampolines too.
4923
4924         * mini.c (mini_init): Install the new mono_aot_find_jit_info hook.
4925
4926         * mini.c (mono_method_to_ir): Reduce the number of class init trampoline calls
4927         in AOT code.
4928
4929         * mini.h: Bump AOT file version.
4930
4931 2005-07-04  Zoltan Varga  <vargaz@freemail.hu>
4932
4933         * mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.
4934
4935 2005-07-01  Raja R Harinath  <rharinath@novell.com>
4936
4937         * Makefile.am (check-local): Call semdel-wrapper.
4938
4939 2005-06-29  Zoltan Varga  <vargaz@freemail.hu>
4940
4941         * mini-x86.c: Revert the last change as it seems to break the build..
4942
4943 2005-06-28  Zoltan Varga  <vargaz@freemail.hu>
4944
4945         * mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.
4946         
4947         * mini-x86.c (mono_arch_cpu_init): Fix setting of fp precision in the VC build.
4948
4949 2005-06-27  Ben Maurer  <bmaurer@ximian.com>
4950
4951         * mini.c (NEW_AOTCONST): make sure to call mono_get_got_var
4952         outside of the macro, so strange stuff doesn't happen with gcc4
4953         (NEW_AOTCONST_TOKEN): Likewise.
4954
4955 2005-06-28  Martin Baulig  <martin@ximian.com>
4956
4957         * mini.c (mini_class_is_system_array): New static method; use this
4958         instead of `klass->parent == mono_defaults.array_class' everywhere
4959         since this also works for the new generic array class.
4960
4961 2005-06-26  Ben Maurer  <bmaurer@ximian.com>
4962
4963         * inssel.brg: Remove warnings.
4964
4965 2005-06-24  Zoltan Varga  <vargaz@freemail.hu>
4966
4967         * mini-ia64.c: Ongoing IA64 work.
4968
4969         * basic-float.cs: Add float->i1 conversion test.
4970
4971         * iltests.il: Add conv.u4 test.
4972
4973 2005-06-23  Zoltan Varga  <vargaz@freemail.hu>
4974
4975         * inssel-long.brg: Fix bug caused by last change.
4976
4977 2005-06-23  Geoff Norton  <gnorton@customerdna.com>
4978
4979         * mini-x86.h: Add __APPLE__ to the SC_* redefines with the other 
4980         BSDs.  Allows the x86 JIT to work on OSX86
4981
4982 2005-06-22  Zoltan Varga  <vargaz@freemail.hu>
4983
4984         * inssel-long.brg: Use OP_LSHR_UN_IMM instead of OP_SHR_UN_IMM in
4985         u4->i8 conversion.
4986
4987         * mini-ia64.c: Ongoing IA64 work.
4988
4989 2005-06-19  Zoltan Varga  <vargaz@freemail.hu>
4990
4991         * mini-ia64.c: Ongoing IA64 work.
4992
4993         * driver.c: Clean up jit_code_hash as well when using --regression.
4994
4995         * inssel-long.brg: Fix long->i4/u4 conversion rules.
4996
4997         * basic-long.cs: Add tests for long->u4 conversion.
4998
4999 2005-06-18  Ben Maurer  <bmaurer@ximian.com>
5000
5001         * mini.c: Take mono_get_domainvar out of macros. This makes sure
5002         that we do not depend on undefined C behavior: the order stuff
5003         gets evaluated within an expression. Fixes mono when compiled on
5004         GCC 4.
5005
5006 2005-06-18  Zoltan Varga  <vargaz@freemail.hu>
5007
5008         * *-ia64.*: Ongoing IA64 work.
5009
5010         * aot.c: Lower memory usage while loading AOT methods.
5011
5012         * tramp-x86.c: Avoid allocating+freeing MonoJitInfo structures.
5013
5014         * mini.h: Bump AOT file format version.
5015
5016 2005-06-17  Zoltan Varga  <vargaz@freemail.hu>
5017
5018         * mini.c (mono_method_to_ir): Allow STACK_PTR as input to SWITCH.
5019
5020 2005-06-16  Sebastien Pouliot  <sebastien@ximian.com>
5021
5022         * declsec.c: Fixed APTC to check for FullTrust on caller assembly (and
5023         not on callee assembly). Fixed some comments.
5024
5025 2005-06-16  Zoltan Varga  <vargaz@freemail.hu>
5026
5027         * aot.c (mono_compile_assembly): Mark the "methods" symbol as a function so
5028         it gets proper disassembly.
5029         (emit_method_info): Remove some dead code.
5030
5031         * mini.c (mini_method_compile): Allways allocate the GOT var in
5032         mono_method_to_ir for emulating opcodes.
5033
5034 2005-06-13  Zoltan Varga  <vargaz@freemail.hu>
5035
5036         * mini.c (mono_jit_free_method): Remove the method from the JitInfo table
5037         before freeing the code memory. Fixes #74990.
5038
5039         * objects.cs: Add regression test for #74992.
5040
5041         * liveness.c: Extend live ranges of arguments to the beginning of the
5042         method. Fixes #74992.
5043
5044         * exceptions-ia64.c mini-ia64.h: Modify ip during exception handling
5045         so it points into the faulting instruction.
5046
5047 2005-06-12  Zoltan Varga  <vargaz@freemail.hu>
5048
5049         * jit-icalls.c (mono_imul_ovf): Add exception handling.
5050
5051         * *-ia64.*: Ongoing IA64 work.
5052
5053         * mini.c (mini_init): Fix signature of mono_delegate_ctor.
5054
5055 2005-06-11  Zoltan Varga  <vargaz@freemail.hu>
5056
5057         * mini-ia64.h exceptions-ia64.c: Ongoing IA64 work.
5058
5059         * *-ia64.*: Ongoing IA64 work.
5060
5061 2005-06-10  Zoltan Varga  <vargaz@freemail.hu>
5062
5063         * basic-long.cs: Add tests for add/sub.ovf.
5064
5065         * basic.cs: Add tests for sub.ovf.
5066
5067         * *-ia64.*: Ongoing IA64 work.
5068
5069 2005-06-09  Zoltan Varga  <vargaz@freemail.hu>
5070
5071         * *-ia64.*: Ongoing IA64 work.
5072
5073         * basic.cs: Add conv.ovf.i4.un test.
5074
5075 2005-06-09  Massimiliano Mantione  <massi@ximian.com>
5076
5077         * mini.c: (remove_block_if_useless) Fixed bug 75061.
5078         
5079 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5080
5081         * mini.c: no SIGUSR2 on windows. Remove it for PLATFORM_WIN32.
5082
5083 2005-06-07  Zoltan Varga  <vargaz@freemail.hu>
5084
5085         * *-ia64.*: Ongoing IA64 work.
5086
5087 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5088
5089         * trace.[ch]:
5090         * mini.c: added the ability to toggle trace on/off using SIGUSR2.
5091
5092 2005-06-04  Zoltan Varga  <vargaz@freemail.hu>
5093
5094         * mini-ia64.c mini-ia64.h: Fix cleanup of memory stack.
5095
5096 2005-06-03  Zoltan Varga  <vargaz@freemail.hu>
5097
5098         * mini-amd64.c (emit_call): Fix yet another bug in the near call optimization.
5099
5100         * mini-amd64.c (amd64_patch): Add an assert to check that the destination
5101         of a call is callable by a near call.
5102
5103 2005-05-31  Zoltan Varga  <vargaz@freemail.hu>
5104
5105         * mini-ia64.c: Ongoing IA64 work.
5106
5107 2005-05-29  Zoltan Varga  <vargaz@freemail.hu>
5108
5109         * genmdesc.c: Make the generated array non-static.
5110
5111         * inssel-long.brg: Fix LSHR_IMM rule.
5112
5113         * *-ia64.*: Ongoing IA64 work.
5114
5115         * *-ia64.*: Ongoing IA64 work.
5116
5117 2005-05-28  Zoltan Varga  <vargaz@freemail.hu>
5118
5119         * *-ia64.*: Ongoing IA64 work.
5120
5121         * *-ia64.*: Ongoing IA64 work.
5122         
5123         * mini-ia64.c: Ongoing IA64 work.
5124
5125         * *-ia64.* jit-icalls.c mini-codegen.c: Ongoing IA64 work.
5126
5127 2005-05-28  Zoltan Varga  <vargaz@freemail.hu>
5128
5129         * objects.cs basic-calls.cs: Move some tests to objects.cs.
5130         
5131         * objects.cs basic-long.cs: Move some tests to objects.cs.
5132
5133 2005-05-26  Zoltan Varga  <vargaz@freemail.hu>
5134
5135         * *-ia64.*: Ongoing IA64 work.
5136
5137         * iltests.il: Add a new test.
5138
5139         * mini.c (mono_method_to_ir): Initialize valuetypes when created using
5140         newobj. Fixes #75042.
5141
5142 2005-05-22  Zoltan Varga  <vargaz@freemail.hu>
5143
5144         * *-ia64.*: Ongoing IA64 work.
5145         
5146         * *-ia64.*: Ongoing IA64 work.
5147         
5148         * *-ia64.*: Ongoing IA64 work.
5149
5150         * basic.cs objects.cs: Move tests accessing static variables as well.
5151
5152         * basic.cs objects.cs: Move test_0_pin_string to objects.cs.
5153
5154 2005-05-21  Zoltan Varga  <vargaz@freemail.hu>
5155
5156         * mini.c (SIG_HANDLER_SIGNATURE): Fix warning.
5157
5158         * driver.c: Always print failed tests.
5159
5160         * mini-codegen.c: Use cfg->frame_reg instead of a macro for the
5161         frame pointer.
5162
5163         * *ia64*: Ongoing IA64 work.
5164
5165 2005-05-20  Zoltan Varga  <vargaz@freemail.hu>
5166
5167         * basic.cs: Add tests for add.ovf. Fix warnings.
5168
5169 2005-05-18  Miguel de Icaza  <miguel@novell.com>
5170
5171         * driver.c (mono_main): Avoid crash if no argument is passed to
5172         --break;  Do not use g_error, but f_printf.   And fix all other
5173         ocurrences of the same crash.
5174
5175 2005-05-17  Zoltan Varga  <vargaz@freemail.hu>
5176
5177         * mini.h mini.c: Generalize the existing uses of the MONO_DEBUG env variable
5178         and add a new one: aborting when a SIGSEGV is raised while in unmanaged code.
5179         Fixes #74742.
5180
5181 2005-05-14  Zoltan Varga  <vargaz@freemail.hu>
5182
5183         * *-ia64.*: Add beginnings of IA64 backend.
5184
5185         * Makefile.am mini-arch.h mini-codegen.c: Add IA64 support.     
5186
5187 2005-05-13  Zoltan Varga  <vargaz@freemail.hu>
5188
5189         * inssel-long.brg: Add missing ulong->{i1, i2} checked conversions.
5190         Fixes #74925.
5191
5192         * basic-long.cs exceptions.cs: Add new tests. Fix some warnings.
5193
5194         * mini-amd64.c: Fix a warning.
5195
5196 2005-05-10  Zoltan Varga  <vargaz@freemail.hu>
5197
5198         * mini-amd64.c (mono_arch_output_basic_block): Fix stack space leakage
5199         in float_neg. Fixes #74897.
5200
5201         * mini-amd64.c (emit_call): Fix another near call bug.
5202
5203 2005-05-06  Sebastien Pouliot  <sebastien@ximian.com>
5204
5205         * declsec.c: Keep the appdomain information in the structure. Added a 
5206         missing "return FALSE" for Unmanaged if FullTrust is set (or else the
5207         value gets overwritten).
5208         * declsec.h: Set the default MonoArray for the the stack to 6. Added
5209         an MonoAppDomain member to MonoSecurityFrame.
5210         * mini-exceptions.c: Do not use a glist to keep GC allocated objects
5211         used in the stack walk. Now use a MonoArray which grow (double) when
5212         it gets full.
5213
5214 2005-05-05  Lluis Sanchez Gual  <lluis@novell.com>
5215
5216         * mini.c: Re-enabled runtime cleanup, since running threads should
5217         now properly stop when exiting.
5218
5219 2005-05-05  Zoltan Varga  <vargaz@freemail.hu>
5220
5221         * mini-codegen.c: New file contaning the arch-independent local
5222         register allocator. Not used by any architectures yet.
5223
5224         * mini.h linear-scan.c: Merge some changes from the 
5225         mini-xp-local-regalloc branch.
5226
5227 2005-04-28  Zoltan Varga  <vargaz@freemail.hu>
5228
5229         * mini-amd64.c (emit_call): Fix calls to native functions when the
5230         runtime is compiled as a shared library. Fixes #74756.
5231
5232         * mini.c (mono_method_to_ir): Assert if ldsfld and friends are used
5233         on a literal field. Fixes #74751.
5234
5235 2005-04-25  Raja R Harinath  <rharinath@novell.com>
5236
5237         * Makefile.am (RUNTIME): Add MONO_CFG_DIR.
5238
5239 2005-04-23  Zoltan Varga  <vargaz@freemail.hu>
5240
5241         * objects.cs: Add missing null casting test.
5242
5243 2005-04-22  Zoltan Varga  <vargaz@freemail.hu>
5244
5245         * mini-exceptions.c (mono_find_jit_info): Fix native offset calculation
5246         in wrapper methods. Also rename 'address' variable to 'offset'.
5247
5248 2005-04-20  Zoltan Varga  <vargaz@freemail.hu>
5249
5250         * mini.c debug-mini.c aot.c tramp-x86.c driver.c: Fix some gcc 4.0
5251         warnings.
5252         
5253         * Makefile.am (MCS): Use -unsafe instead of --unsafe.
5254
5255         * aot.c: Applied patch from "The Software Team" <software@solmersa.com>. Make AOT compilation
5256         work on windows.
5257
5258 Mon Apr 18 16:20:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
5259
5260         * exceptions-ppc.c: update code to handle stack traces (fixes bug #74452).
5261
5262 2005-04-17  Zoltan Varga  <vargaz@freemail.hu>
5263
5264         * mini-x86.c (mono_emit_stack_alloc): Initialize the whole allocated area not
5265         just the last bytes.
5266
5267 2005-04-17  Zoltan Varga  <vargaz@freemail.hu>
5268
5269         * aot.c (mono_compile_assembly): Fix warning.
5270
5271         * mini-exceptions.c (ves_icall_get_frame_info): Fix bug introduced
5272         by the _MSC_VER stuff.
5273
5274 2005-04-16  Zoltan Varga  <vargaz@freemail.hu>
5275
5276         * inssel-long.brg: Fix #74588.
5277
5278         * cpu-amd64.md: Fix #74591.
5279
5280         * iltests.il: Add new regression tests.
5281
5282 2005-04-13  Zoltan Varga  <vargaz@freemail.hu>
5283
5284         * trace.c (mono_trace_enter_method): Print enums as an int, not as a
5285         valuetype.
5286
5287 2005-04-11  Zoltan Varga  <vargaz@freemail.hu>
5288
5289         * mini-x86.c (setup_stack): Unconditionally call pthread_attr_init ().
5290
5291         * exceptions-x86.c mini-x86.h mini-x86.c: Applied some freebsd patches 
5292         from Bill Middleton <flashdict@gmail.com>.
5293
5294 2005-04-10  Zoltan Varga  <vargaz@freemail.hu>
5295
5296         * arrays.cs: Add new regression test. Fix warnings.
5297
5298 2005-04-09  Zoltan Varga  <vargaz@freemail.hu>
5299
5300         * mini-amd64.c (mono_arch_output_basic_block): Fix stack alignment
5301         and leakage in CKFINITE.
5302
5303         * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Change
5304         this to a null op since it is called on amd64 too.
5305
5306         * exceptions-amd64.c (get_throw_trampoline): Align stack.
5307
5308         * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Remove
5309         body since this is not used on amd64.
5310         
5311         * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Remove duplicate define.
5312
5313         * mini-amd64.c: Remove obsolete fixmes.
5314
5315         * mini.c (print_method_from_ip): Fix debugging support.
5316
5317 2005-2-1  Massimiliano Mantione  <massi@ximian.com>
5318
5319         * ssapre.c: Fix a subtle bug about availability, and limit SSAPRE
5320         so that expressions that don't give much gain are not reduced.
5321         * ssapre.h: Likewise.
5322
5323 2005-04-04  Zoltan Varga  <vargaz@freemail.hu>
5324
5325         * exceptions-x86.c (mono_arch_find_jit_info): Remove last SC_EBP reference.
5326
5327         * mini-x86.c (mono_emit_stack_alloc): Fix localloc under windows.
5328
5329         * mini-x86.h exceptions-x86.c: Hopefully fix compilation on *BSD.
5330
5331 2005-04-01  Zoltan Varga  <vargaz@freemail.hu>
5332
5333         * mini-sparc.c mini-sparc.h: Add asserts when running with sigaltstack.
5334
5335         * exceptions-x86.c (mono_arch_monoctx_to_sigctx): Fix cygwin build.
5336
5337 2005-03-31  Zoltan Varga  <vargaz@freemail.hu>
5338
5339         * mini-x86.c: If sigaltstack support is enabled, perform win32 style
5340         stack touching.
5341
5342         * mini.h (mono_arch_sigctx_to_monoctx): New arch-specific function.
5343
5344         * mini.h (mono_arch_monoctx_to_sigctx): New arch-specific function.
5345
5346         * mini.c: sigaltstack support requires MONO_ARCH_USE_SIGACTION.
5347
5348         * mini-x86.h mini-x86.c exceptions-x86.c: Add support for 
5349         MONO_ARCH_USE_SIGACTION. Fixes #74252.
5350
5351         * mini-x86.h: Enable MONO_ARCH_USE_SIGACTION on linux.
5352
5353         * mini-x86.c: Fix up stack overflow handling.   
5354
5355         * exceptions.cs: Add new regression test.
5356
5357 2005-03-30  Zoltan Varga  <vargaz@freemail.hu>
5358
5359         * mini-x86.c (mono_arch_emit_prolog): Adjust stack after calls to
5360         mono_jit_thread_attach.
5361
5362         * mini.c (mono_method_to_ir): Verify called method is not abstract.
5363
5364 2005-03-29  Zoltan Varga  <vargaz@freemail.hu>
5365
5366         * mini.c (mono_method_to_ir): Applied Ben's patch from bug #61441 to
5367         avoid calling constructors using callvirt.
5368
5369         * inssel.brg: Fix #74073.
5370
5371 2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>
5372
5373         * aot.c, mini.h: Added mono-compiler.h header to allow/ease 
5374         compilation with non-GCC compilers.
5375         * mini-exceptions.c, mini-x86.c|h: Patches to make compilation of mono
5376         possible using VS.NET. Adapted from the work of J Lothian (for VC6).
5377
5378 Tue Mar 29 11:43:01 CEST 2005 Paolo Molaro <lupus@ximian.com>
5379
5380         * inssel.brg, arrays.cs: fix long standing 64 bit issue in access to
5381         klass->interface_offsets (will likely fix bug#74073).
5382
5383 2005-03-29  Zoltan Varga  <vargaz@freemail.hu>
5384
5385         * mini-amd64.c (mono_arch_is_int_overflow): Fix rex handling.
5386
5387 2005-03-28  Zoltan Varga  <vargaz@freemail.hu>
5388
5389         * mini-amd64.c (mono_arch_output_basic_block): Fix order of parameters
5390         to amd64_div_reg_size ().
5391         
5392         * mini-amd64.c (mono_arch_emit_exceptions): Emit a near call here too.
5393
5394 2005-03-27  Zoltan Varga  <vargaz@freemail.hu>
5395
5396         * cpu-amd64.md (store_membase_reg): Fix length of storer8 opcodes.
5397
5398 2005-03-24  Zoltan Varga  <vargaz@freemail.hu>
5399
5400         * driver.c: Turn off automatic command line globbing under windows. Fixes #73763.
5401
5402 2005-03-24  Zoltan Varga  <vargaz@freemail.hu>
5403
5404         * mini.c (mono_method_to_ir): Remove debugging stuff left in by mistake.
5405         
5406         * mini.c (mono_precompile_assembly): Load and precompile referenced
5407         assemblies as well. Fixes #74015.
5408
5409 2005-03-23  Zoltan Varga  <vargaz@freemail.hu>
5410
5411         * cpu-amd64.md (sin): Fix up maximum lengths of some opcodes.
5412
5413 2005-03-23  Sebastien Pouliot  <sebastien@ximian.com>
5414
5415         * declsec.c: Skip linkdemand checks for intra-corlib calls. This skips
5416         a lot of checks and (anyway) permissions cannot work until corlib is 
5417         loaded.
5418
5419 Wed Mar 23 14:29:49 CET 2005 Paolo Molaro <lupus@ximian.com>
5420
5421         * mini-ppc.c: fixed ABI issue on sysv/ppc.
5422
5423 Tue Mar 22 19:03:17 CET 2005 Paolo Molaro <lupus@ximian.com>
5424
5425         * tramp-ppc.c, exceptions-ppc.c: added missing icache flush
5426         calls (fixes bug#72824).
5427
5428 Tue Mar 22 16:28:48 CET 2005 Paolo Molaro <lupus@ximian.com>
5429
5430         * mini.c: fix tail recursion elimination (see test in bug#73936).
5431
5432 2005-03-21  Zoltan Varga  <vargaz@freemail.hu>
5433
5434         * mini-amd64.c (mono_arch_output_basic_block): Add inline versions of
5435         some fp functions in sse2 mode.
5436
5437 2005-03-20  Zoltan Varga  <vargaz@freemail.hu>
5438
5439         * mini-x86.c (emit_tls_get): Move tls handling into a separate helper function.
5440
5441 2005-03-19  Zoltan Varga  <vargaz@freemail.hu>
5442
5443         * mini.h mini.c: Add mono_get_jit_tls_key ().
5444
5445         * mini-x86.c: Enable fast TLS support on windows.
5446
5447 2005-03-17  Sebastien Pouliot  <sebastien@ximian.com>
5448
5449         * declsec.c: Renamed aptc to allowpartiallytrustedcallers.
5450         * mini.c: Check for p/invoke method when generating code. If a
5451         p/invoke method, or it's class, isn't decorated with [Suppress
5452         UnmanagedCodeSecurity] then generate code to call System.Security.
5453         UnmanagedDemand (only if the security manager is active).
5454
5455 2005-03-16  Zoltan Varga  <vargaz@freemail.hu>
5456
5457         * tramp-amd64.c (create_specific_trampoline): Revert parts of the 
5458         last change as it seems to cause strange crashes.
5459         
5460 Wed Mar 16 16:24:11 CET 2005 Paolo Molaro <lupus@ximian.com>
5461
5462         * *.c: handle unsafe function pointers where needed.
5463
5464 2005-03-16  Zoltan Varga  <vargaz@freemail.hu>
5465
5466         * mini.c (mono_jit_free_method): Remove the fixme too.
5467
5468 2005-03-15  Miguel de Icaza  <miguel@novell.com>
5469
5470         * mini.c: As discussed, make the code actually free the delegate
5471         thunk now, to enable the debugging of delegate problems, use
5472         MONO_DEBUG=1 when running Mono. 
5473
5474         This takes also care of parts of the leaks as seen by Joe.
5475
5476 2005-03-15  Zoltan Varga  <vargaz@freemail.hu>
5477
5478         * mini-amd64.c (mono_arch_setup_jit_tls_data): Enable 
5479         thread_tls_offset calculation.
5480
5481 2005-03-14  Sebastien Pouliot  <sebastien@ximian.com>
5482
5483         * declsec.c: Reworked linkdemand checks for icall. The previous code
5484         was using the declaration code (untrusted) and didn't work as expected
5485         with the CLR 2.0. We're now more compatible with 2.0 than 1.x for this
5486         specific case.
5487
5488 2005-03-13  Zoltan Varga  <vargaz@freemail.hu>
5489
5490         * iltests.il: Add new localloc test.
5491
5492         * mini-amd64.c: Handle large stack allocations the same way as on
5493         windows if stack overflow handling is working.
5494         
5495         * mini-amd64.c: Allocate the signal stack using mmap.
5496
5497         * mini.c (sigsegv_signal_handler): Fix reading of context.
5498
5499         * mini-exceptions.c: Fix up stack overflow handling.
5500
5501         * mini-amd64.h mini-amd64.c: Fix up stack overflow handling.
5502
5503         * tramp-amd64.c (create_specific_trampoline): Optimize trampoline size.
5504
5505         * exceptions-amd64.c (mono_amd64_exceptions_init): Remove this.
5506
5507         * mini.h mini.c tramp-*.c: Move common trampoline code to mini.c.
5508
5509         * mini-x86.h mini-x86.c mini-amd64.h mini-amd64.c: Get rid of the
5510         tramp_init functions as they are no longer needed.
5511
5512 2005-03-12  Zoltan Varga  <vargaz@freemail.hu>
5513
5514         * tramp-amd64.c (mono_amd64_tramp_init): Fix typo.
5515         
5516         * tramp-amd64.c (mono_amd64_tramp_init): Init AOT trampoline as well.
5517
5518         * mini-amd64.h mini-amd64.c (mono_amd64_exceptions_init): Remove this.
5519         
5520         * mini.c mini-*.h: Remove OUT_OF_LINE_BBLOCK defines since all arches
5521         support that now.
5522
5523         * mini-ops.h: Add OP_LMUL_IMM.
5524
5525         * mini.c jit-icalls.cmini-amd64.h mini-amd64.c cpu-amd64.md: Implement
5526         long mul/div opcodes as intrinsic.
5527
5528         * mini-amd64.c (emit_call): Handle the case when the callee might be
5529         an AOT method.
5530
5531 2005-03-11  Zoltan Varga  <vargaz@freemail.hu>
5532
5533         * mini-amd64.c (mono_arch_get_vcall_slot_addr): Reorder cases to be
5534         extra safe.
5535         
5536         * mini-amd64.c (mono_arch_get_vcall_slot_addr): Fix ordering of cases.
5537
5538         * aot.c (mono_aot_load_method): Get rid of bogus make_writable call.
5539
5540 2005-03-09  Ben Maurer  <bmaurer@ximian.com>
5541
5542         * mini.c (mono_codegen): Don't leak here, to help people running
5543         monogrind.
5544
5545 2005-03-08  Zoltan Varga  <vargaz@freemail.hu>
5546
5547         * mini-amd64.c (mono_arch_output_basic_block): Fix int->float 
5548         conversions in sse2 mode.
5549
5550         * basic-float.cs: Add regression test.
5551         
5552         * mini-amd64.c: Reenable sse2.
5553
5554 2005-03-07  Zoltan Varga  <vargaz@freemail.hu>
5555
5556         * mini-amd64.c: Disable sse2 until some regressions are fixed.
5557
5558 2005-03-07      Joerg Rosenkranz <joergr@voelcker.com>
5559
5560         * driver.c: Copyright text should include 2005.
5561         
5562 2005-03-07  Zoltan Varga  <vargaz@freemail.hu>
5563
5564         * cpu-amd64.md (load_membase): Fix more max lengths.
5565
5566 2005-03-06  Zoltan Varga  <vargaz@freemail.hu>
5567
5568         * cpu-amd64.md (load_membase): Fix max length.
5569
5570         * mini-ops.h: Add OP_F<xx>_MEMBASE opcodes.
5571
5572         * inssel.brg: Add MONO_EMIT_BIALU_MEMBASE macro.
5573
5574         * cpu-amd64.md inssel-amd64.brg mini-amd64.h mini-amd64.brg: Finish SSE2
5575         support and enable it by default. Also add OP_F<xxx>_MEMBASE opcodes.
5576
5577         * basic-float.cs: Add rounding regression test.
5578
5579         * mini-amd64.c (INST_IGNORES_CFLAGS): Add more instructions.
5580
5581 2005-03-04  Neale Ferguson <NealeFerguson@earthlink.net>
5582
5583         * inssel-s390.brg, mini-s390.c: Add support for passing/returning small
5584         structures in registers for pinvoke wrappers.
5585
5586 2005-03-04  Zoltan Varga  <vargaz@freemail.hu>
5587
5588         * mini-exceptions.c (ves_icall_get_trace): Return wrapper info as well.
5589
5590 2005-03-03  Zoltan Varga  <vargaz@freemail.hu>
5591
5592         * mini.h mini.c mini-x86.c: Pass the domain of the native->managed
5593         wrapper to mono_jit_thread_attach.
5594
5595         * mini.c (mini_jit_thread_attach): New jit icall.
5596
5597         * mini-x86.c (mono_arch_emit_prolog): Attach to the VM in 
5598         native->managed wrappers.
5599
5600         * exceptions.cs: Add new regression test.
5601
5602         * mini.c (optimize_branches): Check regions in the cbranch to throw
5603         block case as well. Fixes #73242.
5604
5605 Tue Mar 1 18:35:27 CET 2005 Paolo Molaro <lupus@ximian.com>
5606
5607         * mini.c: thread safety fixes.
5608
5609 2005-02-27  Zoltan Varga  <vargaz@freemail.hu>
5610
5611         * tramp-amd64.c (amd64_magic_trampoline): Disable the method_ptr
5612         patching stuff, since delegates use jump trampolines so there is
5613         no caller.
5614
5615         * tramp-amd64.c (create_trampoline_code): Pass NULL as 'code' in 
5616         jump trampolines.
5617         
5618         * tramp-amd64.c: Fix build.
5619
5620         * mini-x86.c tramp-x86.c: Moved get_vtable_slot_addr into mini-x86.c and rename
5621         it to mono_arch_.... Add get_delegate_method_ptr implementation for x86.
5622
5623         * mini-amd64.h mini.h mini-amd64.c tramp-amd64.c (mono_amd64_get_vcall_slot_addr):
5624         Rename this to mono_arch....
5625         (mono_amd64_get_delegate_method_ptr_addr): Ditto.
5626
5627         * mini-amd64.c (mono_amd64_get_delegate_method_ptr_addr): New helper function.
5628
5629         * mini-amd64.c (emit_call): If both the caller and the callee is
5630         guaranteed to have 32 bit addresses, emit a normal call.
5631
5632         * tramp-amd64.c: Adapt to changes in mini-amd64.c.
5633
5634         * tramp-amd64.c (amd64_magic_trampoline): Remove patching of trampolines. 
5635         * tramp-amd64.c (amd64_magic_trampoline): Add support for patching the
5636         method_ptr inside delegates.
5637
5638 2005-02-26  Zoltan Varga  <vargaz@freemail.hu>
5639
5640         * mini.c (mono_jit_free_method): Free the method info even if the native code is
5641         invalidated. Fixes #73001.
5642
5643         * mini.c: Add a proper icall wrapper for mono_delegate_ctor.
5644
5645         * mini-x86.c: Only use stdcall for pinvokes on windows.
5646
5647 Thu Feb 24 15:22:30 CET 2005 Paolo Molaro <lupus@ximian.com>
5648
5649         * mini.c, mini.h: make mono_lmf_addr a fast-access thread var.
5650         * mini-x86.c: remove unreliable __thread var offset detection,
5651         use the correct accessors and enable by default.
5652
5653 2005-02-23  Zoltan Varga  <vargaz@freemail.hu>
5654
5655         * mini.c (mono_jit_free_method): Fix memory leak.
5656
5657 2005-02-22  Zoltan Varga  <vargaz@freemail.hu>
5658
5659         * mini.c (mono_method_to_ir): Allocate a GOT var for THROW and RETHROW. 
5660
5661 2005-02-21  Zoltan Varga  <vargaz@freemail.hu>
5662
5663         * cpu-amd64.md: Fix lengths of atomic opcodes.
5664
5665 Mon Feb 21 16:52:20 CET 2005 Paolo Molaro <lupus@ximian.com>
5666
5667         * driver.c: try to not imply using ICU is any good.
5668
5669 2005-02-20  Zoltan Varga  <vargaz@freemail.hu>
5670
5671         * mini-amd64.c (mono_arch_get_inst_for_method): Implement more 
5672         functions as inline ops.
5673
5674         * mini-ops.h inssel-amd64.brg cpu-amd64.md mini-amd64.c: Implement
5675         some Interlocked functions as inline ops.
5676
5677         * mini.c (move_basic_block_to_end): Fix bug in last patch.
5678
5679         * mini.h (MonoBasicBlock): Reorganize fields a bit.
5680
5681         * mini-ops.h inssel.brg: Add OP_NOT_REACHED.
5682
5683         * mini.c: Add support for OP_NOT_TAKEN.
5684
5685         * mini-amd64.h mini-amd64.c: Add support for passing/returning small 
5686         structures in registers for pinvoke wrappers.
5687
5688         * mini-amd64.c: Fix warnings.
5689
5690 2005-02-19  Zoltan Varga  <vargaz@freemail.hu>
5691
5692         * mini.h (MonoCompile): Add 'ret_var_is_local' field.
5693
5694         * mini.h mini.c (mono_arch_create_vars): Add new arch specific hook.
5695
5696         * mini.c (NEW_RETLOADA): If the ret variable is a local, use its 
5697         address instead of loading the address from it.
5698
5699         * mini-x86.c: Add support for returning small structs in registers
5700         on Win32. Fixes part of #70864.
5701         
5702 2005-02-18  Zoltan Varga  <vargaz@freemail.hu>
5703
5704         * trace.c (get_token): Improve error checking.
5705
5706 2005-02-17  Zoltan Varga  <vargaz@freemail.hu>
5707
5708         * jit-icalls.c (mono_ldvirtfn): Explicitly check for a NULL obj here.
5709
5710 2005-02-17  Sebastien Pouliot  <sebastien@ximian.com> 
5711  
5712         * mini.h: Moved MONO_EXCEPTION_* enum to metadata/class-internals.h so
5713         it can be reused for MonoClass.
5714         * mini.c: Renamed MONO_EXCEPTION_SECURITY to MONO_EXCEPTION_SECURITY
5715         _LINKDEMAND.
5716
5717 2005-02-15  Sebastien Pouliot  <sebastien@ximian.com>
5718
5719         * mini.c: Fixed 2 cases where I sent a MonoMethod to managed code 
5720         instead of a MonoReflectionMethod. The method information wasn't used
5721         when displaying SecurityException details (but will be now).
5722
5723 2005-02-15  Atsushi Enomoto  <atsushi@ximian.com>
5724
5725         * Makefile.am : windows build fix.
5726
5727 2005-02-14  Zoltan Varga  <vargaz@freemail.hu>
5728
5729         * iltests.il: Add new regression test.
5730
5731         * mini.c (mono_method_to_ir): Allocate a GOT var in CEE_NEWOBJ. Fixes
5732         #72522.
5733
5734 2004-02-13  Sebastien Pouliot  <sebastien@ximian.com> 
5735  
5736         * mini.c: Moved linkdemand check into helper function check_linkdemand
5737         to allow reuse for all intructions (CALL, CALLVIRT, NEWOBJ, JMP, 
5738         LDFTN, LDVIRTFTN).
5739
5740 2004-02-13  Sebastien Pouliot  <sebastien@ximian.com>
5741
5742         * declsec.c: Added statistics counter for different kinds of 
5743         LinkDemands.
5744         * mini.h: Added CAS statistic counters to MonoJitStats. Removed unused
5745         (and commented) declaration.
5746         * mini.c: Added statistics counter for security Demand code 
5747         generation. Added display of security statistics.
5748
5749 2005-02-13  Zoltan Varga  <vargaz@freemail.hu>
5750
5751         * declsec.c (mono_declsec_linkdemand_aptc): Applied patch from Robert Jordan (robertj@gmx.net).
5752         Fix compilation errors under gcc-2.95.
5753
5754 2005-02-12  Ben Maurer  <bmaurer@ximian.com>
5755
5756         * mini.c, driver.c: Use the new jit trampoline hashtable
5757
5758 Fri Feb 11 18:47:11 CET 2005 Paolo Molaro <lupus@ximian.com>
5759
5760         * mini.c, jit-icalls.c: use the managed implementation of memcpy, too.
5761
5762 2005-02-11  Martin Baulig  <martin@ximian.com>
5763
5764         * debug-mini.c (mono_debug_close_method): Free the line number array.
5765
5766 2005-02-10  Zoltan Varga  <vargaz@freemail.hu>
5767
5768         * aot.c: Break up large methods into smaller ones. Share GOT slots for
5769         icalls.
5770
5771         * mini.h: Bump AOT file format version. 
5772
5773 2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>
5774
5775         * declsec.c: Added LinkDemand support and it's special cases for ECMA,
5776         APTC and P/Invoke.
5777         * declsec.h: Added macros to get/set lazyly initialized security 
5778         informations about assemblies. Added new enum for different type of
5779         possible LinkDemand violation. Added function to check LinkDemands.
5780         * mini.h: Added a field to MonoCompile to hold any security violation
5781         detected when JITting a method (so it can be thrown later).
5782         * mini.c: Added LinkDemand checks in mono_method_to_ir for CEE_CALL 
5783         and CEE_CALLVIRT. Added code to throw exception at the end of
5784         mini_method_compile (note: the exception is unhandled right now).
5785
5786 Thu Feb 10 15:49:44 CET 2005 Paolo Molaro <lupus@ximian.com>
5787
5788         * mini.c, jit-icalls.c: use the managed implementation of
5789         memset for initobj and memset, to avoid managed <-> unmanaged
5790         transitions.
5791
5792 2005-02-10  Zoltan Varga  <vargaz@freemail.hu>
5793
5794         * inssel.brg (mini_emit_virtual_call): Disable the virtual->nonvirtual
5795         optimization if it would need a GOT var.
5796
5797         * basic.cs: Add tests for constant propagation and switch statements.
5798
5799         * ssa.c: Fix out-of-range constant propagation and switch statements.
5800
5801 2005-02-09    <vargaz@freemail.hu>
5802
5803         * inssel-x86.brg (reg): Align the allocation size in the localloc(imm) case too.
5804
5805 2005-02-08  Zoltan Varga  <vargaz@freemail.hu>
5806
5807         * cpu-amd64.md (load_membase): Fix max length of load_membase.
5808
5809 Tue Feb 8 18:21:11 CET 2005 Paolo Molaro <lupus@ximian.com>
5810
5811         * mini.c: update to new signature of mono_class_get_allocation_ftn().
5812
5813 2005-02-06  Neale Ferguson <NealeFerguson@earthlink.net>
5814
5815         * cpu-s390.md,  mini-s390.c: Correct bug with register usage on certain 
5816         arithmetic operations.
5817
5818 Sun Feb 6 07:10:12 EST 2005 Paolo Molaro <lupus@ximian.com>
5819
5820         * mini-ppc.c: add a workaround for broken user code that
5821         DllImports vararg functions with non-vararg signatures.
5822
5823 2005-02-05  Zoltan Varga  <vargaz@freemail.hu>
5824
5825         * mini.c (mono_jit_compile_method_inner): Add detection and a 
5826         meaningfull error message for assemblies written in Managed C++.
5827
5828         * tramp-amd64.c mini-amd64.h: Add support for 
5829         create_trampoline_from_token ().
5830
5831         * aot.c mini-x86.c abcremoval.c: Applied patch from
5832         Robert Jordan (robertj@gmx.net). Fix compilation errors under gcc-2.95.
5833
5834 2005-02-04  Zoltan Varga  <vargaz@freemail.hu>
5835
5836         * mini.h mini.c mini-x86.h tramp-x86.c: Add a new kind of trampoline 
5837         which takes a MonoImage/token as parameter instead of a MonoMethod.
5838
5839         * aot.c: Use the new trampoline for initializing vtables.
5840
5841         * aot.c: Add support for ldfld/stfld_remote wrappers.
5842
5843         * mini-ops.h cpu-pentium.md inssel-x86.brg mini-x86.c: Add optimized
5844         rules for compare <MEM>, IMM.
5845
5846         * mini.h (MONO_AOT_FILE_VERSION): Bump it.
5847
5848         * aot.c: Handle inherited finalizers correctly.
5849
5850 2005-02-03  Zoltan Varga  <vargaz@freemail.hu>
5851
5852         * inssel.brg (stmt): Add a missing _setup_... ().
5853
5854         * aot.c: Save some parts of the class state to the AOT file and use it
5855         to recompute that state when a class is initialized.
5856
5857         * mini.c: Install AOT hooks into the runtime.
5858
5859         * mini.h: Bump AOT file format version.
5860         
5861         * mini.c (mono_method_to_ir): Initialize pointer type locals correctly.
5862         Fixes #72148.
5863
5864         * iltests.il: Add new test.
5865
5866 Wed Feb 2 16:53:59 CET 2005 Paolo Molaro <lupus@ximian.com>
5867
5868         * mini.c: fix typo.
5869
5870 Wed Feb 2 16:37:13 CET 2005 Paolo Molaro <lupus@ximian.com>
5871
5872         * mini.c: setup the statistical profiler in the thread attach
5873         callback to cope with the new single thread code.
5874
5875 Wed Feb 2 15:43:58 CET 2005 Paolo Molaro <lupus@ximian.com>
5876
5877         * mini-ppc.c: ensure we have enough room for the profiler
5878         calls (fixed bug#72084).
5879
5880 2005-02-02  Zoltan Varga  <vargaz@freemail.hu>
5881
5882         * aot.c: Get rid of the MonoAotMethod structure and the hashtable holding 
5883         it.
5884
5885 2005-2-1  Massimiliano Mantione  <massi@ximian.com>
5886
5887         * driver.c: Re-enabled SSAPRE (two commits, I was just dumb).
5888
5889 2005-2-1  Massimiliano Mantione  <massi@ximian.com>
5890
5891         * ssapre.c: Fixed an issue with down safety (this allows IronPython
5892         to succesfully execute parrotbench).
5893         * ssapre.h: Likewise.
5894
5895 2005-2-1  Massimiliano Mantione  <massi@ximian.com>
5896
5897         * ssa.c: In mono_ssa_rename_vars, forced the creation of a new SSA
5898         variable for stores to method arguments (fixes a SSAPRE issue).
5899
5900 Tue Feb 1 15:52:26 CET 2005 Paolo Molaro <lupus@ximian.com>
5901
5902         * mini.c: handle value types in dup, fixes gen-112.cs.
5903
5904 Tue Feb 1 11:45:19 CET 2005 Paolo Molaro <lupus@ximian.com>
5905
5906         * mini-ppc.c, cpu-g4.md, tramp-ppc.c: use a slower code
5907         sequence for calls in dynamic methods to avoid thunks.
5908
5909 Tue Feb 1 11:44:01 CET 2005 Paolo Molaro <lupus@ximian.com>
5910
5911         * mini.c: correctly remove dynamic methods from the hashtable.
5912
5913 2005-1-20  Massimiliano Mantione  <massi@ximian.com>
5914
5915         * driver.c: Disabled SSAPRE until fix the bug that appears
5916         in IronPython's parrotbench.
5917
5918 2005-01-31  Zoltan Varga  <vargaz@freemail.hu>
5919
5920         * aot.c (mono_compile_assembly): Get rid of Skip (other) messages.
5921
5922         * mini.c (mono_method_to_ir): Revert the previous change.
5923         
5924         * mini.c (mono_method_to_ir): Do not inline ldfld and stfld wrappers
5925         when AOT compiling.
5926
5927         * tramp-x86.c (x86_magic_trampoline): Avoid calls to 
5928         mono_jit_info_table_find () etc. when running under valgrind.
5929
5930         * inssel.brg: Fix warnings.
5931
5932         * mini-exceptions.c: Fix warnings.
5933
5934 2005-01-31  Martin Baulig  <martin@ximian.com>
5935
5936         * driver.c (compile_all_methods_thread_main): Don't try to compile
5937         generic methods or anything which has type parameters.
5938
5939 2005-01-30  Zoltan Varga  <vargaz@freemail.hu>
5940
5941         * aot.c: Avoid costly calls to mono_method_full_name in tracing code and fix memory leaks.
5942
5943         * TestDriver.cs: Add --verbose flags.
5944
5945         * graph.c ssa.c: Fix 64 bit warnings.
5946         
5947         * abcremoval.h ssapre.h abcremoval.c ssapre.c mini.c tramp-amd64.c 
5948         trace.c mini-exceptions.c linear-scan.c inssel-amd64.brg inssel.brg:
5949         Fix 64 bit warnings.
5950
5951         * mini-amd64.c (mono_arch_output_basic_block): Fix uninitialized
5952         variable not spotted by gcc.
5953         
5954         * mini-amd64.c inssel-amd64.brg: Applied patch from  
5955         Willibald Krenn <Willibald.Krenn@gmx.at>. Clean up usage of 
5956         X86_COMPARE_MEMBASE opcodes.
5957
5958         * exceptions-amd64.c (mono_arch_find_jit_info): Fix AMD64 build.
5959
5960 2005-01-29  Ben Maurer  <bmaurer@ximian.com>
5961
5962         * *: MonoMethod->signature might be NULL now. You *MUST* use
5963         mono_method_signature.
5964
5965 2005-01-28  Zoltan Varga  <vargaz@freemail.hu>
5966
5967         * driver.c (compile_all_methods_thread_main): Compile the methods
5968         without invoking cctors.
5969
5970 Fri Jan 28 18:28:26 CET 2005 Paolo Molaro <lupus@ximian.com>
5971
5972         * mini.c: remove ben's "optimizations" to dup+stloc (bug #71905).
5973         * basic-calls.cs: test for the above.
5974
5975 2005-01-28  Zoltan Varga  <vargaz@freemail.hu>
5976
5977         * mini.c mini-exceptions.c aot.c exceptions-*.c: Update after 
5978         MonoJitInfo changes.
5979
5980 2005-01-27  Zoltan Varga  <vargaz@freemail.hu>
5981
5982         * mini-exceptions.c (mono_handle_exception): Compute the stack trace
5983         eagerly if it contains dynamic methods.
5984         
5985         * mini-exceptions.c (ves_icall_System_Exception_get_trace): New icall.
5986
5987         * mini-exceptions.c (mono_handle_exception): Avoid computing the stack
5988         trace, it is now computed by an icall from trace_ips.
5989         
5990         * mini-exceptions.c: Fix a warning.
5991
5992 Thu Jan 27 13:38:34 CET 2005 Paolo Molaro <lupus@ximian.com>
5993
5994         * mini-exceptions.c: don't bother getting stack trace info if
5995         it's not going to be used.
5996
5997 2005-01-27  Raja R Harinath  <rharinath@novell.com>
5998
5999         * Makefile.am (common_sources): Add ssapre-cee-ops.h and
6000         ssapre-mini-ops.h.
6001
6002 2005-01-26  Zoltan Varga  <vargaz@freemail.hu>
6003
6004         * mini.c (remove_block_if_useless): Only print debug stuff with -v -v.
6005
6006         * aot.c: Avoid calling mono_method_get_header () if not needed.
6007
6008         * mini.h: Bump AOT file format version.
6009         
6010         * mini.c (mono_emit_native_call): Allocate a GOT var here.
6011
6012         * mini.c (mono_print_tree): Print more info for calls.
6013
6014 2005-01-26  Sebastien Pouliot  <sebastien@ximian.com>
6015
6016         * declsec.h: Remove warning by adding missing include for marshal.h
6017
6018 2005-01-26  Martin Baulig  <martin@ximian.com>
6019
6020         * mini.c (mono_method_to_ir): In CEE_UNBOX_ANY, don't increase
6021         `ip' twice.
6022
6023 2005-01-25  Zoltan Varga  <vargaz@freemail.hu>
6024
6025         * mini-amd64.c (mono_arch_call_opcode): Add missing MONO_SSA_LOAD/STORE
6026         flags.
6027
6028         * ssa.c (mono_ssa_compute): Fix crashes when using AOT.
6029
6030         * aot.c (mono_compile_assembly): Fix a warning.
6031
6032 2005-01-25  Sebastien Pouliot  <sebastien@ximian.com>
6033
6034         * declsec.c: Look for security attributes on the original MonoMethod 
6035         (and not the wrapped one). This fix permissions on icalls.
6036
6037 2005-01-23  Zoltan Varga  <vargaz@freemail.hu>
6038
6039         * mini-amd64.c (mono_arch_allocate_vars): Use mono_allocate_stack_slots ().
6040
6041         * mini.c (mono_allocate_stack_slots): Add a fixme.
6042
6043         * mini-x86.c (mono_arch_allocate_vars): Use mono_allocate_stack_slots ().
6044
6045 Sun Jan 23 16:16:48 CET 2005 Paolo Molaro <lupus@ximian.com>
6046
6047         * inssel.brg: optimize casts of sealed types (more
6048         optimizations waiting for fixes in remoting).
6049
6050 2005-01-23  Zoltan Varga  <vargaz@freemail.hu>
6051
6052         * inssel.brg (stmt): Add another dummy rule.
6053
6054         * driver.c: Fix warnings.
6055
6056         * driver.c (mono_main): If running under valgrind, instruct glib to use
6057         the system allocation functions so valgrind can track the memory
6058         allocated by the g_... functions.
6059
6060         * inssel.brg (stmt): Add DUMMY rule for OP_DUMMY_STORE.
6061
6062         * mini-ops.h: Add OP_DUMMY_STORE opcode.
6063
6064         * mini.h (MONO_BBLOCK_IS_IN_REGION): New helper macro.
6065
6066         * liveness.c: Handle OP_DUMMY_STORE. Enable register allocation for
6067         variables in try regions.
6068
6069         * mini.c (mini_method_compile): Don't disable optimizations on large
6070         methods when AOT compiling.
6071
6072         * mini.c (mono_allocate_stack_slots): New arch independent method to 
6073         allocate stack slots. Not yet used.
6074
6075 2005-01-22  Ben Maurer  <bmaurer@ximian.com>
6076
6077         * debug-mini.c (mono_debug_close_method): Plug some leaks.
6078
6079 Sat Jan 22 13:41:51 EST 2005 Paolo Molaro <lupus@ximian.com>
6080
6081         * mini-ppc.c: make the branch info relative as the code
6082         buffer can be reallocated.
6083
6084 2005-01-22  Sebastien Pouliot  <sebastien@ximian.com>
6085
6086         * aot.c: Allow decoding of the new  MONO_PATCH_INFO_DECLSEC.
6087         * driver.c: Removed the AOT/security restriction. Now initialize the
6088         security manager (in metadata) if --security is used.
6089         * mini.c|h: Add the MONO_PATCH_INFO_DECLSEC code to use the index,
6090         rather than the pointer to declarative security, when AOT is used.
6091
6092 Sat Jan 22 09:35:19 EST 2005 Paolo Molaro <lupus@ximian.com>
6093
6094         * mini.h, mini-ppc.h, mini-ppc.c: updated to use out of line
6095         basic blocks, reduced intrinsic exception throwing code size.
6096
6097 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
6098
6099         * driver.c (mini_usage): Reorder the usage screen.
6100
6101 2005-01-21  Zoltan Varga  <vargaz@freemail.hu>
6102
6103         * mini.c (mono_resolve_patch_target): Fix warning.
6104
6105 2005-01-20  Zoltan Varga  <vargaz@freemail.hu>
6106
6107         * mini-x86.c (mono_arch_local_regalloc): Fix bug introduced by
6108         previous patch.
6109
6110         * mini-amd64.c (mono_arch_local_regalloc): Ditto.       
6111
6112         * mini-amd64.c (mono_arch_local_regalloc): Revert last patch as it
6113         breaks the amd64 build.
6114
6115         * mini-x86.c (mono_arch_local_regalloc): Fix bug in div/rem 
6116         register allocation. Fixes #71454.
6117
6118         * mini-amd64.c (mono_arch_local_regalloc): Ditto.       
6119
6120         * arrays.cs: Add new regression test.   
6121
6122 2005-1-20  Massimiliano Mantione  <massi@ximian.com>
6123
6124         * ssapre.c: Turned usage of snprintf to GString.
6125         * ssapre.h: disabled MONO_APPLY_SSAPRE_TO_SINGLE_METHOD
6126         (I left it on by mistake in my previous commit).
6127
6128 Thu Jan 20 12:00:45 CET 2005 Paolo Molaro <lupus@ximian.com>
6129
6130         * mini.c, cfold.c, basic-calls.cs: preserve side effects
6131         on cond branch optimization (fixes bug# 71515).
6132
6133 2005-1-20  Massimiliano Mantione  <massi@ximian.com>
6134
6135         * abcremoval.c: Fixed bug 71062.
6136         * abcremoval.h: Likewise.
6137
6138 2005-1-20  Massimiliano Mantione  <massi@ximian.com>
6139
6140         * mini.c: Added a new functionality to optimize_branches, the removal
6141         of useless basic blocks, and fixed some problem in the removal of
6142         critical edges; some utility functions added for both purposes.
6143         * ssapre.c: Added complex expression support, and fixed bug 70637.
6144         * ssapre.h: Likewise.
6145         * ssapre-cee-ops.h: Added file with list of "CEE_*" opcodes
6146         enabled in SSAPRE.
6147         * ssapre-mini-ops.h: Likewise, but for "OP_*" opcodes.
6148         * driver.c: Re-enabled SSAPRE.
6149
6150 2005-01-19  Martin Baulig  <martin@ximian.com>
6151
6152         * mini.c (mono_method_to_ir): Call mono_get_inflated_method() on
6153         the result of mono_get_method_constrained().
6154
6155 2005-01-18  Neale Ferguson <NealeFerguson@earthlink.net>
6156
6157         * exceptions-s390.c tramp-s390.c: Allocate code using the global code
6158         manager.
6159
6160 2005-01-18  Geoff Norton  <gnorton@customerdna.com>
6161
6162         * jit-icalls.c (mono_llmult_ovf): Fix other overflow conditions to
6163         be detected.  Fixes #59296.
6164
6165 2005-01-18  Zoltan Varga  <vargaz@freemail.hu>
6166
6167         * mini-amd64.c (mono_arch_output_basic_block): Remove some assertions
6168         which can happen. Fixes #71361.
6169
6170 2005-01-18  Zoltan Varga  <vargaz@freemail.hu>
6171
6172         * exceptions-sparc.c tramp-sparc.c: Allocate code using the global code
6173         manager.
6174
6175 2005-01-17  Zoltan Varga  <vargaz@freemail.hu>
6176
6177         * mini.c (mono_create_jump_trampoline): Revert last change as it causes
6178         appdomain-unload.exe to fail.
6179         
6180         * mini.c: Fix some memory leaks.
6181
6182 Mon Jan 17 16:16:23 CET 2005 Paolo Molaro <lupus@ximian.com>
6183
6184         * inssel.brg: handle the new size of rank, idepth, max_interface_id.
6185         Fixed bug and sped up some codepaths.
6186
6187 2005-01-17  Zoltan Varga  <vargaz@freemail.hu>
6188
6189         * mini.c: Fix some memory leaks.
6190
6191         * exceptions.cs basic-long.cs: Add test for checked ulong->int 
6192         conversion.
6193
6194         * inssel-long.brg: Implement long_conv_to_ovf_i4_un. Fixes #71319.
6195
6196         * inssel-long.brg: Fix conv.ovf.i8 when run on an int32. Fixes
6197         #71320.
6198
6199         * iltests.il: Add regression test for #71320.
6200
6201 2005-01-16  Zoltan Varga  <vargaz@freemail.hu>
6202
6203         * mini.c (mono_codegen): Fix installation of profiler hooks.
6204
6205         * mini-sparc.c mini-amd64.c: Don't allocate stack space for dead vars.
6206
6207 Sun Jan 16 12:19:35 CET 2005 Paolo Molaro <lupus@ximian.com>
6208
6209         * mini.h, mini.c, cfold.c: optimize access to enum
6210         readonly fields, too. Eval conditional branches if possible
6211         to perform unreachable code removal in more cases.
6212
6213 2005-01-15  Zoltan Varga  <vargaz@freemail.hu>
6214
6215         * tramp-amd64.c exceptions-amd64.c: Use the new global code manager.
6216
6217         * mini.c (mono_global_codeman_reserve): New function to allocate code memory from a global
6218         code manager.
6219
6220         * tramp-x86.c mini-x86.c exceptions-x86.c: Allocate all code memory so mono works with
6221         WinXP DEP. Fixes #71244.
6222
6223 2005-01-14  Zoltan Varga  <vargaz@freemail.hu>
6224
6225         * inssel.brg: Allways convert CEE_CONV_OVF_I4 to a move on 64 bit platforms. Fixes #71236.
6226
6227 2005-01-13  Zoltan Varga  <vargaz@freemail.hu>
6228
6229         * mini-x86.c (mono_arch_output_basic_block): Fix OP_ATOMIC_ADD_NEW_I4.
6230
6231 2005-01-11  Zoltan Varga  <vargaz@freemail.hu>
6232
6233         * mini-exceptions.c exceptions-ppc.c aot.c: Cope with MonoJitInfo 
6234         changes.
6235
6236         * mini.h: Bump AOT version.
6237
6238         * mini.h (MonoCompile): Change exvar to a hash table.
6239
6240         * mini.c: Allocate a separate exvar for each handler block.
6241
6242         * mini.c: Get rid of the computation of filter_lengths, its not needed.
6243
6244         * mini.c inssel.brg: Change OP_THROW_OR_NULL to compare the current
6245         ex var with the pending exception and only throw if the two are equal.
6246         Fixes #68552.
6247         
6248         * exceptions.cs: Add tests for rethrow and nested catch clauses.
6249
6250         * mini-x86.c: Fix warnings.
6251
6252         * Makefile.am (common_sources): Move mini-exceptions.c here as it is
6253         used by all the ports now.
6254
6255         * aot.c: Add write-symbols and save-temps options.
6256
6257 2005-01-10  Zoltan Varga  <vargaz@freemail.hu>
6258
6259         * mini-x86.c: Add support for returning structs in registers from pinvoke functions on WIN32.
6260
6261 Mon Jan 10 16:11:16 EST 2005 Neale Ferguson <nealeferguson@earthlink.net>
6262
6263         * mini-ops.h, inssel-s390.brg, cpu-s390.md: Support OP_ATOMIC__xxx 
6264         operations.
6265
6266         * tramp-s390.c: Check vtable slot belongs to the domain.
6267
6268         * mini-exceptions.c, exceptions-s390.c: Standardize exception handling
6269         as per other platforms.
6270
6271         * mini-s390.c, mini-s390.h: Enable out-of-line bblock support.
6272
6273 Mon Jan 10 18:53:05 CET 2005 Paolo Molaro <lupus@ximian.com>
6274
6275         * driver.c: we don't run the Main() code in a subthread anymore.
6276
6277 Mon Jan 10 17:54:16 CET 2005 Paolo Molaro <lupus@ximian.com>
6278
6279         * mini.c: added experimental rtc support in the statistical
6280         profiler: if the user has the permission, more accurate statistics
6281         are gathered. Run with: MONO_RTC=4096 mono --profiler=default:stat ....
6282         The MONO_RTC value must be restricted to what the linux rtc allows:
6283         power of two from 64 to 8192 Hz.
6284
6285 2005-01-10  Zoltan Varga  <vargaz@freemail.hu>
6286
6287         * mini-x86.c (mono_arch_emit_exceptions): Fix #71121.
6288
6289 Mon Jan 10 05:20:49 EST 2005 Paolo Molaro <lupus@ximian.com>
6290
6291         * mini-ppc.c: better icache flush for smp.
6292
6293 2005-01-09  Zoltan Varga  <vargaz@freemail.hu>
6294
6295         * mini-amd64.c (emit_move_return_value): Fix memory leak.
6296
6297         * mini-x86.c (get_call_info): Add the get_call_info () code from the
6298         amd64 port, not yet used.
6299
6300 2005-01-07  Zoltan Varga  <vargaz@freemail.hu>
6301
6302         * mini.c (mono_method_to_ir): Disable inlining of ldfld wrappers with
6303         a struct type.
6304
6305 2005-01-07  Sebastien Pouliot  <sebastien@ximian.com>
6306
6307         * driver.c: Added --security option to activate the security manager.
6308         Right now this will allow code generation for declarative demands and
6309         is disabled when AOT is specified.
6310         * mini.c: Add code generation for declarative security demands.
6311         * mini.h: Add mono_use_security_manager as an extern gboolean.
6312
6313 2005-01-07  Zoltan Varga  <vargaz@freemail.hu>
6314
6315         * aot.c (mono_compile_assembly): Speed up compilation a bit by
6316         emitting more dense assembly code.
6317
6318         * mini-sparc.c mini-sparc.h exceptions-sparc.c: Enable optimized corlib
6319         exception throwing stuff.
6320
6321 2005-01-06  Zoltan Varga  <vargaz@freemail.hu>
6322
6323         * mini-sparc.c (mono_arch_emit_exceptions): Fix typo in previous patch. Remove
6324         dead code.
6325
6326         * mini-amd64.c (mono_arch_emit_exceptions): Remove duplicate epilog stuff
6327         left in by mistake.
6328
6329         * driver.c (EXCLUDED_FROM_ALL): Disable SSAPRE until bug #70637 is 
6330         fixed.
6331
6332         * mini-sparc.h mini-sparc.c: Enable out-of-line bblock support.
6333
6334         * tramp-*.c: Only patch vtable slots if the object is in the current
6335         domain. Fixes appdomain-unload.exe.
6336
6337         * mini-amd64.c mini-amd64.h: Enable out-of-line bblock support.
6338         
6339         * mini-amd64.c (mono_arch_local_regalloc): Port regalloc fix from
6340         x86 branch.
6341
6342 2005-01-05  Zoltan Varga  <vargaz@freemail.hu>
6343
6344         * mini.c (reverse_branch_op): New helper function.
6345
6346         * mini.c (optimize_branches): Run the new optimization only on 
6347         platforms which support it. Also reverse all kinds of branches.
6348
6349         * mini.h (MonoBasicBlock): Add 'out_of_line' field.
6350
6351         * mini.c (mono_method_to_ir): Set 'out_of_line' for bblocks which have
6352         a throw statement.
6353
6354         * mini.c (optimize_branches): Reverse not-equals branches if the false
6355         bblock is a throw. This happens a lot of time with argument checking in
6356         corlib.
6357
6358         * mini.c (mono_codegen): Add support for placing basic blocks after
6359         the function epilogue.
6360
6361         * mini-x86.c mini-x86.h: Add support for placing basic blocks after the
6362         function epilogue.
6363         
6364 2005-01-05  Miguel de Icaza  <miguel@ximian.com>
6365
6366         * mini.c (setup_stat_profiler): Only set this up if the platform
6367         supports ITIMER_PROF.
6368
6369 2005-01-05  Zoltan Varga  <vargaz@freemail.hu>
6370
6371         * mini-x86.c (mono_arch_local_regalloc): Fix a bug introduced by the
6372         previous patch.
6373
6374         * inssel.brg: Fix a warning.
6375
6376 Wed Jan 5 16:40:18 CET 2005 Paolo Molaro <lupus@ximian.com>
6377
6378         * mini.c: added support for statistical profiler 
6379         (run with: --profile=default:stat).
6380
6381 2005-01-04  Zoltan Varga  <vargaz@freemail.hu>
6382
6383         * mini-x86.h (MONO_ARCH_ENABLE_EMIT_STATE_OPT): Enable this on x86.
6384
6385         * mini-x86.c cpu-pentium.md: More fixes for usage of global registers.
6386
6387         * mini-amd64.c (mono_arch_local_regalloc): Port some regalloc fixes 
6388         related to global registers from the amd64 port.
6389
6390 2005-01-03  Zoltan Varga  <vargaz@freemail.hu>
6391
6392         * mini.c (mono_method_to_ir): Handle MONO_CLASSCONST.
6393
6394         * mini-amd64.c (mono_arch_local_regalloc): Fix some regalloc problems
6395         with global registers.
6396         (mono_arch_output_basic_block): Fix SWITCH in the AOT case.
6397
6398         * aot.c (emit_method_code): Fix the 'method emitted as' messages.
6399
6400 2004-12-31  Zoltan Varga  <vargaz@freemail.hu>
6401
6402         * debug-mini.c (encode_value): Fix off-by-one.
6403
6404         * aot.c (encode_value): Likewise.
6405
6406         * mini.c (mono_method_to_ir): Disable AOT for methods containing LDPTR.
6407
6408 2004-12-30  Zoltan Varga  <vargaz@freemail.hu>
6409
6410         * mini.c linear-scan.c: Add a workaround for the mcs crash when using 
6411         AOT.
6412
6413         * aot.c (mono_aot_load_method): Free up patch info if no longer needed.
6414         
6415         * aot.c (emit_method_info): Increase size of temp buffer.
6416
6417         * mini-x86.c cpu-pentium.md mini.c: Load fp constants differently in 
6418         the AOT case.
6419
6420 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
6421
6422         * aot.c (emit_method_info): Fix build.
6423         
6424         * aot.c: Further rework of the AOT file format to reduce the size of
6425         the method info data.
6426
6427         * mini.h: Bump AOT file format version.
6428
6429 2004-12-27  Martin Baulig  <martin@ximian.com>
6430
6431         * mini.c (mini_get_method): New static method; call
6432         mono_get_method_full() and mono_get_inflated_method().
6433         (mono_method_to_ir): Use mini_get_method() instead of
6434         mono_get_method_full(). 
6435
6436 2004-12-26  Patrik Torstensson  <patrik.torstensson@gmail.com>
6437
6438         * mini-x86.c (atomic ops): fixed bug interlocked bug #70784. 
6439
6440 2004-12-25  Zoltan Varga  <vargaz@freemail.hu>
6441
6442         * inssel.brg (ldind_to_load_membase): Handle CEE_LDIND_I8.
6443
6444         * inssel-amd64.brg: Add some optimization rules.
6445
6446 2004-12-24  Ben Maurer  <bmaurer@ximian.com>
6447
6448         * aot.c: Remove the use of MonoGHashTable and other GC stuff. The
6449         standard not GC'd stuff is fine.
6450
6451 2004-12-24  Zoltan Varga  <vargaz@freemail.hu>
6452
6453         * aot.c: Rework the AOT file format to get rid of most of the global
6454         symbols. This reduces the size of the mscorlib.dll.so by 1MB.
6455
6456         * mini.h: Bump AOT file format version.
6457         
6458 2004-12-23  Zoltan Varga  <vargaz@freemail.hu>
6459
6460         * mini.h: Bump AOT file format version.
6461
6462         * aot.c (mono_aot_is_got_entry): New function to determine if an 
6463         address is inside a GOT.
6464
6465         * aot.c mini-x86.c tramp-x86.c: Make all patches use the GOT.
6466
6467         * cpu-pentium.md: Increase the maximum size of some instructions which
6468         might involve a got access.
6469         
6470         * mini.c (get_method_from_ip): Another debug helper function.
6471
6472         * mini.c: Call mono_get_got_var () in a couple places. Handle the case
6473         when got var accesses are created during the decompose phase.
6474
6475         * mini-sparc.c: Change mono_compile_aot to cfg->compile_aot.
6476
6477         * mini.h mini.c mini-x86.c aot.c mini-sparc.c: Add a 'compile_corlib'
6478         argument mini_compile_method and to MonoCompile, and use this to
6479         determine whenever a given method is compiled for AOT. This allows the
6480         other methods compiled during AOT compilation to be free of AOT stuff,
6481         so the backends does not need to add special support for them by
6482         creating a fake GOT etc.
6483
6484         * mini-x86.c (mono_arch_patch_code): Remove fake got stuff as it is no
6485         longer needed.
6486
6487 2004-12-21  Ben Maurer  <bmaurer@ximian.com>
6488
6489         * mini.c (mono_method_to_ir): It turns out that some of the
6490         x-appdomain wrappers are lax with types, so just ignore this for
6491         all wrappers.
6492
6493         * inssel.brg (OP_CHECK_ARRAY_TYPE): Optimize this by only looking
6494         at the vtable->klass. If it is non-shared code we can just use the
6495         vtable.
6496
6497 Tue Dec 21 17:43:06 CET 2004 Paolo Molaro <lupus@ximian.com>
6498
6499         * mini-ppc.c: access MonoDomain from tls, too.
6500
6501 2004-12-21  Sebastien Pouliot  <sebastien@ximian.com>
6502
6503         * declsec.c: Removed unused variable (and related warning ;-)
6504
6505 2004-12-21  Ben Maurer  <bmaurer@ximian.com>
6506
6507         * iltests.il: New test for LDELEMA on an array of ref types.
6508
6509         * mini.c (CEE_LDELEMA): We need to emit OP_CHECK_ARRAY_TYPE for
6510         all ldelema's on reftypes.
6511         (check_call_signature): Remove the OP_CHECK_ARRAY_TYPE from here,
6512         it was the wrong place to put it.
6513
6514         * mini-x86.c (mono_arch_output_basic_block): Just use ecx as the
6515         register to pop to make this cleaner, at the request of Paolo.
6516
6517 2004-12-20  Ben Maurer  <bmaurer@ximian.com>
6518
6519         * mini-ops.h (OP_GETHASHCODE): New op.
6520
6521         * inssel.brg (OP_GETHASHCODE): Emit code for the new opcode
6522
6523         * mini.c (mini_get_inst_for_method): Create the intrinsic hash
6524         operation.
6525
6526         For a microbenchmark, this reduces the cost of Hashtable.get_Item
6527         by 25%.
6528         
6529         * mini-x86.c (mono_arch_output_basic_block): Rather than
6530
6531         add ebp, 4
6532
6533         Emit
6534
6535         pop edx
6536
6537         The first is 3 bytes while the second is 1. This saves 36 kb on
6538         mscorlib, quite a big saving. When bootstraping mcs, I was able to
6539         see a small boost because of icache locality.
6540
6541         * cfold.c (FOLD_BINOPCOMM): Kill add foo, 0
6542
6543 Mon Dec 20 12:19:40 EST 2004 Paolo Molaro <lupus@ximian.com>
6544
6545         * Makefile.am, mini-ppc.h, mini-exceptions.c, exceptions-ppc.c:
6546         started code sharing with the generic code.
6547
6548 Mon Dec 20 11:08:06 EST 2004 Paolo Molaro <lupus@ximian.com>
6549
6550         * mini-ppc.c, cpu-g4.md: added code for direct access to
6551         tls data slots.
6552
6553 Mon Dec 20 10:58:28 EST 2004 Paolo Molaro <lupus@ximian.com>
6554
6555         * mini-ops.h, inssel-x86.brg, cpu-amd64.md, inssel.brg, inssel-amd64.brg,
6556          mini-amd64.c, mini-x86.c, cpu-pentium.md: renamed OP_X86_TLS_GET
6557         to OP_TLS_GET.
6558
6559 2004-12-20  Sebastien Pouliot  <sebastien@ximian.com>
6560
6561         * declsec.c|h: Added functions to cache the declarative stack modifiers
6562         in MonoJitInfo and to create a security frame from a MonoJitInfo 
6563         structure.
6564         * mini.c: Initialize jinfo->cas_inited to FALSE when MonoJitInfo is
6565         created. Register internal calls for System.Security.SecurityFrame::
6566         _GetSecurityFrame and _GetSecurityStack.
6567         * mini.h: Added definition for new icalls (in mini-exceptions.c) and
6568         the definitions for the new stack walk/callback mechanism.
6569         * mini-exceptions.c: Added internal call GetSecurityFrame (to get the 
6570         first security frame for LinkDemands and InheritanceDemands) and
6571         GetSecurityStack for Demands. Both use the new mono_walk_stack code
6572         from lupus.
6573         * mini-x86.h, mini-amd64.h, mini-sparc.h: Architecture specific stack
6574         walk initialization (lupus).
6575
6576 2004-12-20  Ben Maurer  <bmaurer@ximian.com>
6577
6578         * mini.c (mono_method_to_ir): In CEE_DUP, handle the dup / stloc
6579         idiom.
6580         (handle_loaded_temps): Do not create a temporary variable for
6581         things that we know are temps. They will never be modified.
6582         (mono_spill_call): Set MONO_INST_IS_TEMP
6583         (mono_emulate_opcode): ditto
6584         (emit_tree): ditto
6585         (mono_method_to_ir.CEE_DUP): ditto
6586
6587 2004-12-19  Ben Maurer  <bmaurer@ximian.com>
6588
6589         * mini.c (type_to_eval_stack_type): Make this handle the void type
6590         (mono_emit_call_args): set the call->type with type_to_eval_stack_type
6591         (emit_tree): use ip_in_bb to special case some common idioms
6592         Update all callers to pass in the IP.
6593         (mono_method_to_ir): Make CEE_CALL* do the above as well.
6594
6595         This gives us a nice 2% speedup in mcs bootstrap.
6596
6597         * mini-x86.c (peephole_pass): Peephole pass to make
6598         mov  [foo], eax
6599         push [foo]
6600
6601         into
6602
6603         mov [foo], eax
6604         push eax
6605
6606         * mini.c (ip_in_bb): new method.
6607         (mono_method_to_ir): use this method rather than doing the hash
6608         lookup ourselves.
6609
6610         * linear-scan.c (mono_linear_scan): When expiring actives, you
6611         don't need to keep around variables that expire on this
6612         instruction. This makes it so that:
6613              a = b + 1
6614         will turn into:
6615              store (ebx add (ebx, 1))
6616         which will become
6617              add ebx, 1
6618
6619 2004-12-19  Zoltan Varga  <vargaz@freemail.hu>
6620
6621         * mini.c (mono_method_to_ir): Optimize the common ldobj+stloc 
6622         combination to avoid doing two copies. Fix up problems with previous
6623         patch.
6624
6625         * mini.c: Fix 64 bit warnings.
6626
6627         * mini-x86.c (INST_IGNORES_CFLAGS): Add OP_STOREI4_MEMBASE_REG.
6628
6629 2004-12-17  Zoltan Varga  <vargaz@freemail.hu>
6630
6631         * mini-amd64.h mini-amd64.c exceptions-amd64.c: Port exception handling
6632         changes from the x86 code.
6633
6634         * mini.h: Add prototype for mono_arch_get_throw_corlib_exception ().
6635
6636 2004-12-16  Zoltan Varga  <vargaz@freemail.hu>
6637
6638         * mini-x86.c (mono_arch_emit_epilog): Optimize the corlib exception
6639         throwing code to reduce its size, unify the AOT and non-aot code and 
6640         get rid of relocations in the AOT case.
6641
6642         * mini-x86.h mini.c exceptions-x86.c 
6643         (mono_arch_get_throw_corlib_exception): New arch specific function to 
6644         raise corlib exceptions which doesn't require relocations in the 
6645         caller.
6646
6647         * aot.c (emit_method): Handle PATCH_INFO_NONE as well.
6648
6649 2004-12-15  Zoltan Varga  <vargaz@freemail.hu>
6650
6651         * mini.c (mono_emit_method_call): Only allocate the got var when it is
6652         needed.
6653
6654         * mini-x86.c (mono_arch_patch_code): Add missing PATCH_INFO_METHOD_REL
6655         in the AOT case.
6656
6657 2004-12-14  Patrik Torstensson  <patrik.torstensson@gmail.com>
6658
6659         * mini-x86.c, cpu-pentium.md, inssel-x86.brg: Fixed bug
6660         with add function when used from Inc/dec atomic 
6661         functions. Re-enabled optimization on x86.
6662         * mini-ops.h: renamed atomic_add functions to
6663         allow _add to match the Interlocked::Add and
6664         _add_next to match Interlocked::Inc/Dec.
6665
6666 2004-12-15  Massimiliano Mantione  <massi@ximian.com>
6667
6668         * mini.c: Fixed a subtle bug in mono_method_to_ir, about the
6669         linking of BBs to the end BB, and enabled SSAPRE also with
6670         consprop and copyprop (which was prevented by that bug).
6671
6672 2004-12-14  Patrik Torstensson  <patrik.torstensson@gmail.com>
6673
6674         * mini-x86.c: disabling the Interlocked optimizing code. 
6675
6676 2004-12-14  Zoltan Varga  <vargaz@freemail.hu>
6677
6678         * aot.c (load_aot_module): Move reading of got_addr after the AOT
6679         file version check.
6680         
6681 2004-12-14  Patrik Torstensson  <patrik.torstensson@gmail.com>
6682
6683         * mini-x86.c, inssel-x86.brg, cpu-pentium.md: removed _imm 
6684         interlocked optimization due lack of support on x86, rewrote 
6685         exchange to take into account that base may be in eax.
6686         
6687         xsp works again; activated Interlocked optimizing code.
6688         
6689 2004-12-14  Zoltan Varga  <vargaz@freemail.hu>
6690
6691         * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file version.
6692
6693 2004-12-13  Zoltan Varga  <vargaz@freemail.hu>
6694
6695         * mini-ops.h: Add new opcodes.
6696
6697         * mini.h: Add new patch types. Add got_var to MonoCompile.
6698
6699         * mini.h mini-x86.c mini-amd64.c aot.c: Rename 
6700         mono_arch_get_aot_patch_offset () to mono_arch_get_patch_offset () and
6701         make it work with all kinds of patchable code.
6702
6703         * inssel.brg inssel-x86.brg: Add new rules dealing with computing the
6704         address of the GOT, and referencing entries in the GOT.
6705
6706         * mini.c: Add code to load the GOT address if needed by an opcode.
6707
6708         * aot.c mini-x86.h mini-x86.c cpu-pentium.md: Add support for position 
6709         independent AOT code on the x86 using an elf-style Global Offset Table.
6710
6711 2004-12-14  Raja R Harinath  <rharinath@novell.com>
6712
6713         * Makefile.am (RUNTIME): Set MONO_SHARED_DIR.
6714
6715 2004-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6716
6717         * mini-x86.c: disabling the Interlocked optimizing code. It segfaults
6718         when running xsp.
6719
6720 2004-12-13  Patrik Torstensson  <patrik.torstensson@gmail.com>
6721
6722         * mini-x86.c,mini-ops.h,inssel-x86.brg,cpu-pentium.md: Implementation
6723         of Interlocked:Increment/Decrement/Add as inline ops.
6724         (mini-x86.c (mono_arch_get_inst_for_method and mono_arch_output_basic_block))
6725
6726 2004-12-12  Geoff Norton  <gnorton@customerdna.com>
6727
6728         * exceptions-ppc.c: Reorder code so gcc3.4 can compile it
6729         * mini-ppc.c: Unify mono_arch_patch_code with changes in r37636.
6730
6731 2004-12-12  Duncan Mak  <duncan@ximian.com>
6732
6733         * mini-ppc.c (mono_arch_patch_code): Hopefully made this build
6734         again. `patch_info->table_size' is no longer valid after Zoltan's
6735         commit #37636.
6736
6737 2004-12-12  Martin Baulig  <martin@ximian.com>
6738
6739         * mini.c (mono_method_to_ir): Only call mono_debug_init_method()
6740         if we are the "real" method, ie. not an inlined method inside it.
6741
6742 2004-12-11  Ben Maurer  <bmaurer@ximian.com>
6743
6744         * mini.c (CEE_LDSFLD): Make sure that the vtable has been init'd
6745         before we look in the special fields table. This fixes
6746         ../tests/thread-static-init.cs.
6747
6748 2004-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6749
6750         * mini.c: return immediately after setting OP_ARRAY_RANK or CEE_LDLEN
6751         for Array get_Rank and get_Length. Fixes bug #70465.
6752
6753 2004-12-11  Zoltan Varga  <vargaz@freemail.hu>
6754
6755         * mini.h mini.c aot.c: Put the bblock table for a SWITCH patch into a
6756         separate structure to reduce the size of MonoJumpInfo.
6757
6758 Fri Dec 10 18:09:22 CET 2004 Paolo Molaro <lupus@ximian.com>
6759
6760         * mini.c, mini.h, aot.c, driver.c: allow disabling the aot code.
6761
6762 2004-12-10  Patrik Torstensson  <patrik.torstensson@gmail.com>
6763
6764         * mini.c (mini_get_inst_for_method): Changed to allow ports
6765         to return a MonoInst instead of opcode 
6766         (renamed mini_get_opcode_for_method to better reflect the new functionality)
6767         
6768         * mini-[x86|s390|s390x|ppc|sparc].c (mono_arch_get_inst_for_method): 
6769         Allow ports to return a created MonoInst instead of op-code, will enable
6770         new optimizations.
6771         (renamed mini_get_opcode_for_method to better reflected the functionality)
6772
6773 2004-12-09  Zoltan Varga  <vargaz@freemail.hu>
6774
6775         * mini.c (NEW_AOTCONST): Share some code between the different NEW_AOTCONST macros.
6776
6777 2004-12-08  Zoltan Varga  <vargaz@freemail.hu>
6778
6779         * mini.c jit-icalls.c: Pass generic_context to mono_ldtoken_wrapper.
6780         Fixes #69985.
6781
6782 2004-12-08  Martin Baulig  <martin@ximian.com>
6783
6784         * mini.c (mono_method_to_ir): In CEE_CALLVIRT, use `fsig->signature'
6785         if we're a CEE_CONSTRAINED call.  Fixes gen-118.cs.
6786
6787 2004-12-08  Zoltan Varga  <vargaz@freemail.hu>
6788
6789         * mini-sparc.c (mono_arch_output_basic_block): Implement OP_FCONV_TO_<X>
6790         correctly.
6791
6792         * exceptions.cs: Disable some tests which depend on properties of x86 fp
6793         arithmetic.
6794
6795 2004-12-08  Raja R Harinath  <rharinath@novell.com>
6796
6797         * Makefile.am (CLEANFILES): Add *.exe, *.dll.
6798
6799 2004-12-07  Zoltan Varga  <vargaz@freemail.hu>
6800
6801         * mini-sparc.c (mono_arch_output_basic_block): Fix LOCALLOC_IMM
6802         bug introduced by the previous patch.
6803
6804 Tue Dec 7 11:44:39 CET 2004 Paolo Molaro <lupus@ximian.com>
6805
6806         * mini-ppc.c, objectc.cs: handle large structs passed by value
6807         (fixes bug #69972).
6808
6809 Tue Dec 7 10:43:31 CET 2004 Paolo Molaro <lupus@ximian.com>
6810
6811         * mini-ppc.c: OP_ARGLIST implementation from
6812         Geoff Norton  <gnorton@customerdna.com>.
6813
6814 Tue Dec 7 10:14:25 CET 2004 Paolo Molaro <lupus@ximian.com>
6815
6816         * inssel-x86.brg, inssel-ppc.brg: fix reference to register
6817         in stmt: OP_OUTARG_VT (reg) (should fix bug #69785).
6818
6819 Tue Dec 7 10:06:39 CET 2004 Paolo Molaro <lupus@ximian.com>
6820
6821         * exceptions-ppc.c: avoid calling ppc_patch in exception trampolines.
6822
6823 2004-12-01  Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
6824
6825         * inssel-s390.brgi, mini-ops.h, mini-s390.c : Add stubs for support of tls offset
6826         support.
6827
6828 2004-12-06  Zoltan Varga  <vargaz@freemail.hu>
6829
6830         * mini-sparc.c: Zero out localled-ed memory.
6831
6832         * iltests.il: Add tests for zeroing out localloc-ed memory.
6833
6834 2004-12-04  Martin Baulig  <martin@ximian.com>
6835
6836         * mini.c (mono_method_to_ir): In CEE_CALLVIRT, use the new
6837         mono_method_get_signature_full().       
6838
6839 2004-12-03  Massimiliano Mantione  <massi@ximian.com>
6840
6841         * mini.c: Added removal of critical edges (prerequisite for SSAPRE),
6842         and some utility functions (always for SSAPRE), integrated SSAPRE.
6843         * mini.h: Likewise.
6844         * driver.c: Added ssapre option.
6845         * ssa.c: Small fix on OP_ARG handling.
6846         * ssapre.c, ssapre.h: Added files containing SSAPRE implementation.
6847         * Makefile.am: Likewise.
6848
6849 2004-12-02  Zoltan Varga  <vargaz@freemail.hu>
6850
6851         * tramp-x86.c (mono_arch_create_jit_trampoline): Remove code which is
6852         now in the xp code.
6853
6854         * mini.c (mini_init): Register mono_thread_force_interruption_checkpoint
6855         icall.
6856
6857 2004-12-01  Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
6858
6859         * inssel-s390.brg : Add OP_OUTARG_VT (OP_REFANYTYPE (reg)) rule.
6860         
6861         * cpu-s390.md : Increase instruction length of oparglist.
6862
6863         * mini-s390.c : Implement vararg and TYPEDEBYREF support.
6864
6865 2004-11-30  Martin Baulig  <martin@ximian.com>
6866
6867         * mini.c (mono_method_to_ir): In CEE_CALLVIRT, added support for
6868         virtual generic methods.  We call a special helper_compile_generic_method()
6869         icall to retrieve the method from the vtable, inflate and compile
6870         it and then do a CEE_CALLI.  Thanks a lot to Paolo for this idea.
6871
6872         * jit-icalls.c (helper_compile_generic_method): New JIT icall.
6873
6874 2004-11-30  Zoltan Varga  <vargaz@freemail.hu>
6875
6876         * mini-sparc.c: Fix up vararg corner cases. Fixes #70019.
6877
6878 2004-11-29  Zoltan Varga  <vargaz@freemail.hu>
6879
6880         * cpu-sparc.md mini-sparc.c (long_conv_to_ovf_i): Fill missing delay slot.
6881         Fixes #69929.
6882
6883 2004-11-27  Ben Maurer  <bmaurer@ximian.com>
6884
6885         * inssel.brg (CEE_SWITCH): The AOT stuff Zoltan added is only for
6886         platforms with PIC aot.
6887
6888 2004-11-28  Martin Baulig  <martin@ximian.com>
6889
6890         * mini.c (mono_method_to_ir): In CEE_DUP, added handle_stobj().
6891         Fixes gen-112.cs.
6892
6893 2004-11-28  Martin Baulig  <martin@ximian.com>
6894
6895         * mini-x86.c (mono_arch_call_opcode): Use the original type, not
6896         the result of mono_type_get_underlying_type() to check whether
6897         we're byref.
6898
6899 2004-11-26  Martin Baulig  <martin@ximian.com>
6900
6901         * mini.c
6902         (mono_method_to_ir): Use `!method->signature->has_type_parameters'
6903         in the g_assert().
6904
6905 2004-11-26  Zoltan Varga  <vargaz@freemail.hu>
6906
6907         * mini-amd64.c (mono_arch_emit_this_vret_args): Handle this and vret
6908         the same way as the other arguments so they won't get clobbered.
6909
6910         * mini-amd64.c (mono_arch_output_basic_block): Avoid doing virtual 
6911         calls through R11 since it is clobbered by the trampoline code.
6912
6913 2004-11-26  Raja R Harinath  <rharinath@novell.com>
6914
6915         * Makefile.am: Consistently use $(RUNTIME) rather than ./mono to
6916         pick up in-tree mscorlib.dll.
6917
6918 2004-11-25  Zoltan Varga  <vargaz@freemail.hu>
6919
6920         * aot.c: Rename MonoAOTModule->cleanup to out_of_date.
6921
6922         * mini-amd64.c aot.c: Switch to PIC relative AOT code. References to 
6923         runtime data/code are now stored in a table similar to the GOT in ELF. 
6924         This allows the code itself to be position independent.
6925
6926         * aot.c: Fix loading of referenced assemblies after the lazy assembly
6927         loading changes.
6928
6929         * aot.c: Attach ELF type (object/function) directives to all global
6930         symbols.
6931
6932         * tramp-amd64.c (amd64_magic_trampoline): Patch RIP relative calls too.
6933
6934         * inssel.brg (SWITCH): Emit an AOT_CONST in the aot case.
6935
6936         * mini-amd64.h: Turn on PIC AOT code.
6937
6938         * mini.h (mono_arch_get_aot_patch_offset): New arch specific function
6939         returning the offset within an OP_AOTCONST instruction where the GOT
6940         offset needs to be added.
6941
6942         * mini.h: Bump AOT file format version.
6943
6944 2004-11-25  Martin Baulig  <martin@ximian.com>
6945
6946         * mini.c (mono_method_to_ir): In CEE_CALL, don't allow calling any
6947         uninflated generic methods.
6948
6949 2004-11-25  Martin Baulig  <martin@ximian.com>
6950
6951         * mini.c (mono_method_to_ir): Don't allow any uninflated generic methods.
6952
6953 2004-11-24  Martin Baulig  <martin@ximian.com>
6954
6955         * minit.c (type_to_eval_stack_type): Set `inst->klass' to the
6956         original klass (this only applies for generic instances).
6957
6958 2004-11-24  Martin Baulig  <martin@ximian.com>
6959
6960         * mini.c (mono_method_to_ir): Use `STACK_OBJ' instead of
6961         `ldind_type [CEE_LDIND_REF]' (which would be beyond the end of
6962         that array).
6963
6964 2004-11-24  Zoltan Varga  <vargaz@freemail.hu>
6965
6966         * mini.c (mono_method_to_ir): Disable inlining for methods containing
6967         localloc. Fixes #69678.
6968
6969         * iltests.il (test_0_localloc_inline): Add regression test for #69678.
6970         
6971 2004-11-23  Zoltan Varga  <vargaz@freemail.hu>
6972
6973         * mini-amd64.c (mono_arch_output_basic_block): Set %al to the number of
6974         used SSE registers on pinvoke calls. Fixes #69774.
6975
6976 2004-11-23  Geoff Norton  <gnorton@customerdna.com>
6977
6978         * inssel-ppc.brg, mini-ppc.c: Use mono_class_from_mono_type instead of
6979         vt->inst_vtype->data.klass.  This fixes generic structs and bug #69766
6980
6981 2004-11-23  Raja R Harinath  <rharinath@novell.com>
6982
6983         * Makefile.am (MCS,ILASM): Don't refer to runtime/ directory.
6984         Refer directly to the mcs/ tree.
6985
6986 2004-11-19  Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
6987
6988         * mini-s390.c, tramp-s390.c, mini-s390.h: Add LMF processing for trampolines.
6989         Check if a trampoline for a synchronized method is required. 
6990
6991 Fri Nov 19 17:34:21 CET 2004 Paolo Molaro <lupus@ximian.com>
6992
6993         * mini-ppc.c, cpu-g4.md: set to zero the memory allocated
6994         with localloc if needed. Throe arithmetric exception in
6995         div an rem if needed. Implement ovf checks in OP_LCONV_TO_OVF_I.
6996         Adapted from a patch by Geoff Norton  <gnorton@customerdna.com>.
6997
6998 2004-11-19  Geoff Norton  <gnorton@customerdna.com>
6999
7000         * mini-ppc.c: Call mono_type_get_underlying_type to unwrap generic
7001         types before switching on type.  Fixes #69622.
7002
7003 2004-11-19  Raja R Harinath  <rharinath@novell.com>
7004
7005         * Makefile.am (check-local): New.  Integrate into 'make check'.
7006         (MCS,RUNTIME): Define using in-tree mono and mcs.
7007         (ILASM): New.
7008         (%.exe): Use $(ILASM).
7009
7010 Fri Nov 19 14:54:07 CET 2004 Paolo Molaro <lupus@ximian.com>
7011
7012         * mini-ppc.c: adjust initial prolog size (bug #69691).
7013
7014 2004-11-18  Zoltan Varga  <vargaz@freemail.hu>
7015
7016         * cpu-pentium.md (localloc): Increase max instruction len. Fixes
7017         #69664.
7018
7019 2004-11-17  Raja R Harinath  <rharinath@novell.com>
7020
7021         * Makefile.am (clean-local): Rename from 'clean'.
7022
7023 2004-11-15  Nelae Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
7024
7025         * mini.c, mini-x86.c, mini-amd64.c, exceptions-s390.c: Add siginfo_t parameter
7026         to mono_arch_is_int_overflow. 
7027         * exceptions-s390.c: Add mono_arch_is_int_overflow routine to discern between
7028         SIGFPE events.
7029
7030 2004-11-15  Sebastien Pouliot  <sebastien@ximian.com>
7031
7032         * declsec.c|h: New files to support declarative security attributes.
7033         Added function to check if a method has (applicable) security.
7034         * mini.c|h: Add check for declarative security attributes in
7035         mono_method_check_inlining.
7036         * Makefile.am: Added declsec.c and declsec.h to the build.
7037
7038 Mon Nov 15 11:53:46 CET 2004 Paolo Molaro <lupus@ximian.com>
7039
7040         * mini.c, mini.h: update to keep dynamic code info per-domain.
7041
7042 2004-11-12  Zoltan Varga  <vargaz@freemail.hu>
7043
7044         * mini.c mini-*.h: Get rid of MONO_ARCH_HAVE_RETHROW since all architectures support it now.
7045         (mini_init): Get rid of it from here too.
7046
7047 Thu Nov 11 20:17:17 CET 2004 Paolo Molaro <lupus@ximian.com>
7048
7049         * mini-ppc.c, mini-ppc,h, cpu-g5.md, exceptions-ppc.c:
7050         implemented OP_RETHROW (patch by Geoff Norton
7051         <gnorton@customerdna.com>).
7052
7053 2004-11-10  Geoff Norton  <gnorton@customerdna.com>
7054
7055         * tramp-ppc.c (ppc_magic_trampoline): Don't trampoline methods
7056         between appdomains.  Fixes appdomain-unload on PPC.
7057
7058 2004-10-26  Lluis Sanchez Gual  <lluis@novell.com>
7059
7060         * exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
7061         mini-exceptions.c: handle the new wrapper types.
7062         * mini.c: The CEE_ISINST and CEE_CASTCLASS opcodes now take the
7063         token value as a MonoClass* when compiling a wrapper.
7064         mono_jit_create_remoting_trampoline now takes an additional
7065         MonoRemotingTarget parameter.
7066         
7067 2004-11-10  Martin Baulig  <martin@localhost>
7068
7069         * mini.c (mono_method_to_ir): Use `generic_container->context'
7070         rather than creating a new one.
7071
7072 2004-11-09  Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
7073
7074         * exceptions-s390.c, mini-s390, cpu-s390.md: Add support for OP_RETHROW.
7075
7076         * inssel-390.md, mini-s390.c: Correct register allocation for globals.
7077
7078 2004-11-09  Zoltan Varga  <vargaz@freemail.hu>
7079
7080         * aot.c (mono_aot_init): Add MONO_AOT_CACHE env variable to turn on
7081         the experimental aot cache stuff.
7082
7083 Tue Nov 9 17:30:20 CET 2004 Paolo Molaro <lupus@ximian.com>
7084
7085         * aot.c, mini.c, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
7086         mini-exceptions.c: update to exception clause structure changes.
7087
7088 2004-11-08  Zoltan Varga  <vargaz@freemail.hu>
7089
7090         * exceptions-x86.c (throw_exception): Fix warnings.
7091
7092         * mini-x86.h mini-x86.c cpu-pentium.md exceptions-x86.c: Add support 
7093         for OP_RETHROW.
7094
7095 2004-11-08  Zoltan Varga  <vargaz@freemail.hu>
7096
7097         * exceptions-sparc.c (get_throw_exception): Really fix this.
7098
7099 2004-11-07  Ben Maurer  <bmaurer@ximian.com>
7100
7101         * tramp-*.c: we no longer support icalls without wrappers, so
7102         a bit of code can be removed here
7103
7104 2004-11-07  Zoltan Varga  <vargaz@freemail.hu>
7105
7106         * exceptions-sparc.c (get_throw_exception): Fix more bugs in previous
7107         patch.
7108
7109         * cpu-sparc.md: Add op_rethrow.
7110
7111         * exceptions-sparc.c (get_throw_exception): Fix bug in previous patch.
7112
7113         * mini-sparc.h mini-sparc.c exceptions-sparc.c: Add support for OP_RETHROW.
7114
7115         * mini.h: Add mono_arch_get_rethrow_exception () arch specific function.
7116         * mini-ops.h: Add OP_RETHROW.
7117
7118         * mini.c inssel.brg: Distinguish between THROW and RETHROW.
7119
7120         * cpu-amd64.c mini-amd64.c exceptions-amd64.c: Add support for OP_RETHROW.
7121
7122 2004-11-05  Geoff Norton  <gnorton@customerdna.com>
7123         
7124         * helpers.c: Change otool arguments from -V -v -t to -v -t on Darwin
7125         Makes the output much easier to read
7126
7127 2004-11-05  Ben Maurer  <bmaurer@ximian.com>
7128
7129         * ssa.c: allocate MonoMethodVar.uses from the mempool. First, this
7130         prevents another huge leak when compiling with ssa. Secondly, the
7131         performance of doing this rather than freeing the lists is much
7132         better. GList does a lock every time you allocate a list link,
7133         so that it can use a memory pool. So, it is better to just use
7134         a memory pool of our own.
7135         
7136         * ssa.c, linear-scan.c: replace g_list_remove_link with
7137         g_list_delete.  The remove one does not free the GList, so we were
7138         leaking memory. On -O=all --compile-all with corlib, this cut down
7139         3 MB of allocations.
7140
7141 2004-11-05  Zoltan Varga  <vargaz@freemail.hu>
7142
7143         * tramp-sparc.c (mono_arch_create_jit_trampoline): Fix sparc build.
7144
7145         * tramp-amd64.c (mono_arch_create_jit_trampoline): Fix amd64 build.
7146
7147         * mini.h mini.c tramp-*.c: Moved xp parts of JIT trampoline creation
7148         into a new function mono_create_jit_trampoline ().
7149
7150 2004-11-02  Zoltan Varga  <vargaz@freemail.hu>
7151
7152         * trace.c (get_spec): Allow tracing of classes without a namespace.
7153
7154 2004-11-02  Sebastien Pouliot  <sebastien@ximian.com>
7155
7156         * mini.c: Fix pointer overwrite in mini_method_compile.
7157
7158 2004-11-2  Geoff Norton  <gnorton@customerdna.com>
7159
7160         * inssel-ppc.brg (OP_OUTARG_VT (CEE_LDOBJ (base))):
7161         The darwin ABI needs some special handling for 1 and 2 byte structs
7162         Lets use lbz/lhz instead of lwz everywhere.
7163         * mini-ppc.c (calculate_sizes):  The Darwin ABI needs from special handling
7164         for 1 and 2 byte structs and struct which are size >= 3 || size % 4 != 0.
7165         Use stb/sth for the former, and put the latter always on stack instead of in
7166         argument registers.
7167
7168 2004-10-30  Zoltan Varga  <vargaz@freemail.hu>
7169
7170         * trace.c (is_filenamechar): Add '_'.
7171
7172 2004-10-29  Neale Ferguson  <Neale.Ferguson@SoftwareAG-usa.com>
7173
7174         * mini-s390.c: Fix prolog length to allow for large trace requirements.
7175
7176         * exceptions-s390.c: Remove dwarf unwinding stuff that was unused.
7177
7178 2004-10-29  Zoltan Varga  <vargaz@freemail.hu>
7179
7180         * Makefile.am (libgc_libs): Do some automake magic so libmono/mono
7181         depends on libmonogc. Fixes #68805.
7182
7183 2004-10-26  Miguel de Icaza  <miguel@ximian.com>
7184
7185         * mini.c (mono_jit_free_method): Provide extra information for
7186         this error.  Currently this leaks, but will be turned into a
7187         developer option in the future.
7188
7189 2004-10-26  Zoltan Varga  <vargaz@freemail.hu>
7190
7191         * driver.c (mono_main): Applied patch from Willibald Krenn <willibald.krenn@gmx.at>. Make --graph work for icalls and pinvoke methods.
7192
7193 2004-10-25  Zoltan Varga  <vargaz@freemail.hu>
7194
7195         * aot.c (mono_aot_load_method): Align PATCH_INFO_R8 on an 8 byte 
7196         boundary. Fixes reading of PATCH_INFO_R4 and R8.
7197         (mono_aot_load_method): Do not allocate MonoAotMethod in the GC heap.
7198
7199 2004-10-24  Zoltan Varga  <vargaz@freemail.hu>
7200
7201         * mini-amd64.c (mono_arch_patch_code): Fix patching of class init
7202         trampolines for AOT code.
7203
7204 2004-10-22    <vargaz@freemail.hu>
7205
7206         * aot.c (mono_compile_assembly): Disable AOT for methods containing calls to methods of
7207         constructed types. Fixes #68136.
7208
7209 2004-10-21  Martin Baulig  <martin@ximian.com>
7210
7211         * exceptions-x86.c (throw_exception): Call mono_debugger_throw_exception();
7212         if it returns true, unwind the stack to the call instruction.
7213
7214 2004-10-21    <vargaz@freemail.hu>
7215
7216         * aot.c: Reorganize the AOT file format to avoid relocations. Fix warnings.
7217
7218         * mini.h: Bump AOT version number.
7219
7220         * objects.cs: Add another test for unbox trampolines.
7221
7222         * tramp-amd64.c (amd64_magic_trampoline): Disable patching of trampolines for 
7223         valuetype methods.
7224
7225 2004-10-20    <vargaz@freemail.hu>
7226
7227         * driver.c: Add SHARED to the set of optimizations tested.
7228
7229         * tramp-amd64.c (amd64_magic_trampoline): Patch trampoline code as well.
7230
7231         * mini.c (mono_method_to_ir): Mark the domainvar as volatile when it is implicitly
7232         used by CEE_NEWARR.
7233
7234         * ssa.c (mono_ssa_deadce): Do not optimize away accesses to volatile variables.
7235
7236 2004-10-20  Martin Baulig  <martin@ximian.com>
7237
7238         * mini-exceptions.c (mono_handle_exception): Call
7239         mono_debugger_handle_exception() to tell the debugger about
7240         catch/finally clauses.
7241
7242 2004-10-18  Zoltan Varga  <vargaz@freemail.hu>
7243
7244         * exceptions-amd64.c (mono_arch_find_jit_info): Pop arguments of the stack.
7245
7246         * mini-amd64.c (mono_amd64_get_vcall_slot_addr): Handle extended registers. Fixes
7247         #68447.
7248
7249 2004-10-15  Geoff Norton  <gnorton@customerdna.com>
7250
7251         * mini-ppc.c (calculate_sizes): Marshal valuetypes for pinvoke
7252         methods as their native size, fixed bug #57543, #57545.
7253         * mini-ppc.c (mono_arch_output_basic_block): Use mulli for imm16 types
7254         This saves a temporary register and mullw call down into 1 (minor perf
7255         increase for cases like sum = sum * 5;  This use to translate into:
7256             li r11,5
7257             mullw r28,r28,r11
7258         It now translates to
7259             mulli r28,r28,5
7260
7261 2004-10-15  Zoltan Varga  <vargaz@freemail.hu>
7262
7263         * trace.c (mono_trace_eval): Use mono_method_desc_full_match. Fixes
7264         #68388.
7265
7266 2004-10-11  Martin Baulig  <martin@ximian.com>
7267
7268         * mini.c (mono_method_to_ir): If we're a generic method, get the
7269         MonoGenericContainer from our MonoMethodNormal and create a
7270         MonoGenericContext from it.
7271
7272 2004-10-08  Zoltan Varga  <vargaz@freemail.hu>
7273
7274         * inssel-long32.brg (OP_LCONV_TO_OVF_I2): Fix CONV_I1 -> CONV_I2.
7275
7276         * basic-long.cs: Add test for checked i8->i2 cast.
7277
7278 Wed Oct 6 12:40:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
7279
7280         * inssel-ppc.brg: added a couple of speedup rules.
7281
7282 2004-10-05  Zoltan Varga  <vargaz@freemail.hu>
7283
7284         * Makefile.am (genmdesc_LDADD): Don't link this against libmetadata
7285         to speed up rebuilds.
7286
7287 2004-10-04  Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
7288
7289         * mini-s390.c: Minor fix to OP_OR_IMM.
7290
7291 2004-10-03  Zoltan Varga  <vargaz@freemail.hu>
7292
7293         * tramp-sparc.c (sparc_magic_trampoline): Handle appdomain stuff
7294         better. Fixes appdomain-unload.exe on sparc.
7295
7296 2004-10-02  Massimiliano Mantione  <massi@ximian.com>
7297
7298         * ssa.c: Fixed casts to unsigned where the value was of 64 bits in
7299         simulate_long_compare, patch by will@exomi.com (Ville-Pertti Keinonen),
7300         see bug 67324.
7301
7302 2004-10-02  Zoltan Varga  <vargaz@freemail.hu>
7303
7304         * jit-icalls.c: Handle a nonexisting trunc function more correctly.
7305
7306 2004-09-30  Lluis Sanchez Gual  <lluis@novell.com>
7307
7308         * mini.c: Always generate a field read/write wrapper for members
7309         of the class MarshalByRefObject since the actual instance could
7310         be a CBO.
7311
7312 2004-09-28  Lluis Sanchez Gual  <lluis@novell.com>
7313
7314         * mini.c: Use mono_thread_exit() to stop threads, instead of ExitThread.
7315
7316 2004-09-28  Zoltan Varga  <vargaz@freemail.hu>
7317
7318         * driver.c mini.h trace.c: Move the setting of the main assembly into
7319         a separate function called mono_trace_set_assembly () and call it after
7320         actually loading the main assembly. Fixes #66872.
7321
7322 2004-09-25  Zoltan Varga  <vargaz@freemail.hu>
7323
7324         * mini-amd64.h mini-amd64.c tramp-amd64.c: Allocate trampoline memory
7325         using the code manager.
7326
7327 2004-09-24  Zoltan Varga  <vargaz@freemail.hu>
7328
7329         * tramp-amd64.c mini-amd64.h: Add support for MONO_ARCH_HAVE_INVALIDATE_METHOD.
7330
7331 2004-09-23  Zoltan Varga  <vargaz@freemail.hu>
7332
7333         * cpu-amd64.md: Fix bug in previous patch.
7334         
7335         * cpu-amd64.md: Fix instruction lengths of membase opcodes. Fixes
7336         #66650.
7337
7338 Wed Sep 22 19:03:20 CEST 2004 Paolo Molaro <lupus@ximian.com>
7339
7340         * mini.h, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
7341         mini-exceptions.c: updates for changed stack walk interface.
7342
7343 2004-09-21  Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
7344
7345         * mini-s390.c, cpu-s390.md: Minor changes to OP_ARGLIST handling
7346
7347 2004-09-17  Zoltan Varga  <vargaz@freemail.hu>
7348
7349         * mini.c (mono_method_to_ir): Fix LDSTR in dynamic methods. Fixes #66132.
7350
7351 2004-09-13  Zoltan Varga  <vargaz@freemail.hu>
7352
7353         * driver.c (mini_regression_list): Do not call mono_assembly_close 
7354         since assemblies can't be unloaded.
7355         
7356 2004-09-11  Zoltan Varga  <vargaz@freemail.hu>
7357
7358         * cpu-amd64.md: Fix more instruction lengths.
7359
7360         * cpu-amd64.md: Fix lengths of some instructions.
7361
7362 2004-09-11 Ben Maurer  <bmaurer@users.sourceforge.net>
7363
7364         * inssel.brg: Make the array ldelema check aot friendly.
7365
7366 2004-09-11  Zoltan Varga  <vargaz@freemail.hu>
7367
7368         * mini-amd64.c (mono_arch_get_argument_info): Fix stack_unwind test.
7369
7370         * cpu-amd64.md inssel-long.brg inssel-amd64.brg: Small optimizations.
7371
7372 2004-09-10  Zoltan Varga  <vargaz@freemail.hu>
7373
7374         * mini-x86.c: Fix build.
7375
7376         * mini-sparc.c mini-x86.c mini-amd64.c: Use the new 
7377         mono_type_get_underlying_type () helper function to simplify code.
7378         
7379 2004-09-09  Martin Baulig  <martin@ximian.com>
7380
7381         * mini-amd64.c: Don't access `type->data.klass' directly, call
7382         mono_class_from_mono_type() instead since the type may be a
7383         generic instance.
7384
7385 2004-09-09  Martin Baulig  <martin@ximian.com>
7386
7387         * mini-amd64.c (get_call_info): Fix support for generic instances.
7388         (add_valuetype): Use mono_class_from_mono_type() to get the class
7389         since we can be a generic instance.
7390
7391 Thu Sep 9 01:43:53 PDT 2004 Paolo Molaro <lupus@ximian.com>
7392
7393         * mini-ppc.c, mini.h, regalloc.c, regalloc.h: powerpc speedups.
7394
7395 2004-09-07 Ben Maurer  <bmaurer@users.sourceforge.net>
7396
7397         * liveness.c: reset spill costs on each scan: bug 62107
7398
7399 2004-09-07  Bernie Solomon  <bernard@ugsolutions.com>
7400
7401         * exceptions-sparc.c (mono_arch_find_jit_info): remove
7402         unnecessary line that doesn't compile
7403
7404 2004-09-07  Zoltan Varga  <vargaz@freemail.hu>
7405
7406         * mini.c mini.h mini-x86.h tramp-x86.c: Instead of freeing delegate
7407         trampolines, make them call an error function so people can fix their
7408         code.
7409
7410 2004-09-06  Martin Baulig  <martin@ximian.com>
7411
7412         * mini.c (mono_method_to_ir): When initializing locals, handle a
7413         generic instances like a valuetype if it's a valuetype and like a
7414         class if it's a class.
7415
7416 2004-09-06  Zoltan Varga  <vargaz@freemail.hu>
7417
7418         * exceptions-x86.c (mono_arch_find_jit_info): Pop arguments off the
7419         stack. Fixes #64674.
7420
7421         * exceptions.cs: Add test for unwinding of call arguments.
7422
7423 Mon Sep 6 05:50:02 PDT 2004 Paolo Molaro <lupus@ximian.com>
7424
7425         * mini-*.c, mini-ops.h, inssel-long32.brg: introduced
7426         OP_ADDCC_IMM and OP_SUBCC_IMM (add/sub immediate that will
7427         set the carry/borrow flag). The sparc and s390 implementations
7428         can now use optimized versions (and simplify the code). ppc bugfixes.
7429
7430 2004-09-06  Zoltan Varga  <vargaz@freemail.hu>
7431
7432         * exceptions-ppc.c (mono_arch_find_jit_info): Fix memory leak.
7433
7434 2004-09-05  Zoltan Varga  <vargaz@freemail.hu>
7435
7436         * inssel-amd64.brg: Remove leftover 32 bit rule.
7437
7438         * mini-amd64.c (mono_arch_instrument_prolog): Fix tracing support.
7439
7440 2004-09-04  Zoltan Varga  <vargaz@freemail.hu>
7441
7442         * mini-exceptions.c (mono_find_jit_info): Refactor common code from
7443         mono_arch_find_jit_info functions into a new function. Fix a memory
7444         leak.
7445
7446         * exceptions-x86.c exceptions-amd64.c exceptions-sparc.c: Remove
7447         refactored code.
7448         
7449 2004-09-02  Zoltan Varga  <vargaz@freemail.hu>
7450
7451         * exceptions.cs inssel-long32.brg: Handle the OP_LCONV_TO_OVF_I2 case
7452         as well.
7453         
7454         * exceptions.cs: Add array size tests.
7455
7456         * mini.c: Allocate a separate icall wrapper for each arity of 
7457         mono_array_new_va. Fixes #59509.
7458
7459         * exceptions.cs: Add testcase for 64578.
7460
7461         * inssel-long32.brg: Fix OP_LCONV_TO_OVF_I1 rule. Fixes #64578.
7462
7463         * trace.c (is_filenamechar): Allow 0..9 in strings. Fixes #65094.
7464         
7465 2004-09-02  Martin Baulig  <martin@ximian.com>
7466
7467         * mini.c (mono_method_to_ir): When initializing the locals, call
7468         handle_initobj() on the generic instance itself, not its
7469         underlying type.
7470
7471 2004-09-02  Zoltan Varga  <vargaz@freemail.hu>
7472
7473         * mini.h (MonoJitDynamicMethodInfo): New structure, extension of 
7474         MonoJitInfo for dynamic methods.
7475
7476         * mini.c: Rename trampoline_hash_mutex to jit_mutex.
7477
7478         * mini.c: Add support for freeing JIT data for dynamic methods.
7479         
7480 2004-09-01  Martin Baulig  <martin@ximian.com>
7481
7482         * mini-x86.c (is_regsize_var): Added support for generic
7483         instances.
7484         (mono_arch_emit_prolog): Make this compile again, use
7485         `x86_push_imm_template (code)'.
7486
7487 2004-08-30 Ben Maurer  <bmaurer@users.sourceforge.net>
7488
7489         * mini-x86.c: make all push_imm instructions that get
7490         patched always emit the long form
7491
7492 2004-08-30  Zoltan Varga  <vargaz@freemail.hu>
7493
7494         * mini.c (mono_create_jump_trampoline): Store the jump trampolines 
7495         in a per-domain hash.
7496
7497         * mini-amd64.c (merge_argument_class_from_type): Handle generic
7498         types.
7499
7500 2004-08-29  Zoltan Varga  <vargaz@freemail.hu>
7501
7502         * mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: Ongoing SSE
7503         work.
7504         
7505         * mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: More SSE
7506         work.
7507
7508         * mini-amd64.c cpu-amd64.md: Implement checked int<->uint casts.
7509         Beginnings of SSE2 support.
7510
7511         * exceptions.cs: Add more tests for checked int<->uint casts.
7512
7513 2004-08-28  Martin Baulig  <martin@ximian.com>
7514
7515         * mini-x86.c (mono_arch_instrument_epilog): Added support for
7516         generic instances.
7517
7518         * mini.c
7519         (mono_type_to_ldind, mono_type_to_stind, type_to_eval_stack_type):
7520         Handle generic instances recursively.
7521
7522 2004-08-27 Ben Maurer  <bmaurer@users.sourceforge.net>
7523
7524         * iltests.il: test for conv.u8 on a constant
7525
7526 2004-08-27 Ben Maurer  <bmaurer@users.sourceforge.net>
7527
7528         * inssel-long32.brg: c&p rules for LCONV_x4 (membase) and
7529         LCONV_x4 (shrun_32 (membase)).
7530
7531 2004-08-27 Ben Maurer  <bmaurer@users.sourceforge.net>
7532
7533         * inssel-x86.brg: c&p rules for push/setret of long
7534
7535 2004-08-26 Ben Maurer  <bmaurer@users.sourceforge.net>
7536
7537         * inssel-x86.brg: c&p rules for compare (base, regvar) and
7538         compare (regvar, base)
7539
7540         * inssel-x86.brg: more burg love
7541
7542         * inssel.brg: more cleanup
7543
7544         * inssel-x86.brg, inssel-long32.brg: burg cleanup.
7545
7546 2004-08-26 Ben Maurer  <bmaurer@users.sourceforge.net>
7547
7548         * basic-long.cs, basic-calls.cs: new tests for optimization.
7549
7550 2004-08-26  Zoltan Varga  <vargaz@freemail.hu>
7551
7552         * mini-amd64.c (read_tls_offset_from_method): Fix typo in previous
7553         patch.
7554
7555 2004-08-25  Zoltan Varga  <vargaz@freemail.hu>
7556
7557         * mini-amd64.c (read_tls_offset_from_method): Add another case.
7558         
7559 2004-08-25  Bernie Solomon  <bernard@ugsolutions.com>
7560
7561         * inssel.brg (mini_emit_memcpy): use 
7562         NO_UNALIGNED_ACCESS to disable memcpy optimization
7563
7564 2004-08-25  Zoltan Varga  <vargaz@freemail.hu>
7565
7566         * mini-amd64.c: Handle generic types in various places.
7567
7568         * mini.c (mono_method_to_ir): Handle generic types in init locals.
7569
7570 2004-08-24  Zoltan Varga  <vargaz@freemail.hu>
7571
7572         * mini.c (handle_box): Fix warning.
7573
7574         * mini-amd64.c (mono_arch_local_regalloc): Fix regalloc problem.
7575
7576         * mini-amd64.h: Enable the emit_state optimization.
7577
7578         * mini-ops.h cpu-amd64.md: Add new amd64_test_null opcode.
7579
7580         * mini-amd64.c: Add some new 64 bit peephole opts.
7581
7582         * inssel.brg (mini_emit_memcpy): Optimize for 64 bit architectures.
7583
7584         * cpu-amd64.md: sreg1 of div instructions must be %rax.
7585
7586         * mini-amd64.c: Register allocator fixes.
7587
7588         * mini.c: Add an optimization to emit_state to avoid allocation of new
7589         registers on some platforms.
7590
7591 2004-08-23  Zoltan Varga  <vargaz@freemail.hu>
7592
7593         * inssel-x86.brg inssel-amd64: Add yet another missing tree->dreg assignment.
7594
7595         * mini-x86.c (mono_arch_local_regalloc): Fix bug in long register
7596         allocation. Fixes #63085.
7597
7598         * basic-long.cs: Add new regression test.
7599
7600         * mini-amd64.c: Register allocator improvements.
7601
7602 2004-08-21  Zoltan Varga  <vargaz@freemail.hu>
7603
7604         * mini-amd64.c (read_tls_offset_from_method): Add another code
7605         sequence.
7606
7607         * tramp-amd64.c (amd64_class_init_trampoline): Use a more efficient
7608         instruction sequence for nullifying class init trampolines.
7609
7610         * objects.cs: Add new regalloc test.
7611
7612         * mini-amd64.c inssel-amd64.brg: Optimize parameter passing.
7613
7614 2004-08-20  Zoltan Varga  <vargaz@freemail.hu>
7615
7616         * mini-amd64.c (mono_arch_call_opcode): Refactor this a little.
7617         
7618         * mini-amd64.c (mono_arch_regalloc_cost): Adjust regalloc costs for
7619         arguments.
7620
7621         * driver.c: Fix profiling after TLS changes.
7622         
7623         * driver.c (mono_main): Set mono_stats.enabled if needed.
7624
7625         * mini.c (handle_alloc): New helper function used by CEE_NEWOBJ and
7626         CEE_BOX.
7627
7628 2004-08-20 Ben Maurer  <bmaurer@users.sourceforge.net>
7629
7630         * mini-x86.c: use a 1 op rather than a 2 op tls access
7631         instruction -> faster.
7632
7633 2004-08-20  Zoltan Varga  <vargaz@freemail.hu>
7634
7635         * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
7636         x86 backend.
7637
7638 2004-08-19 Bernie Solomon <bernard@ugsolutions.com>
7639
7640         * exceptions-sparc.c (throw_exception): fix typo
7641
7642 2004-08-19 Ben Maurer  <bmaurer@users.sourceforge.net>
7643
7644         * mini-x86.c, cpu-pentium.md, inssel-x86.brg:
7645         set tree->dreg correctly with tls. Allow any
7646         register to be used.
7647
7648         * mini-x86.c (read_tls_offset_from_method): add new code
7649         generation pattern seen with GCC.
7650
7651
7652 Thu Aug 19 17:26:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
7653
7654         * mini-exceptions.c, exceptions-x86.c, exceptions-amd64.c,
7655         exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
7656         exceptions-sparc.c: fix some performance issues in exception
7657         handling and setting of the stack trace for exceptions that were
7658         already thrown.
7659
7660 2004-08-18  Zoltan Varga  <vargaz@freemail.hu>
7661
7662         * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from 
7663         x86 backend.
7664         
7665         * mini-amd64.c (mono_arch_is_int_overflow): Handle all possible 
7666         registers.
7667
7668 2004-08-18 Ben Maurer  <bmaurer@users.sourceforge.net>
7669
7670         This patch inlines tls access, when possible.
7671         
7672         * mini.h: new arch functions for TLS intrinsics.
7673         All platforms updated with a stub.
7674
7675         * mini.c: use the new intrinsics
7676
7677         * mini-x86.c, cpu-pentium.md, inssel-x86.brg, mini-ops.h:
7678         arch specific intrinsic for tls variables
7679
7680 2004-08-18  Zoltan Varga  <vargaz@freemail.hu>
7681
7682         * Makefile.am (libmono_la_LDFLAGS): Enable creating of libmono dll
7683         under windows.
7684
7685 2004-08-17 Ben Maurer  <bmaurer@users.sourceforge.net>
7686
7687         * mini.c: thread local allocation
7688
7689 2004-08-16  Zoltan Varga  <vargaz@freemail.hu>
7690
7691         * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Enable.
7692
7693         * Makefile.am: Link against the static version of libmonogc.
7694         
7695         * Makefile.am: Link the static versions of the convenience libraries
7696         into the mono executable.
7697
7698         * mini-x86.h mini-x86.c: Throw the correct exception on integer overflow.
7699
7700 2004-08-15  Zoltan Varga  <vargaz@freemail.hu>
7701
7702         * mini.h mini.c mini-amd64.h mini-amd64.c: Throw the correct exception
7703         on integer overflow.
7704
7705         * mini-amd64.c: Reorganize function call code.
7706
7707         * mini-amd64.c (peephole_pass): Merge changes from mini-x86.c.
7708
7709 2004-08-14 Ben Maurer  <bmaurer@ximian.com>
7710
7711         * inssel-x86.brg: use xor eax,eax.
7712         
7713         * basic.cs: new tests
7714
7715 2004-08-14  Zoltan Varga  <vargaz@freemail.hu>
7716
7717         * mini-amd64.c (mono_arch_emit_epilog): Use RIP relative addressing
7718         in exception throwing code.
7719         
7720 2004-08-14 Ben Maurer  <bmaurer@ximian.com>
7721
7722         * inssel-x86.brg: use xor esi,esi.
7723
7724 2004-08-14  Zoltan Varga  <vargaz@freemail.hu>
7725
7726         * driver.c (mono_main): Call mono_trace_parse_options earlier so it
7727         can trace methods compiled during mini_init () too.
7728
7729         * cpu-amd64.md mini-amd64.c (mono_arch_output_basic_block): Handle 
7730         CEE_CONV_U4.
7731
7732 2004-08-14 Ben Maurer  <bmaurer@ximian.com>
7733
7734         * Makefile.am: static link on x86 (r=zoltan)
7735
7736 2004-08-14  Zoltan Varga  <vargaz@freemail.hu>
7737
7738         * tramp-amd64.c (amd64_magic_trampoline): Avoid patching the trampoline
7739         code since it causes some programs to fail.
7740
7741 2004-08-12  Zoltan Varga  <vargaz@freemail.hu>
7742
7743         * mini-amd64.c (bb_is_loop_start): Merge changes from mini-x86.c.
7744
7745 2004-08-11  Bernie Solomon <bernard@ugsolutions.com>
7746
7747         * mini.c: ovfops_op_map - add STACK_OBJ case for
7748         CONV_I 
7749         * basic.cs: add test_0_pin_string as test
7750         case for above.
7751
7752 2004-08-11  Bernie Solomon <bernard@ugsolutions.com>
7753
7754         * Makefile.am: build C# if srcdir != builddir
7755
7756 Tue Aug 10 19:23:47 CEST 2004 Paolo Molaro <lupus@ximian.com>
7757
7758         * dominators.c, mini.h, mini-x86.c: fix loop alignment with
7759         fall-through blocks.
7760
7761 Tue Aug 10 16:18:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
7762
7763         * driver.c: enable loop by default again and include abcrem in -O=all.
7764
7765 2004-08-08  Zoltan Varga  <vargaz@freemail.hu>
7766
7767         * iltests.il: Add some localloc tests.
7768
7769         * mini.c (mono_method_to_ir): Set stack type of LOCALLOC correctly.
7770
7771         * inssel-amd64.brg inssel-x86.brg: Set dreg of LOCALLOC correctly. 
7772         Fixes #62574.
7773
7774         * inssel-amd64.brg: Add some optimizations.
7775
7776         * mini-amd64.c (mono_arch_setup_jit_tls_data): Add tls offset detection
7777         for gcc-3.4.
7778
7779         * Makefile.am: Statically link mono against libmono on AMD64.
7780         
7781         * mini-amd64.c inssel-amd64.brg: Optimizations.
7782
7783 2004-08-07  Zoltan Varga  <vargaz@freemail.hu>
7784
7785         * mini-amd64.c (mono_arch_emit_prolog): Optimize lmf saving a bit.
7786
7787         * tramp-amd64.c: Patch calling code in trampolines.
7788
7789 2004-08-06  Zoltan Varga  <vargaz@freemail.hu>
7790
7791         * mini-amd64.c: pinvoke struct passing fixes.
7792
7793 2004-08-05  Bernie Solomon  <bernard@ugsolutions.com>
7794
7795         * mini-sparc.c: redo change, make mono_arch_cpu_init call
7796         mono_arch_cpu_optimizazions so sparcv9 is initialized when embedded
7797
7798 2004-08-05  Duncan Mak  <duncan@ximian.com>
7799
7800         * mini.c: Renamed CEE_STELEM to CEE_STELEM_ANY and CEE_LDELEM to
7801         CEE_LDELEM_ANY.
7802
7803 2004-08-05  Zoltan Varga  <vargaz@freemail.hu>
7804
7805         * mini-amd64.c (emit_move_return_value): Move return value for normal
7806         calls too.
7807
7808 2004-08-05  Martin Baulig  <martin@ximian.com>
7809
7810         * mini.c (ret_type_to_call_opcode): Don't use a `t' variable for
7811         `type->type'; just modify `type' itself when dealing with enums
7812         and generic instances.
7813         (check_call_signature): Make `simple_type' a `MonoType *'.
7814
7815 2004-08-05  Zoltan Varga  <vargaz@freemail.hu>
7816
7817         * mini.c: Use OP_PADD to add offsets to addresses.
7818
7819         * mini-amd64.h: Disable SIGSEGV_ON_ALTSTACK.
7820
7821 2004-08-04  Bernie Solomon  <bernard@ugsolutions.com>
7822
7823         * mini-sparc.c (mono_arch_emit_epilog): fix check
7824         for folding last op into restore instruction
7825
7826 2004-08-05  Zoltan Varga  <vargaz@freemail.hu>
7827
7828         * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Allocate
7829         helper methods using the code manager.
7830         
7831         * exceptions-amd64.c (mono_arch_get_throw_exception): Fix maximum length.
7832
7833         * mini-amd64.c (mono_arch_allocate_vars): Fix tls offset detection.
7834
7835 Tue Aug 3 23:50:00 EST 2004 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
7836         
7837         * mini-s390x.c mini-s390x.h tramp-s390x.c inssel-s390x.brg
7838           cpu-s390x.md exceptions-s390x.c Makefile.am: S/390 64-bit JIT
7839
7840         * mini-s390.c: fix tail processing
7841
7842 Tue Aug 3 01:35:44 PDT 2004 Paolo Molaro <lupus@ximian.com>
7843
7844         * mini-ppc.c: mul.ovf.un exception name fix.
7845
7846 2004-08-03  Martin Baulig  <martin@ximian.com>
7847
7848         * mini-x86.c (mono_arch_call_opcode): Correctly handle generic
7849         instances; before jumping to `handle_enum', also modify `ptype'.
7850
7851 2004-08-02  Bernie Solomon  <bernard@ugsolutions.com>
7852
7853         * cpu-sparc.md: fcall maximal length too small.
7854
7855 2004-08-02  Zoltan Varga  <vargaz@freemail.hu>
7856
7857         * mini-amd64.c mini.h: Add initial support for passing/returning 
7858         structures to/from pinvoked methods.
7859
7860 Mon Aug 2 11:59:35 PDT 2004 Paolo Molaro <lupus@ximian.com>
7861
7862         * mini-ppc.c: reg allocator fix.
7863
7864 2004-07-31  Zoltan Varga  <vargaz@freemail.hu>
7865
7866         * mini-amd64.c (mono_arch_output_basic_block): Fix OP_X86_PUSH_OBJ.
7867
7868         * inssel.brg: Optimize memset on 64 bit machines.
7869
7870         * mini-amd64.c: Fix some vararg cases.
7871
7872 2004-07-30  Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
7873
7874         * mini-s390.c: Corrected macro in emit_float_to_int
7875
7876         * s390-abi.cs: Tests to exercise the s390 ABI
7877
7878 2004-07-30  Zoltan Varga  <vargaz@freemail.hu>
7879
7880         * exceptions-amd64.c (mono_arch_find_jit_info): Fix restoring of
7881         caller saved regs.
7882
7883         * basic.cs: Add a test for add.ovf.un.
7884
7885 2004-07-30  Bernie Solomon  <bernard@ugsolutions.com>
7886
7887         * mini-sparc.c: add case for OP_IDIV_UN
7888
7889 2004-07-30  Zoltan Varga  <vargaz@freemail.hu>
7890
7891         * mini-amd64.c mini-amd64.h mini.c: Add support for vararg pinvoke calls.
7892         
7893         * mini-amd64.c cpu-amd64.md: Ongoing JIT work.
7894
7895 2004-07-30  Ben Maurer  <bmaurer@ximian.com>
7896
7897         * basic.cs: regression tests.
7898
7899         * inssel-x86.brg: Disable cmp BYTE PTR [eax], imm, it causes various
7900         regressions.
7901
7902 2004-07-30  Zoltan Varga  <vargaz@freemail.hu>
7903
7904         * basic.cs: Add a new test.
7905
7906         * mini-amd64.c aot.c cpu-amd64.md: Add support for tracing, profiling 
7907         and AOT. Various fixes and optimizations.
7908
7909         * inssel.brg (CALL_REG): Add 64 bit versions of call_reg rules.
7910
7911 Fri Jul 30 15:49:26 CEST 2004 Paolo Molaro <lupus@ximian.com>
7912
7913         * mini-ppc.c: make sure temp regs are not used for global reg
7914         allocation.
7915
7916 2004-07-29  Bernie Solomon  <bernard@ugsolutions.com>
7917
7918         * cpu-sparc.md: conv_i8 fix for 64bits
7919
7920         * mini-sparc.c: add cases for OP_IXXX codes for 64bits
7921
7922 2004-07-29  Ben Maurer  <bmaurer@ximian.com>
7923         
7924         * cpu-pentium.md, mini-x86.c, inssel-x86.brg, mini-ops.h:
7925         add opcode for cmp BYTE PTR [eax], imm.
7926
7927         * inssel.brg: Make memcpy and memset takes bases.
7928
7929 2004-07-28  Zoltan Varga  <vargaz@freemail.hu>
7930
7931         * *-amd64.*: More AMD64 work.
7932         
7933 2004-07-28  Ben Maurer  <bmaurer@ximian.com>
7934
7935         * cpu-pentium.md, inssel-x86.brg, mini-ops.h, mini-x86.c:
7936         add a compare-not-equal opcode.
7937         
7938 2004-07-28  Lluis Sanchez Gual  <lluis@novell.com>
7939
7940         * mini.c: Use mono_init_from_assembly instead of mono_init.
7941         
7942 2004-07-28  Zoltan Varga  <vargaz@freemail.hu>
7943
7944         * mini.c: Fix opcode mapping for STACK_MP on 64 bit platforms.
7945
7946         * mini.c (CEE_NEWOBJ): Call mono_array_new_va using the correct signature.
7947
7948         * mini.c: Use MONO_ARCH_SIGACTION on AMD64 as well.
7949
7950         * inssel.brg: 64 bit fixes.
7951
7952         * mini.h (MonoCallInst): Add some AMD64 specific data.
7953
7954         * mini.h: Add some OP_P opcodes.
7955
7956 2004-07-28  Ben Maurer  <bmaurer@ximian.com>
7957
7958         * basic.cs: tests for 61797 and 61740
7959
7960 Tue Jul 27 16:05:19 CEST 2004 Paolo Molaro <lupus@ximian.com>
7961
7962         * mini-ppc.c, mini-sparc.c, mini-s390.c: keep track of line
7963         numbers in the debug info (spotted by Geoff Norton, <gnorton@customerdna.com>).
7964
7965 2004-07-24  Zoltan Varga  <vargaz@freemail.hu>
7966
7967         * mini-sparc.c (mono_arch_output_basic_block): Add CEE_CONV_U8/I8.
7968
7969         * *-amd64*.*: Ongoing AMD64 work.
7970
7971 2004-07-23 Zoltan Varga <vargaz@freemail.hu>
7972
7973         * inssel-long.brg: Implement CONV_I8/CONV_U8 in the backends.
7974
7975         * *-amd64*: Ongoing AMD64 work.
7976
7977         * mini-arch.h: Add AMD64 support.
7978
7979         * mini-sparc.c (mono_arch_is_inst_imm): New arch dependent function.
7980
7981         * mini.h: Add new arch dependent function mono_arch_is_inst_imm.
7982
7983         * mini-ops.h: Add new opcodes.
7984
7985         * Makefile.am: Add AMD64 support.
7986
7987         * inssel.brg inssel-long32.brg inssel-long.brg: Move mul/div and shift
7988         rules into the inssel-long*.brg files.
7989
7990         * *-amd64.*: Add beginnings of AMD64 backend.
7991
7992 2004-07-22  Ben Maurer  <bmaurer@ximian.com>
7993
7994         * mini.c (print_dfn): commenting out the code that prints
7995         the cil. With -O=deadce, this makes -v -v crash.
7996         
7997         * cpu-pentium.md: make checkthis have a length of 2
7998
7999 2004-04-21  Bernie Solomon  <bernard@ugsolutions.com>
8000
8001         * mini-sparc.h: fix implementations of __builtin
8002         functions for Sun compiler for V9.
8003
8004 2004-07-16  Ben Maurer  <bmaurer@ximain.com>
8005
8006         * mini.c: use the new stelem.ref wrapper
8007         * exceptions.cs, arrays.cs: new stelem.ref tests
8008
8009 Wed Jul 14 19:08:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
8010
8011         * mini-ppc.c, exceptions-ppc.c: cleanups and fixes (the
8012         new XSP should work with these changes).
8013
8014 2004-07-14  Ben Maurer  <bmaurer@ximain.com>
8015         
8016         * inssel-{long32,x86,}.brg: trivial optimizations.
8017         
8018 Mon Jul 12 20:25:57 CEST 2004 Paolo Molaro <lupus@ximian.com>
8019
8020         * mini.c: load value when emitting box operation in
8021         constrained calls.
8022
8023 2004-07-12  Ben Maurer  <bmaurer@ximian.com>
8024
8025         * mini-x86.c (OP_CHECK_THIS): cmp DWORD PTR [eax], eax
8026         is one byte shorter than cmp DWORD PTR [eax], 0.
8027
8028 Mon Jul 12 17:47:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
8029
8030         * inssel-ppc.brg: arguments on the stack are always
8031         relative to the stack pointer (spotted by Neale Ferguson).
8032
8033 2004-07-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8034
8035         * exceptions-x86.c: delay appending the method name to the trace until
8036         after mono_jit_info_table_find is called, as this gets the real
8037         MonoMethod.
8038
8039 2004-07-09  Ben Maurer  <bmaurer@ximian.com>
8040
8041         * aot.c: register roots
8042
8043 2004-07-09  Atsushi Enomoto  <atsushi@ximian.com>
8044
8045         * aot.c : I could just use PLATFORM_WIN32 flag.
8046
8047 2004-07-09  Atsushi Enomoto  <atsushi@ximian.com>
8048
8049         * aot.c : Reverting the previous fix. This time it broke linux build.
8050
8051 2004-07-09  Atsushi Enomoto  <atsushi@ximian.com>
8052
8053         * aot.c : quick cygwin build fix. mkdir() with two args does not exist.
8054
8055 2004-07-08  Zoltan Varga  <vargaz@freemail.hu>
8056
8057         * mini.c (handle_stack_args): Remove some more debugging code.
8058         
8059         * mini.c (handle_stack_args): Remove debug output left in by mistake.
8060
8061         * driver.c mini.h aot.c: Allow additional options to be specified with
8062         --aot and pass them to mono_compile_assembly.
8063
8064         * aot.c: Add experimental code to AOT compile all loaded assemblies
8065         on demand and save the code into a cache in the filesystem.
8066
8067         * aot.c: Add support for more wrapper methods.
8068         
8069         * mini.c (handle_stack_args): Handle some corner cases. Fixes 
8070         58863.
8071
8072         * cpu-*.md: Remove removed opcodes.
8073
8074         * mini.h mini.c: Move JIT icall handling to icall.c. Replace usage of
8075         CEE_MONO_PROC<x> with CEE_MONO_ICALL. Move registration of marshalling
8076         related icalls to marshal.c.
8077
8078 2004-07-06  Zoltan Varga  <vargaz@freemail.hu>
8079
8080         * mini-ops.h: Add OP_SAVE_LMF and OP_RESTORE_LMF.
8081
8082         * Makefile.am (EXTRA_DIST): Add inssel-long[32].brg.
8083
8084         * inssel.brg: Fix warning. Add rules for SAVE_LMF and RESTORE_LMF.
8085
8086 2004-07-06  Ben Maurer  <bmaurer@ximian.com>
8087         * liveness.c: If liveness is recomputated we need to reset the information
8088         for each variable. This way, if the liveness range has been narrowed
8089         by optimizations that happened after the last computation, we can return
8090         a smaller range.
8091         
8092         For example, if you have
8093         
8094         {
8095                 int i = 0;
8096                 
8097                 // Tons of code that does not affect i
8098                 
8099                 i = foo ();
8100                 ...
8101         }
8102         
8103         i = 0 is dead code and will be removed by SSA. However, when
8104         linear scan gets to the code, i will still appear to be live
8105         throughout the entire block. This prevents good register allocation.
8106
8107 2004-07-06  Martin Baulig  <martin@ximian.com>
8108
8109         * debug-mini.c (mono_debug_init_method): Allow
8110         MONO_WRAPPER_MANAGED_TO_NATIVE wrappers.
8111         (mono_debug_add_icall_wrapper): New method.
8112
8113         * mini.c (mono_icall_get_wrapper): Call mono_debug_add_icall_wrapper().
8114
8115 2004-07-05  Zoltan Varga  <vargaz@freemail.hu>
8116
8117         * mini.c (optimize_branches): Fix linking of bblocks in branch->branch
8118         optimization.
8119
8120 2004-07-03  Zoltan Varga  <vargaz@freemail.hu>
8121
8122         * aot.c (mono_aot_load_method): Fix loading of debug info.
8123
8124 2004-07-02  Zoltan Varga  <vargaz@freemail.hu>
8125
8126         * aot.c: Add logging support.
8127
8128 2004-07-01  Zoltan Varga  <vargaz@freemail.hu>
8129
8130         * mini.h: Add prototype for mono_print_method_from_ip.
8131
8132         * mini.c: 64 bit fixes. Use LCOMPARE for comparing longs.
8133
8134         * inssel.brg: 64 bit fixes.
8135
8136         * inssel.brg inssel-long32.brg: Move 32 bit arithmetic rules to 
8137         inssel-long32.brg.
8138
8139         * Makefile.am: Add SPARC64 support.
8140
8141 2004-07-02  Zoltan Varga  <vargaz@freemail.hu>
8142
8143         * aot.c: Fix alignment problems on 32 bit platforms.
8144
8145 2004-07-01  Zoltan Varga  <vargaz@freemail.hu>
8146
8147         * helpers.c (mono_disassemble_code): Pass -xarch=v9 to assembler on
8148         SPARC64.
8149
8150         * aot.c: Add SPARC64 support. Reorganize patch table to fix alignment
8151         problems.
8152
8153         * mini.h: Bump AOT file version. Some 64 bit fixes.
8154
8155 2004-06-30  Zoltan Varga  <vargaz@freemail.hu>
8156
8157         * inssel-sparc.brg: Add new rule to avoid register moves.
8158
8159         * inssel.brg: Add ldind_to_load_membase helper function.
8160
8161 2004-06-30  Ben Maurer  <bmaurer@ximian.com>
8162
8163         * mini.c: OffsetToStringData intrinsic.
8164         
8165 2004-06-30  Zoltan Varga  <vargaz@freemail.hu>
8166
8167         * ssa.c: Handle OP_LCOMPARE the same as OP_COMPARE.
8168
8169         * objects.cs exceptions.cs basic.cs basic-long.cs basic-calls.cs: New
8170         regression tests.
8171
8172         * mini-ops.h cpu-sparc.md mini-sparc.h mini-sparc.c exceptions-sparc.c tramp-sparc.c inssel-long.brg: Add SPARC64 support.
8173 Mon Jun 28 18:05:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
8174
8175         * mini.c: reinstated mono_compile_get_interface_var()
8176         on x86, too, since the change breaks the Gtk# build there as well.
8177
8178 Fri Jun 25 17:36:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
8179
8180         * driver.c: remove loop from the default optimizations: it seems to
8181         interact badly with some of the other options (see bug #60613).
8182
8183 2004-06-25  Zoltan Varga  <vargaz@freemail.hu>
8184
8185         * mini.c mini-x86.h mini-x86.c: Applied patch from Guenter Feldmann 
8186         (fld@informatik.uni-bremen.de): Add Solaris x86 support.
8187
8188 Tue Jun 22 21:29:11 CEST 2004 Paolo Molaro <lupus@ximian.com>
8189
8190         * mini-ppc.c, cpu-g4.md: small updates to be able to compile
8191         vararg-using methods.
8192
8193 2004-06-21  Martin Baulig  <martin@ximian.com>
8194
8195         * mini/mini-exceptions.c
8196         (mono_handle_exception): Added `gpointer original_ip' argument.
8197         After calling mono_unhandled_exception(), call
8198         mono_debugger_unhandled_exception() and if that returns true,
8199         restore the context and return.
8200
8201 Mon Jun 21 19:26:40 CEST 2004 Paolo Molaro <lupus@ximian.com>
8202
8203         * mini-ppc.c: prefer the use of relative branches so
8204         they won't need to be patched in aot code (patch from Patrick Beard).
8205
8206 Mon Jun 21 19:03:18 CEST 2004 Paolo Molaro <lupus@ximian.com>
8207
8208         * aot.c: patch from Patrick Beard to make the output assembly
8209         more correct for the MacOSX assembler. Small tweak to
8210         generate sane images on Linux/PPC, too.
8211
8212 Fri Jun 18 18:24:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
8213
8214         * mini.c, mini.h, mini-ppc.c: handle varargs methods with a special
8215         case until bug #59509 is fixed (shows up in #60332).
8216
8217 Tue Jun 15 16:36:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
8218
8219         * mini.c: make sure the needed wrappers are compiled, too, with
8220         precomp.
8221
8222 Mon Jun 14 18:36:08 CEST 2004 Paolo Molaro <lupus@ximian.com>
8223
8224         * driver.c: remove NPTL reference in --version output.
8225
8226 Sun Jun 13 17:25:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
8227
8228         * aot.c: patch from Patrick Beard (pcbeard@mac.com) to
8229         generate valid assembly for the Mach-O assembler.
8230
8231 Sun Jun 13 15:59:38 CEST 2004 Paolo Molaro <lupus@ximian.com>
8232
8233         * driver.c: don't include abcrem in the all optimization specifier
8234         since it slows down jit compilation too much for now.
8235
8236 2004-06-12 Ben Maurer  <bmaurer@users.sourceforge.net>
8237
8238         * mini.c: use BIGMUL only if both operands have the same signage.
8239         * iltests.il: Test for bug 60056. (errors related to signage in
8240         BIGMUL).
8241
8242         r=lupus.
8243
8244 Thu Jun 10 16:06:42 CEST 2004 Paolo Molaro <lupus@ximian.com>
8245
8246         * mini.c, aot.c: memory leak fixes.
8247
8248 Tue Jun 8 16:37:15 CEST 2004 Paolo Molaro <lupus@ximian.com>
8249
8250         * inssel-long32.brg: implemented a few missing ulong cast opcodes.
8251
8252 Tue Jun 8 15:36:30 CEST 2004 Paolo Molaro <lupus@ximian.com>
8253
8254         * Makefile.am: remove the -static hack completely, it links in
8255         statically glib as well.
8256
8257 Sat Jun 5 16:32:33 CEST 2004 Paolo Molaro <lupus@ximian.com>
8258
8259         * iltests.il, mini.c: fixed bug#59580 in branch optimization.
8260         * exceptions.cs: make it compile with new mcs/csc.
8261
8262 2004-06-03 Massimiliano Mantione <massi@ximian.com>
8263         * cpu-pentium.md basic-float.cs Fixed bug on fpu spills (see bug 54467),
8264         and added relevant test case.
8265
8266 Mon May 31 19:41:46 CEST 2004 Paolo Molaro <lupus@ximian.com>
8267
8268         * mini.c revert Zoltan's fix to bug#58863 on ppc, since it causes
8269         regressions in gtk-sharp.
8270
8271 2004-05-29  Zoltan Varga  <vargaz@freemail.hu>
8272
8273         * exceptions.cs: New regression tests.
8274
8275         * jit-icalls.c (mono_llmult_ovf): Fix some boundary conditions.
8276
8277 Sat May 29 10:45:58 CEST 2004 Paolo Molaro <lupus@ximian.com>
8278
8279         * mini.c: emit castclass/isinst in their own trees (bug #54209/59057).
8280
8281 2004-05-28  Zoltan Varga  <vargaz@freemail.hu>
8282
8283         * mini-sparc.h (MONO_ARCH_NEED_DIV_CHECK): Define this.
8284
8285         * cpu-sparc.md mini-sparc.c: Add overflow detection to div opcodes.
8286
8287 2004-05-28      Patrik Torstensson <totte@hiddenpeaks.com>
8288
8289         * mini.c (mono_jit_runtime_invoke): Init class in this
8290         method instead of trusting mono_jit_compile_method to
8291         do the work (because wrappers can be in object class)
8292
8293 2004-05-27  Zoltan Varga  <vargaz@freemail.hu>
8294
8295         * mini-sparc.c (mono_arch_output_basic_block): Fix sub.imm.
8296
8297         * basic-long.cs: New regression test.
8298
8299 Thu May 27 15:50:52 CEST 2004 Paolo Molaro <lupus@ximian.com>
8300
8301         * cpu-g4.md, mini-ppc.c: fixes to long add/sub ovf opcodes
8302         and div/rem checks.
8303
8304 Thu May 27 12:36:53 CEST 2004 Paolo Molaro <lupus@ximian.com>
8305
8306         * Makefile.am: fix miguel's change to build mono statically against
8307         libmono (track build dependencies).
8308
8309 2004-05-26  Zoltan Varga  <vargaz@freemail.hu>
8310
8311         * cfold.c: Some glib versions do not have G_MININT32.
8312
8313 2004-05-26  Massimiliano Mantione  <massi@ximian.com>
8314
8315         * mini-x86.c cpu-pentium.md Makefile.am basic-math.cs: Fixed problem
8316         with precision of tan, atan, sin and cos, and implemented related
8317         regressions tests (fixes bug 54467, but one new problem appeared and
8318         is not fixed yet).
8319
8320 2004-05-26  Zoltan Varga  <vargaz@freemail.hu>
8321
8322         * cfold.c (FOLD_BINOPZ): Avoid division by zero.
8323
8324         * exceptions.cs: Add test for constant folding && division by zero.
8325
8326         * driver.c mini.h mini.c mini-x86.c: Revert most of the previous patch
8327         since driver.c is in libmono too, so the optimization was useless.
8328
8329         * driver.c mini.h mini.c mini-x86.c: Moved the mono_lmf_addr TLS 
8330         variable to driver.c so the compiler can emit more efficient code to
8331         access them.
8332
8333 2004-05-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
8334
8335         * Makefile.am: don't distribute generated inssel.[ch] files.
8336
8337 2004-05-25  Zoltan Varga  <vargaz@freemail.hu>
8338
8339         * mini.c (mono_jit_compile_method_with_opt): Really emit icall wrappers
8340         into the default appdomain. Fixes #58707.
8341
8342         * jit-icalls.c: Remove the broken approximation for truncl, doing
8343         no conversion is better.
8344
8345         * mini.c (handle_stack_args): Avoid reusing variables for stack slots.
8346         Fixes #58863.
8347
8348 Tue May 25 14:33:56 CEST 2004 Paolo Molaro <lupus@ximian.com>
8349
8350         * mini-ops.h, mini-ppc.c, cpu-g4.md, inssel-ppc.brg: eliminate the use
8351         of the mcrxr instruction which is not available on some processors
8352         even if it's documented to be. Implement add and sub overflow correctly
8353         (still not complete for long unsigned). Speed up icalls a bit.
8354
8355 2004-05-25 13:01 CET Patrik Torstenson <totte@hiddenpeaks.com>
8356
8357         * mini.c (mono_jit_compile_method_with_opt): Make sure that
8358         we run .cctor in the current domain instead of target_domain.
8359         
8360         Fixes bug #58558, .cctor not being called in -O=shared.
8361
8362 Tue May 25 12:46:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
8363
8364         * mini-ppc.h, jit-icalls.c: added explicit checks for divide by zero.
8365
8366 2004-05-24 Ben Maurer  <bmaurer@users.sourceforge.net>
8367
8368         * mini-x86.c (EMIT_COND_BRANCH): If an OP_LABEL has an offset
8369         which can be done with an imm8, do it that way.
8370         (mono_arch_output_basic_block): ditto for a jmp
8371         (mono_arch_emit_prolog): Computate maximum offset of a label.
8372
8373 2004-05-24 18:18 CET Patrik Torstenson <totte@hiddenpeaks.com>
8374
8375         * mini-x86.c (mono_arch_local_regalloc): the reg allocator
8376         now tries to allocate prefered physical reg's for virtual
8377         regs. This reduces the number of emited spills/loads with
8378         20-30% on our core assemblies.
8379
8380 Mon May 24 18:21:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
8381
8382         * jit-icalls.c: truncl() is not needed and trunc() is
8383         the correct thing to do anyway (bug #58287).
8384
8385 2004-05-24  Zoltan Varga  <vargaz@freemail.hu>
8386
8387         * mini-sparc.c (mono_arch_flush_icache): Call sync_instruction_memory
8388         if available.
8389
8390 Mon May 24 12:49:45 CEST 2004 Paolo Molaro <lupus@ximian.com>
8391
8392         * driver.c: enable loop optimizations by default.
8393
8394 Mon May 24 11:13:46 CEST 2004 Paolo Molaro <lupus@ximian.com>
8395
8396         * mini-x86.c: fix calc of max loop size when aligning loops start.
8397
8398 2004-05-23  Zoltan Varga  <vargaz@freemail.hu>
8399
8400         * ssa.c (mono_ssa_cprop): Allocate carray dynamically instead of on
8401         the stack.
8402
8403 2004-05-22  Zoltan Varga  <vargaz@freemail.hu>
8404
8405         * mini-sparc.c (mono_arch_output_basic_block): ADD_IMM and SUB_IMM
8406         should set carry.
8407
8408         * basic-long.cs: Add tests for add/subtract of immediates with carry.
8409
8410         * mini.c exceptions-x86.c: Remove MONO_USE_EXC_TABLES stuff.
8411         
8412         * mini.c (inline_method): Allways inline some wrappers even if the cost
8413         is too large. Fixes #58785.
8414
8415         * mini.c: Add support for MARSHAL_CONV_FTN_DEL.
8416         
8417 2004-05-21  Zoltan Varga  <vargaz@freemail.hu>
8418
8419         * mini-sparc.c exceptions-sparc.c: Applied patch from Mark Crichton
8420         (crichton@gimp.org). Beginning of support for sparc/linux.
8421
8422         * mini-sparc.c: Optimize retrieval of LMF address.
8423
8424 Fri May 21 08:00:12 EDT 2004 Paolo Molaro <lupus@ximian.com>
8425
8426         * exceptions-ppc.c:  handle alloca in methods with clauses.
8427
8428 Fri May 21 07:35:30 EDT 2004 Paolo Molaro <lupus@ximian.com>
8429
8430         * mini-ppc.c: cleanups, off-by-one fixes, avoid recursive thunks.
8431
8432 2004-05-20  Lluis Sanchez Gual  <lluis@ximian.com>
8433
8434         * mini.c: Delegate most of the abort signal work to 
8435           mono_thread_request_interruption, which also handles Stop and Suspend
8436           states.
8437
8438 2004-05-20  Zoltan Varga  <vargaz@freemail.hu>
8439
8440         * mini.c mini.h: Allow inlining of icall wrappers if the backend 
8441         supports the save/restore lmf opcodes.
8442
8443 2004-05-19  Zoltan Varga  <vargaz@freemail.hu>
8444
8445         * mini-x86.c (mono_arch_setup_jit_tls_data): Handle code generated
8446         by gcc-3.4 as well.
8447
8448         * mini-x86.h mini-x86.c tramp-x86.c: Optimize lmf restoring code.
8449
8450 2004-05-18  Zoltan Varga  <vargaz@freemail.hu>
8451
8452         * mini.h mini.c (mini_method_compile): Only run abc removal pass on 
8453         methods which contain array accesses.
8454
8455         * mini.c (CEE_LDTOKEN): Handle this instruction correctly on bb
8456         boundaries. Fixes #58537.
8457
8458         * iltests.il: Add regression test for #58537.
8459
8460 2004-05-18  Patrik Torstensson <totte@hiddenpeaks.com>
8461
8462         * mini-x86.c (mono_arch_local_regalloc): Last part of
8463         fix for bug #58633 (releasing register to early).
8464
8465 2004-05-18  Miguel de Icaza  <miguel@ximian.com>
8466
8467         * basic-long.cs: Add new regression test.
8468
8469 2004-05-18  Patrik Torstensson <totte@hiddenpeaks.com>
8470
8471         * mini-x86.c (mono_arch_local_regalloc): Avoid releasing a
8472         register too early on the chain.
8473
8474 2004-05-18  Zoltan Varga  <vargaz@freemail.hu>
8475
8476         * mini.c (create_helper_signature): Use a helper function to reduce
8477         the code which needs to be written. Also set the calling convention of
8478         icalls on windows. Fixes #57840.
8479
8480 Tue May 18 11:05:18 CEST 2004 Paolo Molaro <lupus@ximian.com>
8481
8482         * mini.h, exceptions-x86.c, exceptions-sparc.c, exceptions-s390.c,
8483         exceptions-ppc.c: added helper function to get the instruction address
8484         from a signal handler context.
8485
8486 2004-05-17 Ben Maurer  <bmaurer@users.sourceforge.net>
8487
8488         * helpers.c: use g_get_tmp_dir. Invokes happyness 
8489         from gonzalo.
8490
8491 2004-05-17 Ben Maurer  <bmaurer@users.sourceforge.net>
8492
8493         * helpers.c: Add new env variable to pass args to objdump.
8494         Specifically for those of us who love -Mintel. r=miguel, gonzalo.
8495
8496 2004-05-17  Radek Doulik  <rodo@ximian.com>
8497
8498         * Makefile.am (common_sources): added abcremoval.h so it get
8499         disted and daily mono packages on go-mono.com will build again
8500
8501 2004-05-17  Massimiliano Mantione  <massi@ximian.com>
8502
8503         * abcremoval.c: Fixed coding style, added copyright header.
8504
8505         * abcremoval.h: Fixed style and moved prototype to mini.h, added copyright header.
8506
8507         * mini.h: Added prototype for abc removal main function.
8508
8509         * build_relations_propagation_table.pl: Added copyright header.
8510
8511 2004-05-16      Patrik Torstensson <totte@hiddenpeaks.com>
8512
8513         * basic-long.cs: reg test for complex ceq_long bug.
8514
8515 2004-05-16      Patrik Torstensson <totte@hiddenpeaks.com>
8516
8517         * mini-x86.c (mono_arch_local_regalloc): Correctly free 
8518         reg in long and clob case (bug #58343). Fixed/added comments.
8519
8520 2004-05-14 Ben Maurer  <bmaurer@users.sourceforge.net>
8521
8522         * mini.c (mono_jit_runtime_invoke): Follow new convention
8523         of calling the invoke method with an function pointer.
8524
8525 2004-05-14  Zoltan Varga  <vargaz@freemail.hu>
8526
8527         * ChangeLog: Fix author of memory leak patch.
8528
8529 Fri May 14 15:13:06 CEST 2004 Paolo Molaro <lupus@ximian.com>
8530
8531         * Makefile.am: fix make dist as well...
8532
8533
8534 2004-05-14  Massimiliano Mantione  <massi@ximian.com>
8535
8536         * cfold.c: Made so that conversions from pointer to int4 are no-ops
8537         on archs where pointers are 4 bytes long.
8538
8539         * Makefile.am: Added abcremoval.c source file.
8540
8541         * abcremoval.c: Added abcremoval.c.
8542
8543         * abcremoval.h: Added abcremoval.h.
8544
8545         * build_relations_propagation_table.pl: Added build_relations_propagation_table.pl.
8546
8547         * inssel.brg: Enabled bounds check removal.
8548
8549         * mini.c: Added support for abcrem optimization.
8550
8551         * mini.h: Added abcrem optimization label.
8552
8553         * driver.c: Added support for abcrem optimization.
8554
8555         * propagated_relations_table.def: Added propagated_relations_table.def.
8556
8557 Fri May 14 14:30:13 CEST 2004 Paolo Molaro <lupus@ximian.com>
8558
8559         * mini.c, cfold.c: fix style.
8560
8561 Fri May 14 14:28:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
8562
8563         * mini.c: handle issue with the low-level implementation of
8564         some long opcodes (bug #54209).
8565
8566 2004-05-13 Ben Maurer  <bmaurer@users.sourceforge.net>
8567
8568         * basic.cs: test for my new cmov stuff.
8569
8570 2004-05-13      Patrik Torstensson
8571
8572         * mini-x86.c: added OP_X86_COMPARE_MEMBASE_IMM peephole
8573         opt and added peephole documentation.
8574
8575 Thu May 13 11:41:49 CEST 2004 Paolo Molaro <lupus@ximian.com>
8576
8577         * tramp-ppc.c: rewrote the generic trampoline code.
8578
8579 2004-05-11      Patrik Torstensson
8580
8581         * mini-x86.c: optimize long shl/shr asm code (one less branch)
8582
8583 2004-05-11  Zoltan Varga  <vargaz@freemail.hu>
8584
8585         * basic.cs basic-long.cs objects.cs: Make these compile under MS csc.
8586
8587         * mini.h mini.c dominators.c: Applied patch from Derek Woo
8588         (derek@eecg.toronto.edu): Fix memory leaks in loop optimizations.
8589
8590         * mini.c: Add new icalls for AsAny marshalling.
8591
8592 Tue May 11 16:00:38 CEST 2004 Paolo Molaro <lupus@ximian.com>
8593
8594         * tramp-ppc.c, mini-ppc.c: more cleanups.
8595
8596 2004-05-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
8597
8598         * mini.c: no warnings.
8599
8600 Tue May 11 13:59:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
8601
8602         * mini-ppc.c, mini.c: use mono_resolve_patch_target ().
8603
8604 2004-05-11  Lluis Sanchez Gual  <lluis@ximian.com>
8605
8606         * mini.c: In the thread abort signal handler, if the thread is in the
8607         process of being stoped, don't throw the Abort exception, just stop the
8608         thread.
8609
8610 Tue May 11 12:15:24 CEST 2004 Paolo Molaro <lupus@ximian.com>
8611
8612         * tramp-ppc.c: removed old code.
8613
8614 Tue May 11 12:02:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
8615
8616         * mini.h, mini-ppc.c, cfold.c: export mono_is_power_of_two().
8617         do some simple speed optimizations on ppc.
8618
8619 Mon May 10 17:21:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
8620
8621         * mini-ppc.c, cpu-g4.md: fixes to handle large stack frames
8622         and large offsets in load/store.
8623
8624 2004-05-07  Zoltan Varga  <vargaz@freemail.hu>
8625
8626         * mini-x86.c (mono_arch_local_regalloc): Remove the previous fix, since
8627         it causes regressions.
8628
8629 2004-05-07  Zoltan Varga  <vargaz@freemail.hu>
8630
8631         * mini-sparc.c: Fix vararg support + add beginnings of sigaltstack
8632         support.
8633
8634 Fri May 7 13:25:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
8635
8636         * jit-icalls.c: remove warnings.
8637         * inssel-x86.brg, inssel.brg, mini-x86.c, cfold.c: some simple
8638         speedups for unsafe code.
8639
8640 2004-05-07 Ben Maurer  <bmaurer@users.sourceforge.net>
8641
8642         * inssel.brg: Optimize Stind.[ui][12]. r=zoltan.
8643
8644 2004-05-06  Zoltan Varga  <vargaz@freemail.hu>
8645
8646         * basic-calls.cs: Add new regression test.
8647
8648         * mini.c (mono_runtime_install_handlers): Use SA_ONSTACK since it is
8649         more portable.
8650
8651         * mini.c (mono_method_to_ir): Handle opcode emulation for *_OVF opcodes.
8652
8653         * mini-x86.c (mono_arch_local_regalloc): Free new_dest register when it
8654         is no longer used.
8655
8656 2004-05-06      Patrik Torstensson
8657
8658         * mini-x86.[c|h], inssel-x86.brg, cpu-pentium.md, mini.c: enabled
8659         long reg allocation in any reg (not only eax:edx) and implemented 
8660         long shl/shr ops in asm instead of helpers.
8661
8662 2004-05-05  Zoltan Varga  <vargaz@freemail.hu>
8663
8664         * mini-sparc.h: Fix warnings.
8665
8666         * exceptions-sparc.c (mono_arch_find_jit_info): Pop unused lfm off the
8667         stack.
8668
8669         * mini-exceptions.c (mono_handle_exception): Call the filter in a
8670         separate statement for clarity.
8671
8672         * mini-sparc.c: Update status.
8673
8674 2004-05-04  Zoltan Varga  <vargaz@freemail.hu>
8675
8676         * mini-exceptions.c (ves_icall_get_frame_info): Flush register windows
8677         here.
8678
8679 Mon May 3 22:58:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
8680
8681         * inssel-ppc.brg: another small pre-release workaround:
8682         we don't do overflow detection for long_sub_un.
8683
8684 Sun May 2 20:12:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
8685
8686         * mini.c, mini-ops, inssel-long32.brg: speedup ulong >> 32
8687         (also works around a weird ppc bug: 57957).
8688
8689 Sat May 1 16:56:10 EDT 2004 Paolo Molaro <lupus@ximian.com>
8690
8691         * tramp-ppc.c: trampoline fixes.
8692
8693 Fri Apr 30 15:54:26 EDT 2004    Paolo Molaro <lupus@ximian.com>
8694
8695         * mini-ppc.c: fixed typos.
8696
8697 Thu Apr 29 20:15:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
8698
8699         * mini-ppc.c, exceptions-ppc.c: more code saves registers
8700         at the top of the stack. Fixed typos. Use a frame registers
8701         for all the methods with exception clauses.
8702
8703 Thu Apr 29 18:52:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
8704
8705         * exceptions-ppc.c: restore fp registers.
8706
8707 Thu Apr 29 18:26:56 CEST 2004 Paolo Molaro <lupus@ximian.com>
8708
8709         * mini-ppc.c, exceptions-ppc.c: save the registers in reverse
8710         order from the stack top (moved the stack room to save the
8711         return value for trace after the param area). Fixed corruption
8712         in restoring registers on unwind.
8713
8714 Thu Apr 29 16:47:15 CEST 2004 Paolo Molaro <lupus@ximian.com>
8715
8716         * mini-ppc.c, cpu-g4.md: fixed unisgned -> double conversion.
8717
8718 Thu Apr 29 13:50:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
8719
8720         * exceptions-ppc.c, mini-ppc.h, mini-ppc.c: fixed localloc
8721         and prolog/epilog for methods that use it. Allow
8722         enough param area room for varargs methods. Fix miguel's
8723         breakage in exception handling.
8724
8725 Thu Apr 29 12:06:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
8726
8727         * Makefile.am: run genmdesc only on current arch.
8728
8729 2004-04-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
8730
8731         * exceptions-x86.c:
8732         * mini-x86.h: fix the build on windows.
8733
8734 2004-04-28  Zoltan Varga  <vargaz@freemail.hu>
8735
8736         * Makefile.am mini.h mini-exceptions.c mini-x86.h mini-sparc.h exceptions-sparc.c: Move parts of the sparc exception handling code to XP code.
8737
8738         * exceptions-sparc.c exceptions-ppc.c exceptions-s390.c mini-ppc.h mini-s390.h mini-sparc.h: Fix up ports after changes.
8739
8740         * mini-exceptions.c: New file.
8741         
8742         * mini.c mini-exceptions.c mini-x86.h exceptions-x86.c Makefile.am:
8743         Move some parts of the x86 exception handling code to an 
8744         arch-independent file so it can be shared with other ports.
8745
8746 Tue Apr 27 12:15:59 CEST 2004 Paolo Molaro <lupus@ximian.com>
8747
8748         * trace.c, cpu-g4.md, inssel-ppc.brg, mini-ppc.c: some fixes for FP code.
8749
8750 2004-04-26  David Waite  <mass@akuma.org>
8751
8752         * driver.c: remove comma from end of enumeration declaration
8753
8754 2004-04-26  Jackson Harper  <jackson@ximian.com>
8755
8756         * driver.c: parse config file before loading first assembly. This
8757         allows the user gac to be enabled/disabled. 
8758         
8759 2004-04-23  Miguel de Icaza  <miguel@ximian.com>
8760
8761         * mini-ppc.c (ppc_patch): Replaced the branch code patching with a
8762         simpler mechanism: we do not care what is encoded initially
8763         (branch absolute or relative), we care about the code and its
8764         target.  I kept the old code for reference for now.
8765
8766         The new code tries first to determine if the jump is anywhere in
8767         the -/+32 absolute meg range, if it succeeds, it encodes using the
8768         absolute branch;  If not, it tried to find something in the
8769         relative range, if not, it uses the handle_thunk code. 
8770
8771 Fri Apr 23 14:20:40 EDT 2004 Paolo Molaro <lupus@ximian.com>
8772
8773         * exceptions-ppc.c: use the correct ip register on macosx.
8774
8775 Thu Apr 22 13:23:16 EDT 2004 Paolo Molaro <lupus@ximian.com>
8776
8777         * exceptions.c, mini.c, mini-ppc.h: adapt code to macosx.
8778
8779 Thu Apr 22 18:08:37 CEST 2004 Paolo Molaro <lupus@ximian.com>
8780
8781         * mini-ppc.c, cpu-g4.md: made the branch macros more flexible.
8782         Raise exception on integer divide by zero by hand since the hw
8783         doesn't support it. Handle NaNs in FP compares.
8784
8785 Thu Apr 22 16:10:31 CEST 2004 Paolo Molaro <lupus@ximian.com>
8786
8787         * exceptions-ppc.c, mini-ppc.h, mini.c: simplified some
8788         code reducing duplication between the platforms and enabled
8789         signal exception handling (on linux for now).
8790
8791 Wed Apr 21 12:27:48 EDT 2004 Paolo Molaro <lupus@ximian.com>
8792
8793         * exceptions-ppc.c: more macosx support.
8794
8795 Wed Apr 21 16:38:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
8796
8797         * mini-ppc.h, mini-ppc.c, cpu-g4.md: enable bigmul optimization.
8798
8799 Wed Apr 21 16:20:32 CEST 2004 Paolo Molaro <lupus@ximian.com>
8800
8801         * mini.h, mini-ppc.c, cpu-g4.md: support for implicit exceptions.
8802
8803 2004-04-19 Ben Maurer  <bmaurer@users.sourceforge.net>
8804
8805         * iltests.il: more tests.
8806
8807 2004-04-19  Zoltan Varga  <vargaz@freemail.hu>
8808
8809         * mini-*.c (mono_arch_get_allocatable_int_vars): Skip written-only
8810         vars as well.
8811
8812 Mon Apr 19 19:39:47 CEST 2004 Paolo Molaro <lupus@ximian.com>
8813
8814         * mini-ppc.c: some fixes to bootstrap mcs/corlib/etc.
8815
8816 2004-04-19  Zoltan Varga  <vargaz@freemail.hu>
8817
8818         * liveness.c: Mark variables as volatile in all basic blocks reachable
8819         from exception clauses.
8820
8821 2004-04-18  Zoltan Varga  <vargaz@freemail.hu>
8822
8823         * exceptions.cs (test_0_rethow_stacktrace): Make this work with
8824         inlining.
8825
8826 2004-04-18 Ben Maurer  <bmaurer@users.sourceforge.net>
8827
8828         * iltests.il, basic.cs: more tests for regalloc.
8829
8830 2004-04-17 Ben Maurer  <bmaurer@users.sourceforge.net>
8831
8832         * iltests.il: Some tests for register allocation modifications
8833         I have locally.
8834
8835 2004-04-16  Zoltan Varga  <vargaz@freemail.hu>
8836
8837         * exceptions.cs: Add regression test for bug #56782.
8838
8839         * exceptions-*.c (mono_arch_handle_exception): Do not overwrite the
8840         original stack trace if an exception is rethrown. Fixes #56782. Oh,
8841         the beauty of fixing the same thing in 5 different files...
8842
8843 2004-04-15  Zoltan Varga  <vargaz@freemail.hu>
8844
8845         * mini.c (mono_method_to_ir): Do not compute coverage for inlined
8846         methods.
8847
8848 2004-04-14  Zoltan Varga  <vargaz@freemail.hu>
8849
8850         * mini.c: Add support for STRWLPARRAY marshalling convention.
8851
8852 Wed Apr 14 18:15:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
8853
8854         * exceptions-ppc.c: missing fixes in mono_jit_walk_stack (need
8855         to init the context to setup the regs pointer).
8856
8857 Wed Apr 14 17:59:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
8858
8859         * exceptions-ppc.c: more exceptions work.
8860
8861 Wed Apr 14 17:46:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
8862
8863         * mini.c: avoid reusing the same MonoInst on multiple trees: this is
8864         not allowed.
8865
8866 2004-04-13  Miguel de Icaza  <miguel@ximian.com>
8867
8868         * inssel-x86.brg (reg): Add new rules for add, sub and mul that
8869         can use the memory directly.
8870
8871         * cpu-pentium.md: Update documentation from a post from Zoltan. 
8872
8873         add x86_add_membase, x86_sub_membase, x86_mul_membase
8874
8875 2004-04-13  Miguel de Icaza  <miguel@ximian.com>
8876
8877         * mini-ppc.c: Remove unused definitions FLOAT_REGS and
8878         GENERAL_REGS they were also hardcoded for all PPC ports.
8879
8880         (add_general): Use PPC_NUM_REG_ARGS instead of GENERAL_REGS.
8881
8882         Remove hard-coded limit for floating point registers, use
8883         PPC_LAST_FPARG_REG instead in MONO_TYPE_R4 and MONO_TYPE_R8.
8884
8885         Notice that in MacOS X calling conventions you can fit a lot more
8886         floating point values in registers, so I should update the PInvoke
8887         test to excercise the passing of floating point values on the
8888         stack (currently broken).
8889         
8890 2004-04-06  Miguel de Icaza  <miguel@ximian.com>
8891
8892         * tramp-ppc.c (create_trampoline_code): Added
8893         JUMP_TRAMPOLINE_SIZE. 
8894         (ppc_magic_trampoline): Follow the pattern from
8895         x86_magic_trampoline: if code is set to zero, return. 
8896         (create_trampoline_code): Always pass MonoMethod to the jump
8897         trampoline, before it was passing a null.
8898         (mono_arch_create_jump_trampoline): Implement the jump stub, could
8899         share the code with mono_arch_create_jit_trampoline. 
8900
8901         * mini-ppc.c (mono_arch_output_basic_block): CEE_JMP opcode
8902         implemented.
8903         (mono_arch_patch_code): MONO_PATCH_INFO_METHOD_JUMP patch type
8904         implemented.  
8905
8906         * cpu-g4.md: Added length for jmp instruction, the worst case
8907         scenario is 92 bytes (4 mandatory bytes, potential 19 registers
8908         for save_lmf).
8909
8910 2004-04-08  Zoltan Varga  <vargaz@freemail.hu>
8911
8912         * aot.c (mono_compile_assembly): Add back unlink removed by mistake.
8913
8914 2004-04-07  Zoltan Varga  <vargaz@freemail.hu>
8915
8916         * mini.c: Only set bblock->real_offset when adding a new bblock, and
8917         before each IL instruction.
8918
8919         * mini.c (CEE_BOX): Fix warnings.
8920
8921 2004-04-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
8922
8923         * mini.c: removed a few unused vars and extra whitespace.
8924
8925 2004-04-05 Ben Maurer  <bmaurer@users.sourceforge.net>
8926
8927         * inssel.brg (MONO_EMIT_BOUNDS_CHECK): a new macro to emit bounds
8928         checks.
8929         (MONO_EMIT_BOUNDS_CHECK_IMM): the above, but when you know the
8930         index.
8931         (OP_GETCHR): use the above
8932         (CEE_LDELEMA): use the above.
8933
8934         * inseel-x86.brg (MONO_EMIT_BOUNDS_CHECK): a faster and smaller
8935         version of the generic impl.
8936         (MONO_EMIT_BOUNDS_CHECK_IMM): the same
8937         (CEE_LDELEMA): use the above.
8938
8939 2004-04-05  Zoltan Varga  <vargaz@freemail.hu>
8940
8941         * inssel-long32.brg (CEE_CONV_OVF_I8): Sign extend the i4 value to i8.
8942         Fixes #56317.
8943
8944         * iltests.il: Added new regression test for #56317.
8945
8946 2004-04-05  Zoltan Varga  <vargaz@freemail.hu>
8947
8948         * mini-x86.c (mono_arch_setup_jit_tls_data): Use pthread_attr_get_np
8949         under NetBSD. Fixes #56450.
8950
8951         * liveness.c (update_gen_kill_set): Fix previous patch.
8952
8953 2004-04-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
8954
8955         * mini-x86.h: SA_STACK defined as SA_ONSTACK. Fixed build under NetBSD.
8956
8957 2004-04-02  Zoltan Varga  <vargaz@freemail.hu>
8958
8959         * mini.c (mono_method_to_ir): Avoid handle_loaded_temps in
8960         ldsfld and ldsflda.
8961
8962         * inssel-sparc.brg: Add more optimizations.
8963
8964         * mini-sparc.c: Replace multiply/divide with shifts if possible.
8965
8966 2004-04-01  Martin Baulig  <martin@ximian.com>
8967
8968         * mini.c (handle_box): New static function; moved the
8969         implementation of CEE_BOX here.
8970         (mono_method_to_ir): Added `constrained_call' variable.
8971         (mono_method_to_ir:CEE_CONSTRAINED_): Set it.
8972         (mono_method_to_ir:CEE_CALL): If `constrained_call' is set, use
8973         mono_method_get_constrained() to get the method.
8974
8975 2004-04-01  Martin Baulig  <martin@ximian.com>
8976
8977         * mini.c (TYPE_PARAM_TO_TYPE, TYPE_PARAM_TO_CLASS): Removed.
8978         (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): Removed.
8979         (mono_method_to_ir): We don't need these macros anymore since
8980         mono_class_get_full() already takes care of it. 
8981
8982 2004-03-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
8983
8984         * aot.c: set aot_verbose to 0, fixed format string that caused sigsegv,
8985         use @function (as doesn't accept #function here) and check the return
8986         value of system and stop if fails.
8987
8988 2004-03-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
8989
8990         * mini.c: set the timeout to 2s when calling mono_domain_finalize.
8991
8992 2004-03-31  Zoltan Varga  <vargaz@freemail.hu>
8993
8994         * mini-ppc.c (mono_arch_patch_code): Fix ppc build.
8995
8996         * inssel-sparc.brg mini-sparc.c aot.c: Implement AOT support.
8997
8998         * inssel-long32.brg (OP_LNEG): Use ADC instead of ADD here. Fixes
8999         #56223.
9000
9001         * basic-long.cs: Add test for negation of Int64.MinValue.
9002
9003 2004-03-30  Zoltan Varga  <vargaz@freemail.hu>
9004
9005         * mini-sparc.c: Update status.
9006
9007         * mini-sparc.c tramp-sparc.c: Save lmf in trampolines.
9008
9009         * exceptions-sparc.c: Fix return value in filters.
9010
9011         * inssel-sparc.brg: Fix register allocation in some rules.
9012
9013 2004-03-28  Martin Baulig  <martin@ximian.com>
9014
9015         * mini.c (mmono_method_to_ir): In CEE_STELEM, do a handle_stobj()
9016         if neccessary.  
9017
9018 2004-03-28  Zoltan Varga  <vargaz@freemail.hu>
9019
9020         * mini-x86.c (mono_arch_patch_code): Fix warnings.
9021         
9022         * mini-x86.c (mono_arch_output_basic_block): Fix CEE_MUL_OVF_UN if 
9023         dreg is not EAX. Thanks to Willibard Krenn for spotting this. Also
9024         remove unused conv_u4 opcode.
9025
9026         * mini-x86.c: Remove valgrind workaround since it slows down things
9027         even when mono is not run under valgrind.
9028
9029 2004-03-26  Zoltan Varga  <vargaz@freemail.hu>
9030
9031         * mini-sparc.c: Update status.
9032
9033         * inssel-sparc.brg: Add some optimizations.
9034
9035         * inssel-sparc.brg mini-sparc.c: Rework branch instructions to allow
9036         future delay slot filling. Add support for varargs, tail calls and JMP.
9037
9038         * inssel.brg mini-ops.h mini.c: Use OP_REFANYTYPE instead of 
9039         CEE_REFANYTYPE, since CEE_REFANYTYPE needs a prefix to be unique.
9040
9041         * inssel.brg: Fix register allocation in OP_ARGLIST.
9042
9043         * inssel.brg: Fix warnings.
9044
9045 2004-03-25  Martin Baulig  <martin@ximian.com>
9046
9047         * mini.c (inflate_generic_field): Removed.
9048         (mini_get_method): Removed, use mono_get_method_full(),
9049         (mini_get_class): Removed, use mono_class_get_full().
9050         (mono_method_to_ir): Pass our generic context to
9051         mono_field_from_token().        
9052
9053 2004-03-25  Martin Baulig  <martin@ximian.com>
9054
9055         * mini.c (mini_get_class): Take a `MonoGenericContext *' instead
9056         of a `MonoMethod *'.
9057         (mini_get_method): Take a `MonoGenericContext *' instead
9058         of a `MonoMethod *'.
9059         (TYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_TYPE): mono_method_to_ir() has
9060         a new local variable called `generic_context' which holds the
9061         current `MonoGenericContext *'; use it to lookup things.
9062
9063 2004-03-24  Martin Baulig  <martin@ximian.com>
9064
9065         * mini.c (mini_get_class): New static method; if we're inside a
9066         generic instance, inflate the class if neccessary.
9067         (mono_method_to_ir): Use mini_get_class() instead of mono_class_get().
9068
9069 2004-03-24  Zoltan Varga  <vargaz@freemail.hu>
9070
9071         * iltests.il: New regression test for #55976.
9072
9073         * mini.c (mono_method_to_ir): Empty the stack in endfinally. Fixes
9074         #55976.
9075
9076 2004-03-23  Zoltan Varga  <vargaz@freemail.hu>
9077
9078         * exceptions-sparc.c (mono_sparc_handle_exception): Remove debugging
9079         output.
9080
9081 2004-03-23  Zoltan Varga  <vargaz@freemail.hu>
9082
9083         * liveness.c: Consider SSA stores as well as loads when making vars
9084         volatile.
9085
9086         * exceptions.cs: New regression tests for register allocation.
9087         
9088 2004-03-22  Lluis Sanchez Gual  <lluis@ximian.com>
9089
9090         * mini-ppc.c, tramp-ppc.c: Added lock for accessing the domain code manager.
9091         * mini.c: Removed domain lock from mono_jit_compile_method_with_opt. Use
9092           domain lock only to protect puntual access to data structures.
9093           Added access lock for sighash, jit_icall_hash_name, 
9094           jit_icall_hash_addr and domain->code_mp.
9095
9096 2004-03-20  Zoltan Varga  <vargaz@freemail.hu>
9097
9098         * driver.c: Print SIGSEGV handling method.
9099
9100         * mini-x86.c (mono_arch_free_jit_tls_data): Add missing ifdef.
9101
9102         * mini.c (setup_jit_tls_data): Handle case when this is called
9103         multiple times for a thread.
9104
9105         * mini-x86.c cpu-pentium.md: Fix floating point branch opcodes so fbxx 
9106         is different from fbxx_un. Fixes #54303. Also use constants instead of
9107         magic numbers in a lot of places.
9108
9109 2004-03-19  Zoltan Varga  <vargaz@freemail.hu>
9110
9111         * exceptions.cs: Fix cctor test when --regression is used.
9112
9113 Thu Mar 18 19:57:56 CET 2004 Paolo Molaro <lupus@ximian.com>
9114
9115         * mini-ppc.c, exceptions-ppc.c: basic exceptions support 
9116         for Linux/ppc.
9117
9118 Thu Mar 18 19:56:19 CET 2004 Paolo Molaro <lupus@ximian.com>
9119
9120         * inssel-ppc.brg: fixed register assignments for some rules.
9121
9122 2004-03-17  Zoltan Varga  <vargaz@freemail.hu>
9123
9124         * exceptions.cs: Add test for exceptions in static constructors.
9125
9126         * mini.c (mono_jit_compile_method_with_out): Move the calling of
9127         static constructors outside the domain lock. Fixes #55720.
9128
9129 2004-03-17  Martin Baulig  <martin@ximian.com>
9130
9131         * mini.c (get_generic_field_inst): Removed, this'll never happen.
9132         (inflate_generic_field): Take the `MonoMethod *' instead of the
9133         `MonoClass *' and added support for generic method.
9134         (mono_method_to_ir): In CEE_LDSFLD and CEE_STSFLD, assert we never
9135         have a `field->parent->gen_params', only inflate the field if it's
9136         an open constructed type.
9137
9138 2004-03-17  Zoltan Varga  <vargaz@freemail.hu>
9139
9140         * exceptions-x86.c (mono_arch_handle_exception): Allocate a new
9141         exception object instead of the preconstructed ones.
9142
9143 2004-03-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
9144
9145         * mini.c: reverted changed to sigsegv_signal_handler commited
9146         accidentally in the previous patch.
9147
9148 2004-03-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
9149
9150         * mini.c:
9151         (mono_method_to_ir): CEE_CALLVIRT, abort if no method. It hanged when
9152         running --aot with an old assembly.
9153
9154 2004-03-16  Zoltan Varga  <vargaz@freemail.hu>
9155
9156         * mini-sparc.c (mono_arch_instrument_epilog): Fix handling of floating
9157         point values.
9158
9159         * mini-sparc.c: Add support for v9 branches with prediction.
9160
9161 2004-03-15  Bernie Solomon  <bernard@ugsolutions.com>
9162
9163         * mini.c (mini_init): #warning is GNUC only
9164
9165         * mini-sparc.h: implement __builtin_frame_address
9166         and __builtin_return_address for Sun C compiler
9167
9168 2004-03-15  Zoltan Varga  <vargaz@freemail.hu>
9169
9170         * exceptions-sparc.c (mono_arch_has_unwind_info): Add missing function.
9171
9172 2004-03-14  Zoltan Varga  <vargaz@freemail.hu>
9173
9174         * basic-calls.cs: Add test for unaligned byref long argument passing.
9175
9176         * mini-ops.h: Add sparcv9 compare and branch instructions.
9177
9178         * inssel-sparc.brg mini-sparc.h mini-sparc.c cpu-sparc.md: Use some
9179         v9 instructions if we have a v9 cpu.
9180
9181         * mini-sparc.c (mono_arch_get_global_int_regs): Use unused input
9182         registers for global allocation.
9183
9184         * exceptions-sparc.c: Fixes.
9185         
9186 2004-03-11  Zoltan Varga  <vargaz@freemail.hu>
9187
9188         * liveness.c (mono_analyze_liveness): Optimized version.
9189
9190         * inssel-sparc.brg cpu-sparc.md: Ongoing sparc work.
9191
9192         * mini-sparc.h mini-sparc.c tramp-sparc.c exceptions-sparc.c: Ongoing
9193         sparc work.
9194
9195         * basic-float.cs basic-calls.cs: New regression tests.
9196
9197 2004-03-10  Zoltan Varga  <vargaz@freemail.hu>
9198
9199         * mini-x86.h: Define SIGSEGV_ON_ALTSTACK only if we have a working
9200         sigaltstack implementation.
9201
9202         * mini-x86.c (mono_arch_setup_jit_tls_data): Fix previous patch.
9203         
9204         * mini-x86.c (mono_arch_setup_jit_tls_data): Turn off the sigaltstack
9205         stuff if SIGSEGV_ON_ALTSTACK is not defined.
9206
9207 2004-03-09  Zoltan Varga  <vargaz@freemail.hu>
9208
9209         * mini.c: Fix warnings.
9210         
9211         * mini.c (mono_resolve_patch_target): New function which contains the
9212         arch independent part of the patching process.
9213
9214         * mini-x86.c (mono_arch_patch_code): Move arch independent parts of the
9215         patching code to a separate function.
9216
9217 2004-03-09  Bernie Solomon  <bernard@ugsolutions.com>
9218
9219         * mini.c (add_signal_handler): ifdef out on Windows
9220
9221 2004-03-08  Zoltan Varga  <vargaz@freemail.hu>
9222
9223         * mini-sparc.h mini-sparc.c inssel-sparc.brg exceptions-sparc.c 
9224         cpu-sparc.md: Add exception handling support + other fixes.
9225
9226         * driver.c: Print --help output to stdout. Fixes #55261. Also fix
9227         typed GC detection in --version.
9228
9229         * basic.cs exceptions.cs: New regression tests.
9230
9231         * mini.h mini-x86.h mini-ppc.h: Add MonoCompileArch structure where
9232         the arch specific code can store data during a compilation.
9233
9234         * mini-ops.h: Add OP_SETFRET.
9235
9236         * mini.c (mini_get_ldelema_ins): Instead of allways calling the same
9237         function, register a separate icall for each arity, so the icalls can
9238         get a wrapper.
9239         
9240         * mini.c (mono_print_tree): Print negative offsets in a more readable
9241         form.
9242         
9243         * mini.c: Make signal handling work on sparc.
9244         
9245         * mini.c (mini_init): Add emulation for lconv_to_r8_un.
9246
9247         * inssel-long32.brg: Fix OP_LSUB_OVF_UN rule.
9248
9249         * jit-icalls.c: Emulate truncl by aintl on solaris.
9250
9251         * jit-icalls.c (mono_lconv_to_r8_un): New icall emulation function.
9252
9253 2004-03-05  Zoltan Varga  <vargaz@freemail.hu>
9254
9255         * mini.c (mini_init): fconv_to_ovf can raise exceptions.
9256
9257 2004-03-04  Lluis Sanchez Gual  <lluis@ximian.com>
9258
9259         * mini.c: In CEE_ISINST and CEE_CASTCLASS, if the type is an interface or
9260         a MarshalByRef type, inline a method that performs the check, taking into
9261         account that the object can be a proxy. Also implemented tow new opcodes:
9262         CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
9263         * inssel.brg: Implemented two new opcodes, mini-ops.h: OP_CISINST and 
9264         OP_CCASTCLASS, which implement CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
9265
9266 Tue Mar 2 17:23:48 CET 2004 Paolo Molaro <lupus@ximian.com>
9267
9268         * mini-ppc.c: if a relative branch displacement is too big
9269         but it points to and area reachable with an absolute branch, 
9270         avoid the thunks.
9271
9272 Tue Mar 2 16:59:40 CET 2004 Paolo Molaro <lupus@ximian.com>
9273
9274         * mini.c: optimize small copies in cpblk.
9275
9276 2004-03-01  Zoltan Varga  <vargaz@freemail.hu>
9277
9278         * basic-calls.cs basic-float.cs: New regression tests.
9279
9280         * mini-sparc.c inssel-sparc.brg mini-ops.h: Access local variables at 
9281         negative offsets from %fp. Implement localloc. Fix local register 
9282         allocation. Fix the case when the this argument needs to be saved to
9283         the stack. Implement some missing opcodes.
9284
9285 2004-02-26  Zoltan Varga  <vargaz@freemail.hu>
9286
9287         * mini.c (mini_method_compile): Reenable global regalloc in methods
9288         with exception handlers.
9289
9290         * linear-scan.c (mono_varlist_sort): Fix warning.
9291
9292         * linear-scan.c (mono_linear_scan): Fix computation of used_regs.
9293
9294         * mini-x86.c (mono_arch_regalloc_cost): Reenable precise computation of
9295         regalloc costs.
9296
9297         * liveness.c: Make all variables uses in exception clauses volatile, to
9298         prevent them from being allocated to registers. Fixes #42136.
9299
9300 2004-02-25  Zoltan Varga  <vargaz@freemail.hu>
9301
9302         * mini-x86.c (mono_arch_regalloc_cost): Revert this change since it
9303         causes regressions.
9304
9305         * mini.h linear-scan.c mini-x86.c mini-sparc.c mini-ppc.c: Add 'cfg'
9306         argument to mono_arch_regalloc_cost.
9307
9308         * mini-x86.c (mono_arch_regalloc_cost): Compute regalloc costs 
9309         precisely.
9310
9311 2004-02-24  Zoltan Varga  <vargaz@freemail.hu>
9312
9313         * mini.h mini-x86.c mini-ppc.c mini-sparc.c linear-scan.c: 
9314         Make the cost of allocating a variable to a register arch dependent.
9315
9316         * basic-calls.cs: Fix compilation of tests.
9317         
9318         * mini.h mini.c tramp-x86.c mini-x86.c: Add mono_running_on_valgrind ()
9319         helper function to cut back on the number of #ifdefs needed.
9320
9321         * mini-ppc.c: Fix compilation.
9322
9323         * basic-calls.cs: New regression tests.
9324
9325         * mini-sparc.c (mono_sparc_is_virtual_call): New helper function.
9326
9327         * tramp-sparc.c (create_specific_trampoline): Use g5 register instead
9328         of l0 since that is callee saved.
9329
9330         * tramp-sparc.c (sparc_magic_trampoline): Apply unbox trampoline only
9331         to virtual calls.
9332
9333         * mini-sparc.c: Ongoing work + flag virtual calls with a special kind 
9334         of delay instruction.
9335
9336         * inssel.brg (OP_CHECK_THIS): Set tree->sreg1 and dreg correctly.
9337
9338         * mini.h (MonoCallInst): Add 'virtual' flag.
9339
9340         * inssel.brg (mini_emit_virtual_call): Set 'virtual' flag.
9341
9342 2004-02-23  Zoltan Varga  <vargaz@freemail.hu>
9343
9344         * *.cs: New regression tests.
9345
9346         * mini-sparc.c inssel-sparc.brg: Update after latest changes. Ongoing sparc 
9347         work.
9348
9349         * mini.c (mono_runtime_install_handlers): Fix build.
9350
9351         * mini.h (MonoJitTlsData): Add 'stack_size', 'signal_stack' and
9352         'signal_stack_size' members.
9353
9354         * mini.h mini.c mini-x86.h mini-x86.c: Run sigsegv handlers on an 
9355         alternate signal stack.
9356
9357         * exceptions-x86.c: Add stack overflow handling.
9358
9359         * mini.h mini.c mini-x86.c mini-ppc.c trace.h trace.c: Move tracing 
9360         functions to arch independent code.
9361
9362         * mini.c (mono_print_tree): Print more detailed info for load_membase
9363         opcodes.
9364         
9365 2004-02-23  Martin Baulig  <martin@ximian.com>
9366
9367         * mini.c (mini_get_method): Set `gmethod->generic_inst'.
9368
9369 Sun Feb 22 22:25:19 CET 2004 Paolo Molaro <lupus@ximian.com>
9370
9371         * mini-x86.c: fixed reg allocation for div/rem.
9372
9373 2004-02-22  Miguel de Icaza  <miguel@ximian.com>
9374
9375         * driver.c (mono_main): Report some configuratio options on --version.
9376
9377 Fri Feb 20 11:01:44 PST 2004 Paolo Molaro <lupus@ximian.com>
9378
9379         * mini-ppc.c: fixed clt.un, cgt.un. Optimized calls to functions
9380         low in the address space. Correctly flush memory in thunks where we
9381         output native code.
9382
9383 2004-02-20  Martin Baulig  <martin@ximian.com>
9384
9385         * mini.c (mini_get_method): New static method; inflate all generic
9386         methods and methods in open generic instances.
9387         (mono_method_to_ir): Use mini_get_method() instead of mono_get_method().
9388         (ret_type_to_call_opcode): Added support for MONO_TYPE_GENERICINST.
9389
9390 2004-02-19  Zoltan Varga  <vargaz@freemail.hu>
9391
9392         * mini-sparc.c (mono_arch_patch_code): Update after domain->code_mp changes.
9393
9394         * tramp-sparc.c (mono_arch_create_jump_trampoline): Set ji->method.
9395
9396 2004-02-19  Bernie Solomon  <bernard@ugsolutions.com>
9397
9398         * helpers.c (mono_disassemble_code): use Sun's dis if not using gcc
9399
9400         * mini-sparc.c (flushi mono_arch_output_basic_block): make
9401         it compile using Sun's compiler.
9402
9403 2004-02-19  Zoltan Varga  <vargaz@freemail.hu>
9404
9405         * mini-ops.h inssel-sparc.brg cpu-sparc.md mini-sparc.h mini-sparc.c tramp-sparc.c exceptions-sparc.c: Sparc port, part I.
9406
9407         * basic-calls.cs basic-float.cs basic-long.cs objects.cs: New regression tests.
9408
9409 Tue Feb 17 21:41:20 CET 2004 Paolo Molaro <lupus@ximian.com>
9410
9411         * aot.c, mini-x86.c, mini.c: use the code manager instead of a mempool to hold native
9412         code.
9413         * mini-ppc.c: handle calls outside of the allowed range with thunks
9414         allocated using the code manager.
9415         * tramp-ppc.c: use the code manager to hold generated native code.
9416         Fixed the magic trampoline to just patch vtable entries.
9417
9418 2004-02-17  Zoltan Varga  <vargaz@freemail.hu>
9419
9420         * inssel.brg inssel-x86.brg: Move call(immediate) rules to the platform
9421         independent file.
9422
9423 2004-02-16  Zoltan Varga  <vargaz@freemail.hu>
9424
9425         * tramp-ppc.c (mono_arch_create_jump_trampoline): Fix compilation on
9426         PPC.
9427
9428         * mini-x86.c: Call mono_arch_get_lmf_addr instead of mono_get_lmf_addr
9429         if we have a working __thread implementation.
9430
9431         * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Remove 
9432         OP_CALL_IMM opcodes, since the CALL opcodes handles immediates as well.
9433
9434 2004-02-15  Zoltan Varga  <vargaz@freemail.hu>
9435
9436         * mini-x86.c: Fix compilation under gcc 2.
9437         
9438 2004-02-14  Zoltan Varga  <vargaz@freemail.hu>
9439
9440         * mini.c (mono_codegen): Avoid infinite loop when an icall wrapper
9441         contains a call to the wrapped function.
9442
9443         * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Add 
9444         OP_<CALL>_IMM opcodes, and use them under X86.
9445         
9446         * mini.c (mono_jit_find_compiled_method): Fix warning.
9447
9448         * cpu-pentium.md: Fix length of opcodes which use x86_alu_membase_imm.
9449
9450         * jit-icalls.c (mono_ldftn_nosync): New JIT icall.
9451
9452         * tramp-x86.c (mono_arch_create_jump_trampoline): Move arch independent
9453         functionality to mini.c.
9454
9455         * mini.c (mono_create_jump_trampoline): New function to create a jump
9456         trampoline. Return a compiled method instead of a trampoline if it
9457         exists. Add a cache for jump trampolines.
9458
9459         * mini.c (mono_jit_find_compiled_method): New function to return a
9460         compiled method if it exists.
9461
9462         * mini-x86.c: Call mono_create_jump_trampoline instead of 
9463         mono_arch_create_jit_trampoline.
9464
9465         * jit-icalls.c (mono_ldftn): Do not compile the method. Instead, return
9466         a jump trampoline. Fixes #52092.
9467         
9468 2004-02-11  Zoltan Varga  <vargaz@freemail.hu>
9469
9470         * debug-mini.c (mono_init_debugger): Remove call to mono_verify_corlib,
9471         which is not up-to-date. Add check_corlib_version () instead.
9472
9473         * mini.c (mini_init): Call mono_thread_attach () so embedders do not 
9474         have to call it.
9475         
9476         * mini.c (mono_runtime_install_handlers): Remove check for valgrind
9477         since newer valgrind versions do not need it.
9478
9479         * mini.c (mono_jit_compile_method_with_opt): New helper function to
9480         compile a method with a given set of optimizations.
9481
9482         * mini.c: Compile icall wrappers on-demand instead of at startup.
9483
9484         * mini-sparc.c mini-ppc.c: Call mono_icall_get_wrapper to obtain the
9485         wrapper for an icall.
9486
9487 2004-02-10  Zoltan Varga  <vargaz@freemail.hu>
9488
9489         * mini.c (mono_method_to_ir): Handle switch with non-empty stack. Fixes
9490         #54063.
9491
9492         * iltests.il: Add test for non-empty stack before switch instruction.
9493
9494 2004-02-02  Zoltan Varga  <vargaz@freemail.hu>
9495
9496         * mini.c: Add support for new stringbuilder marshalling conventions.
9497
9498         * mini.c (mono_method_to_ir): Fix stack management of generic CEE_BOX.
9499
9500 2004-02-01  Martin Baulig  <martin@ximian.com>
9501
9502         * mini.c (MTYPE_PARAM_TO_TYPE): Method type arguments are stored
9503         in `ginst->mtype_argv'.
9504
9505 2004-01-31  Miguel de Icaza  <miguel@ximian.com>
9506
9507         * mini.c: Add comments, replace CEE_XXX+128 with OP_XXX to
9508         facilitate grepping.
9509
9510 Wed Jan 28 14:04:58 CET 2004 Paolo Molaro <lupus@ximian.com>
9511
9512         * mini.c: fixed buglet in initobj generic implementation for references.
9513
9514 Fri Jan 23 16:10:44 EST 2004 Paolo Molaro <lupus@ximian.com>
9515
9516         * Makefile.am: make the version script conditional.
9517         * jit-icalls.c: handle missing truncl().
9518
9519 2004-01-23  Zoltan Varga  <vargaz@freemail.hu>
9520
9521         * exceptions.cs: Add more tests for double->int conversion.
9522
9523         * jit-icalls.c (mono_fconv_ovf_i8): Call truncl before comparison, so
9524         we don't throw exceptions when converting 1.1 to a long. Fixes #53250.
9525
9526 Fri Jan 23 17:12:08 CET 2004 Paolo Molaro <lupus@ximian.com>
9527
9528         * driver.c: make --verbose --version emit an error
9529         if the loaded corlib doesn't match the runtime version.
9530
9531 Mon Jan 19 17:44:50 CET 2004 Paolo Molaro <lupus@ximian.com>
9532
9533         * mini-ppc.h: export ppc_patch().
9534         * mini-ppc.c: call convention fixes. Added assert in ppc_patch().
9535         * tramp-ppc.c: call convention fixes: Linux/PPC support should be
9536         on par or better than on MacOSX.
9537
9538 2004-01-19  Zoltan Varga  <vargaz@freemail.hu>
9539
9540         * mini.c tramp-x86.c tramp-sparc.c: Updated after changes to
9541         mono_lookup_pinvoke_call.
9542
9543         * mini-x86.c: Under windows, the default pinvoke calling convention is
9544         stdcall. Fixes #52834.
9545
9546         * mini.c (optimize_branches): Add an upper bound to the number of
9547         iterations to prevent infinite loops on strange loops. Fixes #53003.
9548
9549 2004-01-16  Zoltan Varga  <vargaz@freemail.hu>
9550
9551         * inssel.brg: Add vectors<->one dimensional array checking to CASTCLASS
9552         and ISINST. Fixes #52093.
9553
9554         * objects.cs (test_0_vector_array_cast): New tests.
9555         
9556 2004-01-15  Zoltan Varga  <vargaz@freemail.hu>
9557
9558         * jit-icalls.c (helper_stelem_ref_check): New jit icall for array type
9559         checking in Array.Set ().
9560
9561         * mini.c (method_to_ir): Add array type checking in Array.Set (). Fixes
9562         #52590.
9563
9564         * object.cs (test_0_multi_array_cast): New regression test.
9565
9566 Thu Jan 15 16:30:24 CET 2004 Paolo Molaro <lupus@ximian.com>
9567
9568         * exceptions-ppc.c: fix build on Linux/PPC.
9569
9570 2004-01-14  Zoltan Varga  <vargaz@freemail.hu>
9571
9572         * tramp-x86.c (x86_magic_trampoline): Disable code patching when
9573         running under valgrind.
9574         (x86_magic_trampoline): Fix build bustage.
9575
9576         * debug-mini.c: Modify the debug info serialize/deserialize code so it handles
9577         negative values as well. This is needed for the encoding of the line number
9578         info, since sometimes the line numbers are not in increasing order.
9579
9580 2004-01-13  Zoltan Varga  <vargaz@freemail.hu>
9581
9582         * cpu-pentium.md (localloc): Increase the size of the localloc 
9583         instruction since it is a loop under Win32.
9584
9585         * debug-mini.c (record_line_number): Get rid of unneccesary memory
9586         allocation.
9587
9588 2004-01-09  Zoltan Varga  <vargaz@freemail.hu>
9589
9590         * exceptions-ppc.c exceptions-x86.c exceptions-sparc.c 
9591         tramp-x86.c tramp-ppc.c tramp-sparc.c: Applied patch from 
9592         Max Horn (max@quendi.de). Fix file names in comments.
9593
9594 2004-01-03  Zoltan Varga  <vargaz@freemail.hu>
9595
9596         * ssa.c (mono_ssa_rename_vars): Allocate new_stack on the heap to
9597         avoid stack overflow.
9598         (replace_usage): Avoid uninitialized variable warnings.
9599
9600         * mini.c (mono_method_to_ir): Avoid disabling SSA for array operations
9601         and taking the address of valuetype variables.
9602
9603 2004-01-03  Patrik Torstensson
9604
9605         * mini-x86.c: renamed fpflags to flags in RegTrack, going to be used
9606         for other purposes than FP later on.
9607
9608 2004-01-02  Zoltan Varga  <vargaz@freemail.hu>
9609
9610         * mini.c (mono_method_to_ir): Prevent register allocation for arguments
9611         of tail calls.
9612
9613 Fri Jan 2 13:37:25 CET 2004 Paolo Molaro <lupus@ximian.com>
9614
9615         * mini-ops.h, mini.c, inssel.brg: Object.GetType () speedup.
9616
9617 2003-12-30  Patrik Torstensson <p@rxc.se>
9618
9619         * mini-x86.h: Decreased number of availiable fp regs.
9620         Solves corner cases with FP spilling.
9621
9622 2003-12-23  Patrik Torstensson <p@rxc.se>
9623
9624         * mini-x86.c, mini-ops.h, cpu-pentium.md: Added support
9625         for floating point stack tracking / spilling on x86. 
9626         Fixes bug #49012.
9627         
9628         * basic-float.cs: added float mul overflow test.
9629
9630 2003-12-23  Zoltan Varga  <vargaz@freemail.hu>
9631
9632         * mini.c (mono_method_to_ir): Add workaround for bug #51126.
9633
9634 Sun Dec 21 19:53:16 CET 2003 Paolo Molaro <lupus@ximian.com>
9635
9636         * mini.h, mini-ppc.c, mini-ppc.h: small cleanups and
9637         supports for cond branches that overflow the immediate
9638         overflow offset. mcs can compile simple programs.
9639
9640 Fri Dec 19 21:17:16 CET 2003 Paolo Molaro <lupus@ximian.com>
9641
9642         * exceptions-ppc.c: exception handling support wip:
9643         finally handlers get run on exception.
9644
9645 2003-12-19  Zoltan Varga  <vargaz@freemail.hu>
9646
9647         * aot.c (mono_aot_get_method_inner): Avoid loading AOT code while 
9648         profiling.
9649
9650 Fri Dec 19 17:58:28 CET 2003 Paolo Molaro <lupus@ximian.com>
9651
9652         * cpu-g4.md, mini-ppc.c, exceptions-ppc.c, mini-ppc.h:
9653         initial support for stack walking and unwinding.
9654
9655 2003-12-18  Zoltan Varga  <vargaz@freemail.hu>
9656
9657         * driver.c (mono_main): Make corlib-out-of-sync message more 
9658         descriptive. Also remove verify_corlib call.
9659
9660 Wed Dec 17 15:31:41 CET 2003 Paolo Molaro <lupus@ximian.com>
9661
9662         * mini.c: make CEE_NEWARR calls and other emulated opcodes 
9663         not overlap with other call's arguments, too.
9664
9665 Wed Dec 17 12:49:23 CET 2003 Paolo Molaro <lupus@ximian.com>
9666
9667         * mini.h, mini.c, mini-ppc.c, mini-sparc.c, mini-x86.c: 
9668         move to arch-specific code the choice of arch-specific
9669         intrinsics (from Laurent Morichetti (l_m@pacbell.net)).
9670         * mini.c: ensure emulation calls will not interleave
9671         with other calls.
9672
9673 Wed Dec 17 12:27:26 CET 2003 Paolo Molaro <lupus@ximian.com>
9674
9675         * tramp-ppc.c, basic-calls.cs: rework trampolines so that
9676         the magic trampoline stack frame is dropped before executing
9677         the new method.
9678
9679 Mon Dec 15 18:13:57 CET 2003 Paolo Molaro <lupus@ximian.com>
9680
9681         * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed some opcode lengths
9682         and integer to fp conversions. Added support for overflowing
9683         arguments on the stack. Reserve a couple more registers as temps.
9684         Added support for aot compilation (as output still needs to be
9685         tweaked, though).
9686
9687 Sat Dec 13 17:49:10 CET 2003 Paolo Molaro <lupus@ximian.com>
9688
9689         * mini-ppc.c, basic-long.cs: fix jumps to known labels.
9690         Don't overwrite return register in some corner cases.
9691
9692 2003-12-13  Zoltan Varga  <vargaz@freemail.hu>
9693
9694         * mini.h mini.c driver.c mini-x86.c mini-ppc.c aot.c: Do not run
9695         static constructors when AOT compiling.
9696
9697         * driver.c (mono_main): Call mono_check_corlib_version.
9698
9699 Sat Dec 13 10:31:12 CET 2003 Paolo Molaro <lupus@ximian.com>
9700
9701         * cpu-g4.md, basic.cs: fixed div target register.
9702
9703 Sat Dec 13 09:45:56 CET 2003 Paolo Molaro <lupus@ximian.com>
9704
9705         * mini-ppc.c, basic.cs: shl_imm fix with test.
9706
9707 Fri Dec 12 21:25:14 CET 2003 Paolo Molaro <lupus@ximian.com>
9708
9709         * inssel-ppc.brg, mini-ppc.h, mini-ppc.c: support for passing 
9710         structures by value. Misc fixes.
9711         * objects.cs: more tests.
9712
9713 Fri Dec 12 10:11:49 CET 2003 Paolo Molaro <lupus@ximian.com>
9714
9715         * mini-ppc.c: lconv.ovf.i implemented.
9716
9717 2003-12-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
9718
9719         * mini.c:
9720         (mini_init): don't error out if someone already called g_thread_init.
9721
9722 Tue Dec 9 17:27:14 CET 2003 Paolo Molaro <lupus@ximian.com>
9723
9724         * exceptions-x86.c, exceptions-ppc.c: allow the exception object
9725         to be any type per the spec. Fix abnormal memory usage when
9726         the same object is repeatedly thrown.
9727
9728 Tue Dec 9 15:39:54 CET 2003 Paolo Molaro <lupus@ximian.com>
9729
9730         * mini.c: check for overruns in IL code.
9731
9732 2003-12-09  Zoltan Varga  <vargaz@freemail.hu>
9733
9734         * TODO: Add/remove some todo entries.
9735
9736 2003-12-08  Zoltan Varga  <vargaz@freemail.hu>
9737
9738         * driver.c (mono_main): Call mono_verify_corlib.
9739
9740 2003-12-07  Lluis Sanchez Gual  <lluis@ximian.com>
9741
9742         * inssel.brg: In CEE_ISINST and CEE_CASTCLASS, removed check for proxy. 
9743         This has been moved to mini.c
9744         * mini.c: in mono_method_to_ir, CEE_ISINST and CEE_CASTCLASS cases, if the
9745         type being casted is marshalbyref it could be a proxy, so instead of
9746         emitting the type check code, emit a call to a runtime method that will
9747         perform the check by calling CanCastTo if needed.
9748
9749 2003-12-06  Zoltan Varga  <vargaz@freemail.hu>
9750
9751         * mini-x86.c (mono_arch_emit_prolog): Fix stack space allocation for
9752         methods with large stack frames under Win32.
9753
9754 2003-12-04  Zoltan Varga  <vargaz@freemail.hu>
9755
9756         * Makefile.am: Distribute regression tests.
9757
9758         * mini-x86.c (mono_arch_get_allocatable_int_vars): Sort the var list
9759         at the end instead of inserting each variable into the sorted list.
9760
9761         * linear-scan.c (mono_varlist_sort): New helper function.
9762         
9763 Wed Dec 3 20:46:28 CET 2003 Paolo Molaro <lupus@ximian.com>
9764
9765         * mini.c: ensure arguments and locals are within bounds.
9766
9767 Wed Dec 3 17:59:10 CET 2003 Paolo Molaro <lupus@ximian.com>
9768
9769         * mini-ppc.c, cpu-g4.md, basic.cs, basic-long.cs: more tests and 
9770         related fixes.
9771
9772 2003-12-03  Zoltan Varga  <vargaz@freemail.hu>
9773
9774         * mini.c (mono_cprop_copy_values): Fix crash.
9775
9776         * aot.c: Set verbosity back to 0.
9777         
9778 Wed Dec 3 15:42:27 CET 2003 Paolo Molaro <lupus@ximian.com>
9779
9780         * regalloc.c: complete memory leak fix by Laurent Morichetti
9781         (l_m@pacbell.net).
9782
9783 2003-12-03  Zoltan Varga  <vargaz@freemail.hu>
9784
9785         * driver.c (main_thread_handler): Revert the previous patch.
9786
9787         * tramp-x86.c (x86_class_init_trampoline): Avoid patching when running
9788         under valgrind.
9789
9790         * mini-x86.c (mono_arch_local_regalloc): Do not allocate transient
9791         memory from the memory pool.
9792
9793         * driver.c (main_thread_handler): Turn on all optimizations when
9794         --aot is used.
9795
9796         * mini.c (mono_find_jit_opcode_emulation): Turn emul_opcode_hash into
9797         an array for better performance.
9798
9799         * regalloc.c (mono_regstate_assign): Fix memory leak.
9800
9801         * debug-mini.c (mono_debug_serialize_debug_info): New function to
9802         serialize the debug info.
9803
9804         * debug-mini.c (mono_debug_add_aot_method): New function to load the
9805         debug info from the serialized representation.
9806
9807         * aot.c: Save debug info into the generated file and load it when 
9808         loading a method.
9809
9810         * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
9811
9812 Mon Dec 1 16:54:05 CET 2003 Paolo Molaro <lupus@ximian.com>
9813
9814         * mini-ppc.c, tramp-ppc.c: save FP arguments in the trampoline.
9815         More FP-related fixes.
9816
9817 Sun Nov 30 19:13:52 CET 2003 Paolo Molaro <lupus@ximian.com>
9818
9819         * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed finally handlers
9820         and register allocation buglet. Hello world now runs.
9821
9822 Fri Nov 28 23:03:05 CET 2003 Paolo Molaro <lupus@ximian.com>
9823
9824         * cpu-g4.md, inssel-ppc.brg, mini-ppc.c: better long return support.
9825         * tramp-ppc.c: fixed class init trampoline.
9826         * inssel-ppc.brg, mini.c, jit-icalls.c, mini-ppc.h: more emulation.
9827
9828 Fri Nov 28 16:36:29 CET 2003 Paolo Molaro <lupus@ximian.com>
9829
9830         * cpu-g4.md, inssel-ppc.brg, jit-icalls.c, mini-ppc.c, mini-ppc.h,
9831         mini.c: more ppc changes/fixes.
9832
9833 2003-11-27  Zoltan Varga  <vargaz@freemail.hu>
9834
9835         * mini.c (mono_method_to_ir): Fix tail calls with valuetype arguments.
9836         Also optimize the case when the arguments are the same in the caller 
9837         and in the callee.
9838
9839         * iltests.il: Add tests for tail calls with valuetype arguments.
9840
9841 Thu Nov 27 21:06:37 CET 2003 Paolo Molaro <lupus@ximian.com>
9842
9843         * mini-ppc.c: fixes for struct return type.
9844
9845 Thu Nov 27 19:02:07 CET 2003 Paolo Molaro <lupus@ximian.com>
9846
9847         * mini.h, mini.c, mini-x86.c, mini-ppc.c, mini-sparc.c: move 
9848         mono_spillvar_offset() to arch-specific code.
9849
9850 Thu Nov 27 18:30:42 CET 2003 Paolo Molaro <lupus@ximian.com>
9851
9852         * mini-ppc.h, mini-ppc.c: handle some different ABI call convention issues.
9853
9854 2003-11-27  Zoltan Varga  <vargaz@freemail.hu>
9855
9856         * exceptions-x86.c: Fix stack space leaks.
9857         
9858         * exceptions-x86.c (mono_arch_find_jit_info): Restore callee saved
9859         registers from the lmf if the method has save_lmf set.
9860
9861 2003-11-26  Zoltan Varga  <vargaz@freemail.hu>
9862
9863         * tramp-x86.c (x86_magic_trampoline): Avoid patching in the addresses
9864         of icall wrappers into InvokeInDomain, since these are now per-domain.
9865
9866 Wed Nov 26 20:15:04 CET 2003 Paolo Molaro <lupus@ximian.com>
9867
9868         * mini-ppc.h, mini-x86.h, mini.c, inssel-ppc.brg, jit-icalls.c:
9869         make some opcode emulation and intrinsic ops enabled/disabled 
9870         according to the architecture. More fixes.
9871
9872 Wed Nov 26 19:59:09 CET 2003 Paolo Molaro <lupus@ximian.com>
9873
9874         * mini-ppc.c, mini-sparc.c, cpu-g4.md: more bug fixes.
9875
9876 Wed Nov 26 19:18:29 CET 2003 Paolo Molaro <lupus@ximian.com>
9877
9878         * mini.h, inssel.brg, mini-x86.c, mini-ppc.c, mini-sparc.c: move
9879         arch-specific handling for 'this' and struct return type to
9880         arch-specific code.
9881
9882 2003-11-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
9883
9884         * aot.c: prevent divide by zero error when reporting (it happened with
9885         Accessibility.dll).
9886
9887 2003-11-25  Zoltan Varga  <vargaz@freemail.hu>
9888
9889         * mini.h (inst_switch): Remove unused macro.
9890
9891 2003-11-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
9892
9893         * aot.c:
9894         (load_aot_module): free 'info->methods' and 'info' properly. No more
9895         "free(): invalid pointer blah" messages when you have an old aot
9896         compiled assembly.
9897
9898 2003-11-21  Lluis Sanchez Gual <lluis@ximian.com>
9899
9900         * jit-icalls.c, mini.c: Added support for context static fields.
9901
9902 2003-11-18  Zoltan Varga  <vargaz@freemail.hu>
9903
9904         * mini.c (mono_method_blittable): Methods which set LastError are not 
9905         blittable either. Fixes #51108.
9906         
9907 Tue Nov 18 16:41:37 CET 2003 Paolo Molaro <lupus@ximian.com>
9908
9909         * mini.c: flush icache.
9910         * cpu-g4.md, mini-ppc.c, inssel.brg: more fixes. Trace support.
9911
9912 2003-11-18  Zoltan Varga  <vargaz@freemail.hu>
9913
9914         * mini.c (mono_type_blittable): OBJECT is not blittable. Fixes #47842.
9915
9916 2003-11-17  Zoltan Varga  <vargaz@freemail.hu>
9917
9918         * tramp-x86.c (x86_class_init_trampoline): Make code patching thread
9919         safe on IA32.
9920
9921         * mini-x86.c (mono_arch_call_opcode): Disable AOT for methods with 
9922         vararg calls.
9923
9924         * inssel.brg (CEE_MKREFANY): Fix AOT case.
9925
9926 2003-11-16  Zoltan Varga  <vargaz@freemail.hu>
9927
9928         * mini-x86.c (mono_arch_local_regalloc): Fix regalloc for div 
9929         instruction when the result is discarded.
9930
9931         * iltests.il (test_0_div_regalloc): New regression test.
9932
9933         * arrays.cs: Fix compilation error.
9934
9935 Fri Nov 14 21:34:06 CET 2003 Paolo Molaro <lupus@ximian.com>
9936
9937         * inssel-x86.brg, inssel-float.brg, mini-ops.h: move x86-specific
9938         float rules to inssel-x86.brg: sane architectures with FP registers
9939         don't need to implement these rules.
9940
9941 Fri Nov 14 20:52:12 CET 2003 Paolo Molaro <lupus@ximian.com>
9942
9943         * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: updates and fixes to the ppc port.
9944
9945 Fri Nov 14 17:58:27 CET 2003 Paolo Molaro <lupus@ximian.com>
9946
9947         * mini.h, inssel-long32.brg: fixed endianess issues in int64
9948         implementation of 32 bit systems.
9949
9950 Thu Nov 13 16:14:41 CET 2003 Paolo Molaro <lupus@ximian.com>
9951
9952         * exceptions-ppc.c: fix build on Linux/ppc from Jeroen@xs4all.nl
9953         (Jeroen Zwartepoorte).
9954
9955 2003-11-12  Zoltan Varga  <vargaz@freemail.hu>
9956
9957         * mini.c (mono_method_to_ir): Use CEE_JMP only if the signature of
9958         the caller and the callee matches.
9959         
9960         * mini.c (mono_method_to_ir): Add comment.
9961
9962         * mini-x86.c (mono_arch_output_basic_block): Use mono_signbit, since
9963         signbit is missing on some platforms.
9964
9965 2003-11-06  Zoltan Varga  <vargaz@freemail.hu>
9966
9967         * mini.h (mono_arch_setup_jit_tls_data): New arch specific function.
9968
9969         * mini.c (setup_jit_tls_data): Call the new function.
9970         
9971         * mini-x86.c mini-ppc.c mini-sparc.c: Define the new function.
9972
9973         * mini-x86.c: Add experimental support for fast access to the lmf
9974         structure under NPTL/Linux 2.6.x.
9975
9976 2003-11-06  Martin Baulig  <martin@ximian.com>
9977
9978         * ldscript: Make `GC_push_all_stack', `GC_start_blocking',
9979         `GC_end_blocking' and 'gc_thread_vtable' public; they're used by
9980         the debugger.
9981
9982 2003-11-02  Martin Baulig  <martin@ximian.com>
9983
9984         * mini.c (inflate_generic_field): New static method.
9985         (mono_method_to_ir): In CEE_LDFLD and CEE_LDSFLD: if we're a
9986         generic instance and the field is declared in a generic type, call
9987         inflate_generic_field() to inflate it.  Fixes gen-28.cs.
9988
9989 2003-10-31  Zoltan Varga  <vargaz@freemail.hu>
9990
9991         * mini.h mini.c (mono_method_same_domain): New function to return
9992         whenever the caller and the callee are in the same domain.
9993
9994         * tramp-x86.c (x86_magic_trampoline): Use the new function.     
9995
9996 2003-10-30  Martin Baulig  <martin@ximian.com>
9997
9998         * mini.c (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): New macros;
9999         similar to TYPE_PARAM_TO_TYPE and TYPE_PARAM_TO_CLASS, but for
10000         method parameters.
10001         (mono_method_to_ir): Added support for MONO_TYPE_MVAR; similar to
10002         MONO_TYPE_VAR, we the actual types from MTYPE_PARAM_TO_CLASS(). 
10003
10004 2003-10-29  Zoltan Varga  <vargaz@freemail.hu>
10005
10006         * mini.c mini-ops.h inssel.brg: Implement undeniable exception 
10007         propagation.
10008
10009         * mini.c (sigusr1_signal_handler): Move creation of the thread abort
10010         object here, so it is in the correct appdomain etc.
10011
10012 2003-10-27  Zoltan Varga  <vargaz@freemail.hu>
10013
10014         * mini.c (mono_jit_compile_method_inner): Lookup icalls here if not
10015         already done.
10016         (mono_method_to_ir): Avoid freeing the type created returned from
10017         mono_type_create_from_typespec, since it is put into an internal cache
10018         by the function. Fixes pointer.exe.
10019
10020         * mini.c tramp-x86.c tramp-sparc.c tramp-ppc.c: Use the normal 
10021         trampolines for icalls and pinvokes as well. Fixes #33569.
10022
10023 2003-10-24  Zoltan Varga  <vargaz@freemail.hu>
10024
10025         * mini.c: Update after appdomain changes.
10026
10027         * mini.c (mono_jit_compile_method_inner): Allways compile native
10028         method wrappers in the root domain, since there can only be one
10029         instance of them, whose address is stored in method->info.
10030
10031 2003-10-16  Zoltan Varga  <vargaz@freemail.hu>
10032
10033         * mini.c (mono_runtime_install_handlers): Get rid of the MONO_VALGRIND
10034         environment variable. Instead detect automatically whenever running
10035         under valgrind using the magic macro RUNNING_ON_VALGRIND from
10036         valgrind.h.
10037
10038 2003-10-16  Miguel de Icaza  <miguel@ximian.com>
10039
10040         * trace.c, trace.h: New files that implement the new trace option
10041         parsing. 
10042
10043         * driver.c: Document new --trace options.
10044
10045         * exceptions-ppc.c, exceptions-x86.c, mini-ppc.c, mini-sparc.c,
10046         mini-x86.c: Apply:
10047
10048         -       if (mono_jit_trace_calls)
10049         +       if (mono_jit_trace_calls != NULL && mono_trace_eval (method))
10050
10051         * mini.h: prototypes.
10052         
10053 2003-10-15  Zoltan Varga  <vargaz@freemail.hu>
10054
10055         * mini.c (mono_method_to_ir): Fix initialization of typedbyref locals.
10056
10057         * mini.c inssel.brg: Implement typedefbyref opcodes.
10058
10059         * mini.c (mono_jit_compile_method): Remove unused local variable.
10060
10061         * mini.c (mono_jit_compile_method_inner): Ditto.
10062         
10063 2003-10-12  Zoltan Varga  <vargaz@freemail.hu>
10064
10065         * tramp-x86.c (x86_class_init_trampoline): Fix build.
10066         
10067         * tramp-x86.c (x86_class_init_trampoline): Thread safety fixes.
10068
10069 2003-10-10  Zoltan Varga  <vargaz@freemail.hu>
10070
10071         * mini.c (mono_no_aot): Remove unused global variable.
10072
10073         * mini.c: Thread safety fixes.
10074
10075 2003-10-09  Zoltan Varga  <vargaz@freemail.hu>
10076
10077         * mini.c (mono_create_class_init_trampoline): Add a lock around
10078         class_init_hash_addr.
10079
10080         * arrays.cs (test_0_newarr_emulation): Add new regression test for
10081         #30073.
10082
10083         * mini.c: Decompose the NEWARR instruction before decomposing its
10084         arguments. Fixes #30073.
10085
10086 2003-10-08  Zoltan Varga  <vargaz@freemail.hu>
10087
10088         * mini-x86.c (mono_arch_emit_epilog): Add support for stdcall calling
10089         convention.
10090
10091 2003-10-06  Zoltan Varga  <vargaz@freemail.hu>
10092
10093         * mini.c (mono_method_to_ir): Allow wrapper data for CEE_LDELEMA.
10094
10095         * inssel-x86.brg (OP_LOCALLOC): Fix register assignment for localloc.
10096
10097         * driver.c: Add support for compiling icall wrappers to --compile.
10098
10099 2003-10-05  Zoltan Varga  <vargaz@freemail.hu>
10100
10101         * inssel.brg: The empty value in class->interface_offsets is -1, not
10102         0. Fixes #49287.
10103
10104 2003-10-03  Zoltan Varga  <vargaz@freemail.hu>
10105
10106         * objects.cs: New test for 'is' operator on an array of interfaces.
10107
10108 Wed Oct 1 19:40:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
10109
10110         * tramp-ppc.c: update trampoline code to support jumps
10111         and class initialization.
10112
10113 2003-09-30  Zoltan Varga  <vargaz@freemail.hu>
10114
10115         * mini.c (mono_jit_compile_method): Fix reading of freed memory.
10116
10117         * inssel.brg (OP_UNBOXCAST): Fix #46027.
10118
10119         * inssel.brg (OP_UNBOX): Remove unused rule.
10120
10121         * mini.h mini.c inssel-x86.brg: Allocate one SP variable for each
10122         region instead of one for each method. Fixes #47813.
10123
10124 2003-09-29  Zoltan Varga  <vargaz@freemail.hu>
10125
10126         * exceptions.cs (test_0_nested_finally): New regression test for
10127         nested exception handlers.
10128
10129         * mini.c (mono_jit_runtime_invoke): Fix for the previous fix.
10130
10131         * mini.c (mono_method_to_ir): Avoid inlining tail calls.
10132
10133         * mini.c (mono_method_to_ir): Fix tail recursion in the presence of 
10134         inlining.
10135
10136         * mini.c (mono_method_check_inlining): Make the inlining limit 
10137         configurable by an environment variable.
10138         
10139         * mini.c (mono_jit_runtime_invoke): Add Gonzalo's fix for #36545.
10140
10141         * mini.h: Bump AOT file version.
10142
10143         * mini.h mini.c aot.c mini-x86.c: For relocations which refer to a 
10144         token, store the image along with the token, since the token might not 
10145         refer to the same image as the method containing the relocation, 
10146         because of inlining.
10147
10148 2003-09-27  Zoltan Varga  <vargaz@freemail.hu>
10149
10150         * mini.c (mono_precompile_assemblies): New function to compile
10151         all methods in all loaded assemblies.
10152
10153         * mini.h driver.c: Added new optimization flag MONO_OPT_PRECOMP.
10154
10155         * regalloc.h regalloc.c (MonoRegState): Change the type of 
10156         iassign and fassign to int*, since they can contain large negative
10157         values if the register is spilled. Also added some comments. Fixes
10158         #45817.
10159
10160         * exceptions-x86.c (seh_handler): Fix handling of system exceptions
10161         under Win32. Fixes #42964.
10162
10163 2003-09-26  Zoltan Varga  <vargaz@freemail.hu>
10164
10165         * mini.h (MONO_PATCH_INFO_WRAPPER): New patch type.
10166
10167         * aot.c: Added support for AOT compiling methods which contain calls
10168         to wrappers. Currently, only remoting-invoke-with-check wrappers are
10169         handled.
10170         
10171         * driver.c (compile_all_methods): Run the compilation in a thread
10172         managed by mono. Fixes #44023.
10173
10174         * mini.c (mono_codegen): Print full method name in verbose output.
10175
10176         * mini-x86.c (mono_arch_patch_code): Fix warning.
10177         
10178         * mini-x86.c (mono_arch_patch_code): Allways create a trampoline for
10179         jumps, since the method we are jumping to might be domain-specific.
10180
10181         * aot.c: Added support for MONO_PATCH_INFO_METHOD_JUMP.
10182
10183 Tue Sep 23 10:50:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
10184
10185         * inssel.brg: string chars are unsigned.
10186
10187 2003-09-15  Zoltan Varga  <vargaz@freemail.hu>
10188
10189         * TODO: New todo item.
10190
10191         * tramp-x86.c (x86_class_init_trampoline): New trampoline function
10192         which calls mono_runtime_class_init and patches the call site to
10193         avoid further calls.
10194         (mono_arch_create_class_init_trampoline): New arch specific function 
10195         to create a class init trampoline.
10196         (create_trampoline_code): Generalized so it can create
10197         class init trampolines as well.
10198
10199         * mini.c (helper_sig_class_init_trampoline): New helper variable.
10200         (mono_create_class_init_trampoline): New function to create and cache
10201         class init trampolines.
10202         (mono_find_class_init_trampoline_by_addr): New function to lookup the
10203         vtable given the address of a class init trampoline. Used by the
10204         patching process.
10205         (mono_codegen): Generate a call to a trampoline instead of
10206         mono_runtime_class_init in LDSFLD[A].
10207         (mono_codegen): Add relocations for the new trampoline.
10208         
10209         * mini.h mini-x86.c aot.c: Added a new relocation type: 
10210         MONO_PATCH_INFO_CLASS_INIT.
10211
10212         * mini.h: Bump AOT version number.
10213
10214         * aot.c: Create a copy of the loaded code instead of using the original
10215         so methods which call each other will be close in memory, improving
10216         cache behaviour.
10217         
10218         * exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
10219         patch since it breaks the regression tests.
10220         
10221         * exceptions-x86.c (mono_arch_has_unwind_info): Added explicit check
10222         for the register saving instruction sequence since the 
10223         frame_state_for function in glibc 2.3.2 don't seem to detect it.
10224
10225 2003-09-14  Zoltan Varga  <vargaz@freemail.hu>
10226
10227         * TODO: Fix todo item && remove another.
10228
10229 2003-09-12  Zoltan Varga  <vargaz@freemail.hu>
10230
10231         * mini-x86.c (mono_arch_patch_code): Fix tail calls broken by a
10232         previous checkin.
10233
10234         * aot.c: Moved the check for MONO_LASTAOT into the initialization
10235         function of the module.
10236
10237         * mini.h mini.c aot.c: Added a new optimization flag OPT_AOT for
10238         turning on/off the usage of AOT code. Got rid of mono_no_aot and the
10239         --no-aot command line option.
10240
10241 2003-09-11  Zoltan Varga  <vargaz@freemail.hu>
10242
10243         * helpers.c (mono_disassemble_code): Make this work under cygwin. Patch
10244         by Bernie Solomon (bernard@ugsolutions.com).
10245
10246         * inssel.brg: Refactor the interface offset table related code into
10247         its separate functions and add support for the AOT case.
10248
10249 2003-09-10  Zoltan Varga  <vargaz@freemail.hu>
10250
10251         * aot.c (mono_aot_get_method_inner): Fix memory leak.
10252         
10253         * aot.c: Added mono_aot_verbose variable and made all debugging
10254         output depend on the value of this variable.
10255
10256         * aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
10257         method_label and info_label.
10258
10259         * mini.h mini-x86.c aot.c: Added a new relocation type 
10260         MONO_PATCH_INFO_IID for klass->interface_id.
10261
10262         * mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
10263         the MonoJitInfo structure.
10264
10265         * mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
10266         a non-root appdomain in shared mode.
10267
10268 Tue Sep 9 16:33:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
10269
10270         * aot.c: make aot loader less verbose. Remove free of unused variable.
10271
10272 2003-09-08  Zoltan Varga  <vargaz@freemail.hu>
10273
10274         * aot.c (mono_aot_get_method_inner): Fix MONO_PATCH_INFO_IMAGE.
10275
10276         * .cvsignore: Added *.dll.
10277
10278         * mini.c (mono_print_tree_nl): New function callable while debugging.
10279
10280         * mini.c (mono_print_code): Export this.
10281
10282         * tramp-x86.c (x86_magic_trampoline): Tell valgrind to recompile the
10283         patched code.
10284
10285 2003-09-05  Zoltan Varga  <vargaz@freemail.hu>
10286
10287         * mini.h (MonoCompile): Added 'jit_info' field.
10288
10289         * mini.c (mini_method_compile): Save the generated MonoJitInfo into
10290         the cfg structure, since it is needed by the AOT compiler.
10291
10292         * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
10293
10294         * aot.c: A major rewrite. Changes include:
10295         - save exception tables for methods which have them.
10296         - cache failed lookups in aot_get_method () to avoid the (slow) calls 
10297         to g_module_symbol.
10298         - reworked the file format so it is now much smaller and needs
10299         fewer relocation entries.
10300         
10301 2003-09-04  Zoltan Varga  <vargaz@freemail.hu>
10302
10303         * aot.c (load_aot_module): Fix build bustage on platforms without
10304         Boehm GC.
10305
10306 2003-09-04  Martin Baulig  <martin@ximian.com>
10307
10308         * Makefile.am (INCLUDES): Added $(LIBGC_CFLAGS).
10309
10310 2003-09-04  Zoltan Varga  <vargaz@freemail.hu>
10311
10312         * TODO: Some new optimization ideas.
10313
10314         * aot.c: Move AOT module loading logic here from mono_assembly_open.
10315
10316         * aot.c: Save the optimization flags used to compile the code into
10317         the AOT module.
10318
10319         * mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
10320         support emitting domain specific code.
10321         
10322         * mini.h mini.c aot.c: Modified the JIT so the generated AOT code is 
10323         no longer domain neutral. It can be made domain neutral by compiling 
10324         with --optimize=shared.
10325
10326         * aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
10327         between appdomains.
10328
10329         * driver.c mini.h mini.c: New --no-aot debugging option which disables
10330         loading of AOT code.
10331
10332         * inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
10333         
10334         * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
10335         if there is no domain neutrality information.
10336
10337 2003-09-01  Zoltan Varga  <vargaz@freemail.hu>
10338
10339         * aot.c (mono_compile_assembly): Emit a symbol containing the file 
10340         format version into the generated library.
10341
10342         * mini-x86.c (mono_arch_patch_code): Do not emit the address of the
10343         callee method into the caller since one of them could be shared.
10344
10345         * mini.h mini-x86.c aot.c: Added two new relocations so throwing
10346         system exceptions from AOT code now works.
10347
10348         * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling 
10349         method if it is domain neutral and the callee is not.
10350
10351         * graph.c (cfg_emit_one_loop_level): Fix warning.
10352
10353 2003-08-30  Zoltan Varga  <vargaz@freemail.hu>
10354
10355         * aot.c (mono_compile_assembly): Oops. Remove debugging cruft from
10356         last checkin.
10357
10358 2003-08-29  Zoltan Varga  <vargaz@freemail.hu>
10359
10360         * mini.c (mini_init): Call mono_marshal_init () explicitly since it
10361         is needed  by code which is executed before mono_runtime_init ().
10362         Thanks to Bernie Solomon (bernard@ugsolutions.com) for noticing this.
10363         
10364         * mini.c (mono_thread_abort): Fix warning.
10365         (mono_jit_compile_method): Call static constructor in the AOT case too.
10366
10367         * aot.c (mono_compile_assembly): Fix warning.
10368
10369 2003-08-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
10370
10371         * mini.c: register a SIGINT handler if MONO_DEBUG is defined.
10372
10373 2003-08-28  Zoltan Varga  <vargaz@freemail.hu>
10374
10375         * inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
10376
10377         * cpu-pentium.md: Fix the length of call opcodes so they include the
10378         ESP restoring instruction. Fixes #47968.
10379
10380 2003-08-28  Martin Baulig  <martin@ximian.com>
10381
10382         * mini-x86.c (mono_arch_call_opcode): Added support for
10383         MONO_TYPE_GENERICINST.
10384
10385         * mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.       
10386
10387 2003-08-27  Zoltan Varga  <vargaz@freemail.hu>
10388
10389         * Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
10390         a JIT. Patch by Bernie Solomon (bernard@ugsolutions.com).
10391
10392         * mini.c jit-icalls.c tramp-x86.c tramp-ppc.c tramp-sparc.c: Get rid of
10393         metadata_section.
10394
10395 2003-08-26  Martin Baulig  <martin@ximian.com>
10396
10397         * mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
10398         when reporting an error, set this to the actual error location.
10399         (mono_method_to_ir): Report the correct error location if
10400         get_basic_blocks() returned an error.
10401
10402 2003-08-25  Zoltan Varga  <vargaz@freemail.hu>
10403
10404         * mini.c (mono_type_blittable): OBJECT is not blittable.
10405         (mono_method_blittable): Methods which have marshalling descriptors
10406         are not blittable either. Fixes #47842.
10407
10408 2003-08-22  Zoltan Varga  <vargaz@freemail.hu>
10409
10410         * driver.c mini.c: Use an environment variable instead of a global 
10411         variable. Also fix the build.
10412
10413         * mini.c (mini_init): Call g_thread_init () to make glib thread-safe. 
10414         Fixes #47682. Thanks to Laurent Morichetti (l_m@pacbell.net) for 
10415         reporting this. 
10416
10417         * driver.c mini.c: Added --with-valgrind option to turn off some
10418         code which prevents mono from running under valgrind.
10419
10420         * mini.c (mono_emit_call_args): Fixed warning.
10421
10422         * mini.c (mono_emulate_opcode): Fixed warning.
10423
10424 Thu Aug 21 19:10:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
10425
10426         * inssel.brg: 64bit fixes from Laurent Morichetti <l_m@pacbell.net>.
10427         * linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
10428         regalloc.c, regalloc.h: specify available registers in arch-specific
10429         code and support floats in the regallocator (patch by Laurent Morichetti 
10430         <l_m@pacbell.net>)
10431
10432 Wed Aug 20 19:02:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
10433
10434         * mini.c: mono_thread_current() can be called only after
10435         mono_runtime_init(): rearrange code to not call it early on.
10436
10437 Wed Aug 20 13:14:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
10438
10439         * mini.c: allocate jump tables in the code mempools.
10440
10441 Wed Aug 20 13:04:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
10442
10443         * mini.c, mini.h: make sure per-thread data allocated by the jit is
10444         freed.
10445
10446 2003-08-10  Miguel de Icaza  <miguel@ximian.com>
10447
10448         * cpu-pentium.md (ldtoken): Change the length for mul.ovf.un from
10449         12 to 16.  This fixes bug #47453.
10450
10451
10452 Thu Aug 7 15:59:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
10453
10454         * mini-ppc.c: fixed indexed load and unsigned compares.
10455
10456 2003-08-06  Lluis Sanchez Gual  <lluis@ximian.com>
10457
10458         * mini.c: reenabled installation of handler for
10459           thread abort signal.
10460
10461 Tue Aug 5 12:21:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
10462
10463         * cprop.c, mini-x86.c, cpu-pentium.md: fix buglets spotted
10464         by Laurent Morichetti <l_m@pacbell.net>. Disabled local cprop
10465         until it's fixed and actually useful.
10466
10467 Mon Aug 4 12:12:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
10468
10469         * inssel-long32.brg: couple more opcodes implemented.
10470
10471 Thu Jul 31 22:43:02 EDT 2003 Mark Crichton <crichton@gimp.org>
10472         
10473         * mini-sparc.c: Even more opcodes implemeted.
10474
10475 Thu Jul 31 19:36:03 EDT 2003 Mark Crichton <crichton@gimp.org>
10476
10477         * mini-sparc.c: More opcodes implemented.
10478
10479 Thu Jul 31 15:16:26 EDT 2003 Mark Crichton <crichton@gimp.org>
10480
10481         * mini-sparc.c: More opcodes implemented.
10482
10483 Wed Jul 30 22:31:02 EDT 2003 Mark Crichton <crichton@gimp.org>
10484
10485         * inssel-sparc.brg: Add some needed rules.  Direct
10486         copy from PPC.
10487         * Makefile.am: Use inssel-sparc.brg
10488         * exceptions-sparc.c: 0xdeadbeef/0xdecafbad to keep
10489         an assert happy for now.
10490
10491 Wed Jul 30 20:44:07 EDT 2003 Mark Crichton <crichton@gimp.org>
10492
10493         * mini-sparc.c: Fixed compile errors.
10494         * exceptions-sparc.c: Same.  We now produce a mono binary 
10495         on sparc-linux.  Yea.
10496
10497 Wed Jul 30 14:10:12 EDT 2003 Mark Crichton <crichton@gimp.org>
10498
10499         * mini-sparc.c: Renamed registers.  Also some macro cleanups.
10500         * exceptions-sparc.c, tramp-sparc.c: Various compile fixes.
10501         They compile, but do not work.
10502
10503 Wed Jul 30 17:52:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
10504
10505         * Makefile.am, cpu-sparc.md, exceptions-sparc.c, mini-sparc.c,
10506         mini-sparc.h, tramp-sparc.c: Beginning of sparc support
10507         from Mark Crichton <crichton@gimp.org> and Christopher Taylor
10508         (ct@gentoo.org).
10509
10510 Tue Jul 29 12:43:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
10511
10512         * mini.c: more opcodes implemented and better support for generics.
10513
10514 Fri Jul 25 18:51:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
10515
10516         * cpu-g4.md, cpu-pentium.md: updates for new instructions.
10517         * mini.c, mini.h: first cut at generics support: some new instructions 
10518         added and changed the behaviour of some of the existing ones.
10519
10520 2003-07-21  Miguel de Icaza  <miguel@ximian.com>
10521
10522         * mini.c: Removed definition of metadata_shared mutex here.
10523
10524 Tue Jul 22 15:21:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
10525
10526         * mini-x86.c: make vararg calls work for instance methods.
10527
10528 Fri Jul 18 19:26:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
10529
10530         * mini.c, mini.h, mini-x86.c, mini-ppc.c: mono_arch_call_opcode()
10531         returns the arguments in a separte list, now.
10532
10533 Fri Jul 18 13:16:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
10534
10535         * aot.c, mini.c: updates for array type representation changes.
10536
10537 Fri Jul 18 11:28:28 CEST 2003 Paolo Molaro <lupus@ximian.com>
10538
10539         * mini.c: register function to perform jit shutdown.
10540
10541 Thu Jul 17 16:02:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
10542
10543         * mini.c: use a faster allocator if possible.
10544
10545 Thu Jul 17 16:00:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
10546
10547         * aot.c: some cleanups and portability changes.
10548
10549 Wed Jul 2 11:08:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
10550
10551         * mini.c: use faster allocation for CEE_BOX if possible.
10552
10553 Mon Jun 30 19:16:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
10554
10555         * mini.c, mini-ops.h, inssel.brg, mini-x86.c: optimized access to fields.
10556         Moved inlined mempcy code to its own function so that is can be
10557         reused. Added an inline memset function as well (optimized initobj).
10558         * cpu-pentium.md, inssel-x86.brg: add and use lea_membase.
10559
10560 Fri Jun 27 11:19:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
10561
10562         * mini.c, mini-ops.h, inssel.brg: optimized a couple of Array methods.
10563
10564 Wed Jun 25 13:19:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
10565
10566         * mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
10567         arch code can setup the cpu for CLR execution, if needed.
10568         We use it on x86 to set the precision of FP operations.
10569
10570 Tue Jun 17 19:02:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
10571
10572         * mini.c: disable some optimizations if we can guess they'll cost too
10573         much for a given method.
10574
10575 2003-06-17  Zoltan Varga  <vargaz@freemail.hu>
10576
10577         * mini.h mini.c: Rework last patch based on suggestions by Paolo.
10578         
10579 2003-06-17  Zoltan Varga  <vargaz@freemail.hu>
10580         * mini.h mini.c mini-x86.c: Added instruction level coverage 
10581         info collection support.
10582
10583 Mon Jun 16 18:13:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
10584
10585         * driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
10586         is now implemented in the profiling API. Get rid of a couple of
10587         unnecessary global variables.
10588
10589 2003-06-15  Nick Drochak <ndrochak@gol.com>
10590
10591         * basic-long.cs: tests for negative values for bigmul, and unsigned.
10592         * cpu-g4.md: add op_bigmul and op_bigmul_un
10593         * cpu_pentium.md: add op_bigmul_un
10594         * inssel-long32.brg: add rule for unsigned bigmul
10595         * mini-ops.h: define OP_BIGMUL_UN
10596         * mini-x86.c: THE BUG: handle (un)signed properly
10597         * mini.c: choose unsigned opcode if needed.
10598         This set of patches fixes bug #44291
10599
10600 2003-06-13  Dietmar Maurer  <dietmar@ximian.com>
10601
10602         * mini.c (optimize_branches): improved to handle all kinds of
10603         conditional branches.
10604
10605 Wed Jun 11 18:01:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
10606
10607         * mini.c, mini.h, jit-icalls.c: speedup emulation of opcodes that
10608         don't raise exceptions.
10609
10610 Tue Jun 10 19:00:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
10611
10612         * tramp-x86.c, tramp-ppc.c, debug-mini.c: move arch-specific code
10613         to arch-specific files.
10614
10615 2003-06-09  Martin Baulig  <martin@ximian.com>
10616
10617         * Makefile.am (libs): Added $(LIBGC_LIBS).
10618
10619 Mon Jun 9 20:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
10620
10621         * cpu-pentium.md, mini-x86.c: fix (well, actually implement) OP_TAN
10622         and OP_ATAN (fixes bug#44293).
10623
10624 Mon Jun 9 19:00:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
10625
10626         * Makefile.am, mini-x86.c: rename cpu description array to
10627         pentium_desc, since some compilers define the 'pentium' preprocessor
10628         symbol.
10629
10630 2003-05-28  Dietmar Maurer  <dietmar@ximian.com>
10631
10632         * mini.c (mini_select_instructions): add explicit branch if the
10633         following block is not the false target of a conditional branch -
10634         we need this with any optimization that reorder or remove bblocks
10635
10636         * mini.c (optimize_branches): bug fixes
10637
10638 2003-06-06  Dietmar Maurer  <dietmar@ximian.com>
10639
10640         * mini.c (mono_method_to_ir): inline static readonly fields
10641
10642         * ssa.c (fold_tree): start cfold support for long (very simple
10643         cases only)
10644
10645         * cfold.c (mono_constant_fold_inst): opt. CEE_CONV_I8 (OP_ICONST)
10646
10647 Fri Jun 6 11:41:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
10648
10649         * inssel.brg: fixed memcpy (bug #44219).
10650
10651 2003-06-05  Dick Porter  <dick@ximian.com>
10652
10653         * driver.c: Set the glib log levels to not abort if g_message
10654         recurses.
10655
10656         g_set_prgname() has to happen before mini_init() so that the
10657         process handle gets the info.
10658         
10659 Thu Jun 5 20:11:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
10660
10661         * driver.c: add intrins to the default optimizations to get wider
10662         exposure.
10663
10664 Wed Jun 4 19:47:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
10665
10666         * mini.h: some large basic blocks will overflow a 16-bit
10667         integers for symbolic registers.
10668
10669 2003-06-04  Dietmar Maurer  <dietmar@ximian.com>
10670
10671         * mini-x86.c (mono_arch_output_basic_block): revert previous fprem changes.
10672         (mono_arch_output_basic_block): fix bug 43499 
10673
10674 Wed Jun 4 13:13:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
10675
10676         * mini.c: kill duplicated definition of mono_debug_format.
10677
10678 Wed Jun 4 13:09:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
10679
10680         * mini-x86.c, arrays.cs: fixed register allocation bug.
10681
10682 2003-06-04  Dietmar Maurer  <dietmar@ximian.com>
10683
10684         * mini-x86.c (mono_arch_output_basic_block): use IEEE compatible fprem1
10685
10686         * mini.c (mini_get_opcode_for_method): inline IEEERemainder
10687
10688 2003-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
10689
10690         * mini.c:
10691         (print_method_from_ip): also print source location information if
10692         available.
10693
10694 2003-06-02  Dietmar Maurer  <dietmar@ximian.com>
10695
10696         * mini.c (mono_find_block_region): bug fix in region code
10697         (mini_method_compile): enable removing unreachable code again, but
10698         only in methods without exception clauses.
10699
10700 Fri May 30 18:40:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
10701
10702         * mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
10703         Implemented arglist opcode and handling of TypedReference type.
10704         Fixed x86 call convention when a structure is returned.
10705         Minimal support for calling static vararg methods.
10706
10707 2003-05-30  Dietmar Maurer  <dietmar@ximian.com>
10708
10709         * mini.c (mini_method_compile):  always remove unreachable code,
10710         because the code in them may be inconsistent  (access to dead
10711         variables for example).
10712
10713 Thu May 29 11:44:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
10714
10715         * driver.c, debug-mini.c: warning fixes.
10716
10717 Wed May 28 11:19:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
10718
10719         * Makefile.am, jit.h, mini.h: install header for embedding mono.
10720
10721 Tue May 27 17:56:12 CEST 2003 Paolo Molaro <lupus@ximian.com>
10722
10723         * mini.c: thread-static fields are registered in mono_class_vtable(),
10724         so ensure the function is called before checking for them.
10725
10726 2003-05-27  Dietmar Maurer  <dietmar@ximian.com>
10727
10728         * mini.c (optimize_branches): fix for bug 43586
10729
10730         * jit-icalls.c (mono_llmult_ovf): added an additional check for
10731         overflow (fixes Bug #43639)
10732
10733 Tue May 27 11:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
10734
10735         * mini.c, objects.cs: allow the use of stobj for primitive types.
10736
10737 Tue May 27 10:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
10738
10739         * mini.c: be less strict about argument checking until we support
10740         running the verifier.
10741
10742 2003-05-27  Nick Drochak <ndrochak@gol.com>
10743
10744         * basic-long.cs: tests for (ulong)int * (ulong)int also
10745         * mini.c: use the same trick for (ulong)int * (ulong)int
10746
10747 2003-05-27  Nick Drochak <ndrochak@gol.com>
10748
10749         * basic-long.cs: add regression test for (long)int * (long)int
10750         * cpu-pentium.md: add op_bigmul specification
10751         * inssel-long32.brg: add OP_BIGMUL rule
10752         * mini-ops.h: add OP_BIGMUL
10753         * mini-x86.c: register allocator: handle case where src1 needs to be
10754         in EAX.
10755         * mini.c: substitute special BIGMUL opcode in the tree for 
10756         (long)int * (long)int
10757
10758 Mon May 26 20:20:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
10759
10760         * jit-icalls.c: call the type ctor on field access if needed.
10761
10762 Mon May 26 15:21:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
10763
10764         * mini-ops.h, mini.c, inssel.brg, exceptions.cs: validate arguments passed
10765         to a method (including results of ldelema, bug#43207).
10766
10767 2003-05-26  Dietmar Maurer  <dietmar@ximian.com>
10768
10769         * graph.c (cfg_emit_one_loop_level): loop over all blocks. use
10770         colors to show exception handler blocks.
10771
10772         * inssel-x86.brg (OP_OUTARG_VT): dont push zero sized structures
10773         (fix for pinvoke7.cs).
10774
10775 Mon May 26 12:11:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
10776
10777         * mini.h, mini.c: ensure correct initialization order for types that
10778         require it. Prepare for lazy compilation of jit icall wrappers.
10779         Provide a name for opcode emulation to reduce unneeded mallocing.
10780
10781 Fri May 23 16:08:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
10782
10783         * mini-x86.c: better register restoring code and profiling
10784         support for tail calls.
10785
10786 Fri May 23 15:30:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
10787
10788         * mini.h, driver.c: prepare for leaf methods optimization.
10789
10790 Fri May 23 15:28:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
10791
10792         * mini.c: get targets of branches before converting a method.
10793
10794 2003-05-23  Dietmar Maurer  <dietmar@ximian.com>
10795
10796         * mini.c (optimize_branches): added some experimental code (disbaled) 
10797
10798 2003-05-22  Dietmar Maurer  <dietmar@ximian.com>
10799
10800         * mini.c (optimize_branches): fix branch to branch optimization 
10801
10802         * exceptions-x86.c (mono_arch_handle_exception): bug fix.
10803
10804         * mini-x86.c (mono_arch_output_basic_block): cleanup up exception code
10805
10806         * inssel-x86.brg: added OP_START_HANDLER, CEE_ENDFINALLY, OP_ENDFILTER
10807
10808         * mini-x86.c (mono_arch_allocate_vars): only reserve space for lmf
10809         if needed.
10810
10811 2003-05-21  Dietmar Maurer  <dietmar@ximian.com>
10812
10813         * mini.c (mono_method_to_ir): call handle_loaded_temps before inlining.
10814         enable use of interface variables again.
10815
10816         * mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
10817         I1 to registers because there is no simply way to sign extend 8bit
10818         quantities in caller saved registers on x86.
10819
10820         * inssel-float.brg: set costs of some rules to 2 so
10821         that monobure always select the arch. specific ones if supplied,
10822         regardless of the order we pass the files to monoburg.
10823
10824 Tue May 20 17:19:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
10825
10826         * mini.c, mini-x86.c: since the magic trampoline for jumps
10827         can't patch the code directly, we do it as soon as the
10828         method gets compiled.
10829
10830 Tue May 20 16:02:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
10831
10832         * mini-x86.c, mini.h: introduce a new patching method
10833         to support CEE_JMP and tail calls.
10834         * mini.c: obey tail.call. Don't precompile methods target
10835         of CEE_JMP.
10836         * tramp-x86.c: new trampoline code to handle methods
10837         reached through a jump.
10838
10839 2003-05-20  Dietmar Maurer  <dietmar@ximian.com>
10840
10841         * mini-x86.c (mono_arch_get_allocatable_int_vars): allocate 8/16
10842         bit values to registers
10843
10844 2003-05-19  Dietmar Maurer  <dietmar@ximian.com>
10845
10846         * mini.c (mono_compile_get_interface_var): share interface
10847         variables if possible.
10848
10849 2003-05-16  Martin Baulig  <martin@ximian.com>
10850
10851         * debug-mini.c (mono_init_debugger): New function to initialize
10852         the debugger.  This is not in the debugger since it needs to
10853         access some of mini's internals.
10854
10855 2003-05-16  Dietmar Maurer  <dietmar@ximian.com>
10856
10857         * mini.c (mono_method_to_ir): inlining fixes/cleanups
10858
10859 Fri May 16 13:27:23 CEST 2003 Paolo Molaro <lupus@ximian.com>
10860
10861         * mini.c, mini-opts.h, inssel.brg: inline small memcpy
10862         for value type handling.
10863
10864 2003-05-16  Dietmar Maurer  <dietmar@ximian.com>
10865
10866         * mini.c (mono_method_to_ir): inline LDFLD/STFLD wrappers
10867         (mono_method_check_inlining): enable inlining of all kinds of wrappers
10868
10869 2003-05-15  Lluis Sanchez Gual  <lluis@ideary.com>
10870
10871         * mini.c: fixed little bug in CEE_NEWOBJ case when calling
10872           the constructor through a proxy.
10873
10874 Thu May 15 17:17:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
10875
10876         * jit-icalls.c, inssel.brg: fixes to array element address
10877         calculations.
10878
10879 2003-05-15  Dietmar Maurer  <dietmar@ximian.com>
10880
10881         * mini-x86.c (is_regsize_var): allocate pointer to registers
10882
10883 Thu May 15 13:04:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
10884
10885         * driver.c: fixed typo, added intrins to the set of optimizations
10886         tested with regressions.
10887
10888 Thu May 15 11:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
10889
10890         * mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
10891         * jit-icalls.c, exceptions.cs: fixed index out of range checks, added
10892         test case.
10893
10894 2003-05-14  Dietmar Maurer  <dietmar@ximian.com>
10895
10896         * inssel.brg: remove some common pop instructions without side effects
10897
10898 Wed May 14 12:40:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
10899
10900         * inssel-x86.brg: fixed thinko in int to double conversions.
10901
10902 Wed May 14 12:01:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
10903
10904         * mini.c, jit-icalls.c: added runtime thread-static variable support.
10905
10906 Tue May 13 22:02:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
10907
10908         * inssel-long32.brg: two more missing instructions.
10909
10910 2003-05-13  Dietmar Maurer  <dietmar@ximian.com>
10911
10912         * mini.c (mono_emit_call_args): set the cil_code for all arguments
10913         if not already set.
10914
10915 2003-05-12  Zoltan Varga  <vargaz@freemail.hu>
10916
10917         * mini-x86.c (mono_arch_output_basic_block): Handle negative zero
10918         correctly.
10919
10920         * basic-float.cs: Added tests for negative zero.
10921
10922 Sun May 11 14:56:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
10923
10924         * inssel-long32.brg, basic-long.cs, exceptions.cs: handle
10925         a couple of missing operations for long casts, with test cases.
10926
10927 2003-05-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
10928
10929         * exceptions-x86.c: fixed small leaks in mono_arch_handle_exception.
10930
10931 2003-05-09  Dietmar Maurer  <dietmar@ximian.com>
10932
10933         * mini-x86.c (mono_arch_emit_prolog): avoid reallocs with better
10934         code size estimation.
10935
10936 2003-05-08  Dietmar Maurer  <dietmar@ximian.com>
10937
10938         * mini.c (mono_jit_create_remoting_trampoline): make it work with
10939         abstract methods (fix bug 42542)
10940
10941         * aot.c: add ability to handle array types
10942         
10943 2003-05-08  Zoltan Varga  <vargaz@freemail.hu>
10944
10945         * mini.c: Call the _specific versions of the object allocation
10946         functions if possible.
10947
10948 Tue May 6 17:18:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
10949
10950         * driver.c: call setlocale ().
10951
10952 Tue May 6 14:38:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
10953
10954         * mini.h, mini.c, aot.c, debug-mini.c, exceptions.c: build fixes for
10955         windows build.
10956
10957 2003-05-05  Dietmar Maurer  <dietmar@ximian.com>
10958
10959         * mini.c (optimize_branches): dont touch code inside exception clauses (fix bug 38136)
10960
10961         * exceptions-x86.c (ves_icall_get_frame_info): also skip remoting
10962         wrappers (fix bug 42122)
10963
10964 2003-05-04  Martin Baulig  <martin@ximian.com>
10965
10966         * mini.h (mono_jit_init, mono_jit_cleanup): Added prototypes.
10967
10968         * driver.c: s/MONO_OPT_SAHRED/MONO_OPT_SHARED/g.
10969         s/mini_set_defaults/mono_set_defaults/g.
10970
10971 2003-05-04  Martin Baulig  <martin@ximian.com>
10972
10973         * driver.c: s/mini_parse_default_optimizations/mono_parse_default_optimizations/g.
10974
10975 Sun May 4 11:48:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
10976
10977         * inssel-long32.brg: add missing lreg: OP_LCONV_TO_U8 (lreg) rule
10978         (reported by Don Roberts).
10979
10980 Fri May 2 18:36:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
10981
10982         * mini.c: temporarily work around two bugs for this release.
10983
10984 Fri May 2 17:37:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
10985
10986         * Makefile.am: avoid linking libmono with GMODULE_LIBS, because
10987         that contains -export-dynamic and it makes using the ld script
10988         useless.
10989         * mini.h, main.c, driver.c: s/mini_main/mono_main/g.
10990
10991 Fri May 2 12:52:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
10992
10993         * mini.h, mini-x86.c, driver.c: disable optimizations not available on a
10994         specific cpu.
10995
10996 Thu May 1 15:28:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
10997
10998         * mini.c: make sure leave calls all the needed finally blocks,
10999         even when the target jumps out of multiple exception clauses.
11000
11001 Thu May 1 15:18:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
11002
11003         * ldscript, Makefile.am: add linker script to reduce the number of
11004         exported symbols (should also fix the issues with libwine defining
11005         some of the same symbols in io-layer).
11006
11007 2003-05-01  Zoltan Varga  <vargaz@freemail.hu>
11008
11009         * driver.c (mini_main): Avoid assertion when no file name is given on 
11010         the command line.
11011
11012 Wed Apr 30 15:33:11 CEST 2003 Paolo Molaro <lupus@ximian.com>
11013
11014         * driver.c: added --version/-V command line option.
11015         Added the inline optimization in the regression tests.
11016
11017 Wed Apr 30 15:16:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
11018
11019         * mini.c, basic-calls.cs: when inlining, save arguments to locals according 
11020         to the type in the method signature (fixes bug#42134).
11021
11022 Wed Apr 30 12:38:44 CEST 2003 Paolo Molaro <lupus@ximian.com>
11023
11024         * mini.c: when inlining, check this is not null only when needed (bug #42135).
11025
11026 Wed Apr 30 11:44:36 CEST 2003 Paolo Molaro <lupus@ximian.com>
11027
11028         * mini-ppc.h, tramp-pcc.c: type fixes from Max Horn <max@quendi.de>.
11029
11030 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
11031
11032         * driver.c: fixed bug #42100.
11033
11034 2003-04-29  Dietmar Maurer  <dietmar@ximian.com>
11035
11036         * mini.c (mono_method_to_ir): UNBOX need to CAST objects first
11037
11038 Mon Apr 28 17:03:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
11039
11040         * mini.c: moved most of the code required to do inlining to its own
11041         function so it can be reused. Inline also ctors if appropriate.
11042
11043 2003-04-28  Zoltan Varga  <vargaz@freemail.hu>
11044
11045         * Makefile.am: Link with -export-dynamic so shared libs loaded by
11046         the runtime can call mono API functions.
11047
11048 2003-04-27  Martin Baulig  <martin@ximian.com>
11049
11050         * debug-mini.c (mono_debug_init_method): Added
11051         `guint32 breakpoint_id' argument; if the method has a breakpoint,
11052         send a notification to the debugger.
11053
11054         * mini.c (mono_method_to_ir): Don't insert a breakpoint if we're
11055         running in the Mono Debugger, just pass the breakpoint number to
11056         mono_debug_init_method().
11057
11058         * tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
11059
11060 Sun Apr 27 13:18:04 CEST 2003 Paolo Molaro <lupus@ximian.com>
11061
11062         * mini.c: allow some more unsafe compares.
11063
11064 Sat Apr 26 11:55:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
11065
11066         * mini-x86.c, Makefile.am: make distcheck works (partially from
11067         a patch by Richard Lee <r.h.lee@attbi.com>).
11068         * regset.c, regset.h: removed, they are unused.
11069
11070 2003-04-25  Dick Porter  <dick@ximian.com>
11071
11072         * driver.c: Usage reports the name as 'mono' not 'mini'
11073         * exceptions-x86.c: Build and run on freebsd
11074
11075 Thu Apr 24 17:09:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
11076
11077         * Makefile.am: install the program with the 'mono' name and
11078         the library as libmono instead of mini and libmini.
11079
11080 Thu Apr 24 17:08:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
11081
11082         * driver.c: provide the APIs for the embedding interface of the old jit.
11083
11084 2003-04-23  Dietmar Maurer  <dietmar@ximian.com>
11085
11086         * jit-icalls.c (helper_stelem_ref): impl. (fix bug 41775)
11087
11088 2003-04-23  Martin Baulig  <martin@ximian.com>
11089
11090         * tramp-x86.c, tramp-ppc.c: Reenable the debugger breakpoint interface.
11091
11092         * driver.c: Added `--debug' command line argument to enable
11093         debugging support.
11094
11095 2003-04-23  Martin Baulig  <martin@ximian.com>
11096
11097         * debug.[ch]: Removed.  The code is now in
11098         ../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
11099
11100         * debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
11101         last six months.
11102
11103 2003-04-22  Dietmar Maurer  <dietmar@ximian.com>
11104
11105         * mini.c (mono_method_to_ir): set the cil_code address (fix bug 41525)
11106
11107 2003-04-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
11108
11109         * mini.c:
11110         (mini_cleanup): moved mono_runtime_cleanup call after the call to
11111         mono_domain_finalize.
11112         (mini_method_compile): use mono_method_profile* if the the option is
11113         enabled.
11114
11115 2003-04-17  Zoltan Varga  <vargaz@freemail.hu>
11116
11117         * tramp-x86.c (mono_arch_create_jit_trampoline): Subsitute synchronized
11118         methods with their wrapper.
11119
11120         * tramp-ppc.c (mono_arch_create_jit_trampoline): Subsitute synchronized
11121         methods with their wrapper.
11122
11123         * jit-icalls.c (mono_ldvirtfn): Subsitute synchronized methods with
11124         their wrapper.
11125
11126         * mini.c (mono_method_to_ir): Subsitute synchronized methods with their
11127         wrapper.
11128
11129         * mini.c (mono_method_check_inlining): Avoid inlining synchronized
11130         methods.
11131
11132 2003-04-17  Dietmar Maurer  <dietmar@ximian.com>
11133
11134         * exceptions-x86.c (mono_arch_handle_exception): fix for bug 36252
11135
11136 2003-04-16  Dietmar Maurer  <dietmar@ximian.com>
11137
11138         * mini.c (mono_compile_create_var): use g_malloc/g_realloc instead
11139         of the mempool. This is slightly faster and uses less memory
11140
11141 Wed Apr 16 12:53:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
11142
11143         * mini.c: avoid O(n) allocation for variables.
11144
11145 Tue Apr 15 19:13:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
11146
11147         * mini.c: handle items on the stack after inlining methods.
11148
11149 Tue Apr 15 14:17:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
11150
11151         * mini.c: make the method->opcode optimization dependent
11152         on MONO_OPT_INSTRINS and do it lazily.
11153
11154 Tue Apr 15 14:15:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
11155
11156         * driver.c: print overall results at the end of regression run.
11157
11158 Tue Apr 15 11:18:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
11159
11160         * inssel.brg: don't overwrite symbolic registers.
11161
11162 Mon Apr 14 17:41:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
11163
11164         * inssel-x86.brg: fix conversion from long to float.
11165
11166 2003-04-11  Dietmar Maurer  <dietmar@ximian.com>
11167
11168         * mini.c (mini_init): use an opcode for get_Chars (OP_GETCHR)
11169
11170 2003-04-10  Zoltan Varga  <vargaz@freemail.hu>
11171
11172         * mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
11173
11174         * driver.c: Added --print-vtable option as in the old JIT.
11175
11176 Thu Apr 10 17:43:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
11177
11178         * inssel-long32.brg, exceptions.cs: fix conversions from long, too.
11179
11180 Thu Apr 10 16:27:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
11181
11182         * inssel.brg, basic.cs: fixed checked conversions to byte and short.
11183
11184 2003-04-09  Zoltan Varga  <vargaz@freemail.hu>
11185
11186         * mini.c regalloc.c regalloc.h: Fix memory leak.
11187
11188 2003-04-09  Dietmar Maurer  <dietmar@ximian.com>
11189
11190         * aot.c (mono_aot_get_method): register all used strings
11191
11192 Wed Apr 9 15:22:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
11193
11194         * mini.c: always intern strings references with ldstr at compile time.
11195
11196 Tue Apr 8 11:41:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
11197
11198         * Makefile.am: add BUILT_SOURCES.
11199
11200 Mon Apr 7 16:31:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
11201
11202         * driver.c: give a better error message when the assembly to execute
11203         doesn't have an entry point.
11204
11205 2003-04-07  Dietmar Maurer  <dietmar@ximian.com>
11206
11207         * Makefile.am: added hack for automake
11208
11209         * mono/mini/mini.c (mono_save_args): always copy arguments to keep
11210         correct sematics.
11211
11212         * mono/mini/ssa.c (mono_ssa_avoid_copies): don't optimize calls
11213
11214 22003-04-07  Martin Baulig  <martin@ximian.com>
11215
11216         * Makefile.am: Added Makefile.am.
11217
11218         * debugger-main.c: Removed, this is now in the debugger where it
11219         belongs.
11220
11221         * mini.pc.in: Call this package `mini' for the moment.
11222
11223
11224
11225
11226
11227
11228
11229