2005-06-16 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mono / mini / ChangeLog
index 9040790543f61de559d2ab588233cea882913725..3bff525995d10a709f2e7bf51850aa95167fac42 100644 (file)
@@ -1,5 +1,352 @@
+2005-06-16  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * declsec.c: Fixed APTC to check for FullTrust on caller assembly (and
+       not on callee assembly). Fixed some comments.
+
+2005-06-16  Zoltan Varga  <vargaz@freemail.hu>
+
+       * aot.c (mono_compile_assembly): Mark the "methods" symbol as a function so
+       it gets proper disassembly.
+       (emit_method_info): Remove some dead code.
+
+       * mini.c (mini_method_compile): Allways allocate the GOT var in
+       mono_method_to_ir for emulating opcodes.
+
+2005-06-13  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini.c (mono_jit_free_method): Remove the method from the JitInfo table
+       before freeing the code memory. Fixes #74990.
+
+       * objects.cs: Add regression test for #74992.
+
+       * liveness.c: Extend live ranges of arguments to the beginning of the
+       method. Fixes #74992.
+
+       * exceptions-ia64.c mini-ia64.h: Modify ip during exception handling
+       so it points into the faulting instruction.
+
+2005-06-12  Zoltan Varga  <vargaz@freemail.hu>
+
+       * jit-icalls.c (mono_imul_ovf): Add exception handling.
+
+       * *-ia64.*: Ongoing IA64 work.
+
+       * mini.c (mini_init): Fix signature of mono_delegate_ctor.
+
+2005-06-11  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-ia64.h exceptions-ia64.c: Ongoing IA64 work.
+
+       * *-ia64.*: Ongoing IA64 work.
+
+2005-06-10  Zoltan Varga  <vargaz@freemail.hu>
+
+       * basic-long.cs: Add tests for add/sub.ovf.
+
+       * basic.cs: Add tests for sub.ovf.
+
+       * *-ia64.*: Ongoing IA64 work.
+
+2005-06-09  Zoltan Varga  <vargaz@freemail.hu>
+
+       * *-ia64.*: Ongoing IA64 work.
+
+       * basic.cs: Add conv.ovf.i4.un test.
+
+2005-06-09  Massimiliano Mantione  <massi@ximian.com>
+
+       * mini.c: (remove_block_if_useless) Fixed bug 75061.
+       
+2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * mini.c: no SIGUSR2 on windows. Remove it for PLATFORM_WIN32.
+
+2005-06-07  Zoltan Varga  <vargaz@freemail.hu>
+
+       * *-ia64.*: Ongoing IA64 work.
+
+2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * trace.[ch]:
+       * mini.c: added the ability to toggle trace on/off using SIGUSR2.
+
+2005-06-04  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-ia64.c mini-ia64.h: Fix cleanup of memory stack.
+
+2005-06-03  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-amd64.c (emit_call): Fix yet another bug in the near call optimization.
+
+       * mini-amd64.c (amd64_patch): Add an assert to check that the destination
+       of a call is callable by a near call.
+
+2005-05-31  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-ia64.c: Ongoing IA64 work.
+
+2005-05-29  Zoltan Varga  <vargaz@freemail.hu>
+
+       * genmdesc.c: Make the generated array non-static.
+
+       * inssel-long.brg: Fix LSHR_IMM rule.
+
+       * *-ia64.*: Ongoing IA64 work.
+
+       * *-ia64.*: Ongoing IA64 work.
+
+2005-05-28  Zoltan Varga  <vargaz@freemail.hu>
+
+       * *-ia64.*: Ongoing IA64 work.
+
+       * *-ia64.*: Ongoing IA64 work.
+       
+       * mini-ia64.c: Ongoing IA64 work.
+
+       * *-ia64.* jit-icalls.c mini-codegen.c: Ongoing IA64 work.
+
+2005-05-28  Zoltan Varga  <vargaz@freemail.hu>
+
+       * objects.cs basic-calls.cs: Move some tests to objects.cs.
+       
+       * objects.cs basic-long.cs: Move some tests to objects.cs.
+
+2005-05-26  Zoltan Varga  <vargaz@freemail.hu>
+
+       * *-ia64.*: Ongoing IA64 work.
+
+       * iltests.il: Add a new test.
+
+       * mini.c (mono_method_to_ir): Initialize valuetypes when created using
+       newobj. Fixes #75042.
+
+2005-05-22  Zoltan Varga  <vargaz@freemail.hu>
+
+       * *-ia64.*: Ongoing IA64 work.
+       
+       * *-ia64.*: Ongoing IA64 work.
+       
+       * *-ia64.*: Ongoing IA64 work.
+
+       * basic.cs objects.cs: Move tests accessing static variables as well.
+
+       * basic.cs objects.cs: Move test_0_pin_string to objects.cs.
+
+2005-05-21  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini.c (SIG_HANDLER_SIGNATURE): Fix warning.
+
+       * driver.c: Always print failed tests.
+
+       * mini-codegen.c: Use cfg->frame_reg instead of a macro for the
+       frame pointer.
+
+       * *ia64*: Ongoing IA64 work.
+
+2005-05-20  Zoltan Varga  <vargaz@freemail.hu>
+
+       * basic.cs: Add tests for add.ovf. Fix warnings.
+
+2005-05-18  Miguel de Icaza  <miguel@novell.com>
+
+       * driver.c (mono_main): Avoid crash if no argument is passed to
+       --break;  Do not use g_error, but f_printf.   And fix all other
+       ocurrences of the same crash.
+
+2005-05-17  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini.h mini.c: Generalize the existing uses of the MONO_DEBUG env variable
+       and add a new one: aborting when a SIGSEGV is raised while in unmanaged code.
+       Fixes #74742.
+
+2005-05-14  Zoltan Varga  <vargaz@freemail.hu>
+
+       * *-ia64.*: Add beginnings of IA64 backend.
+
+       * Makefile.am mini-arch.h mini-codegen.c: Add IA64 support.     
+
+2005-05-13  Zoltan Varga  <vargaz@freemail.hu>
+
+       * inssel-long.brg: Add missing ulong->{i1, i2} checked conversions.
+       Fixes #74925.
+
+       * basic-long.cs exceptions.cs: Add new tests. Fix some warnings.
+
+       * mini-amd64.c: Fix a warning.
+
+2005-05-10  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-amd64.c (mono_arch_output_basic_block): Fix stack space leakage
+       in float_neg. Fixes #74897.
+
+       * mini-amd64.c (emit_call): Fix another near call bug.
+
+2005-05-06  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * declsec.c: Keep the appdomain information in the structure. Added a 
+       missing "return FALSE" for Unmanaged if FullTrust is set (or else the
+       value gets overwritten).
+       * declsec.h: Set the default MonoArray for the the stack to 6. Added
+       an MonoAppDomain member to MonoSecurityFrame.
+       * mini-exceptions.c: Do not use a glist to keep GC allocated objects
+       used in the stack walk. Now use a MonoArray which grow (double) when
+       it gets full.
+
+2005-05-05  Lluis Sanchez Gual  <lluis@novell.com>
+
+       * mini.c: Re-enabled runtime cleanup, since running threads should
+       now properly stop when exiting.
+
+2005-05-05  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-codegen.c: New file contaning the arch-independent local
+       register allocator. Not used by any architectures yet.
+
+       * mini.h linear-scan.c: Merge some changes from the 
+       mini-xp-local-regalloc branch.
+
+2005-04-28  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-amd64.c (emit_call): Fix calls to native functions when the
+       runtime is compiled as a shared library. Fixes #74756.
+
+       * mini.c (mono_method_to_ir): Assert if ldsfld and friends are used
+       on a literal field. Fixes #74751.
+
+2005-04-25  Raja R Harinath  <rharinath@novell.com>
+
+       * Makefile.am (RUNTIME): Add MONO_CFG_DIR.
+
+2005-04-23  Zoltan Varga  <vargaz@freemail.hu>
+
+       * objects.cs: Add missing null casting test.
+
+2005-04-22  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-exceptions.c (mono_find_jit_info): Fix native offset calculation
+       in wrapper methods. Also rename 'address' variable to 'offset'.
+
+2005-04-20  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini.c debug-mini.c aot.c tramp-x86.c driver.c: Fix some gcc 4.0
+       warnings.
+       
+       * Makefile.am (MCS): Use -unsafe instead of --unsafe.
+
+       * aot.c: Applied patch from "The Software Team" <software@solmersa.com>. Make AOT compilation
+       work on windows.
+
+Mon Apr 18 16:20:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
+
+       * exceptions-ppc.c: update code to handle stack traces (fixes bug #74452).
+
+2005-04-17  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-x86.c (mono_emit_stack_alloc): Initialize the whole allocated area not
+       just the last bytes.
+
+2005-04-17  Zoltan Varga  <vargaz@freemail.hu>
+
+       * aot.c (mono_compile_assembly): Fix warning.
+
+       * mini-exceptions.c (ves_icall_get_frame_info): Fix bug introduced
+       by the _MSC_VER stuff.
+
+2005-04-16  Zoltan Varga  <vargaz@freemail.hu>
+
+       * inssel-long.brg: Fix #74588.
+
+       * cpu-amd64.md: Fix #74591.
+
+       * iltests.il: Add new regression tests.
+
+2005-04-13  Zoltan Varga  <vargaz@freemail.hu>
+
+       * trace.c (mono_trace_enter_method): Print enums as an int, not as a
+       valuetype.
+
+2005-04-11  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-x86.c (setup_stack): Unconditionally call pthread_attr_init ().
+
+       * exceptions-x86.c mini-x86.h mini-x86.c: Applied some freebsd patches 
+       from Bill Middleton <flashdict@gmail.com>.
+
+2005-04-10  Zoltan Varga  <vargaz@freemail.hu>
+
+       * arrays.cs: Add new regression test. Fix warnings.
+
+2005-04-09  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-amd64.c (mono_arch_output_basic_block): Fix stack alignment
+       and leakage in CKFINITE.
+
+       * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Change
+       this to a null op since it is called on amd64 too.
+
+       * exceptions-amd64.c (get_throw_trampoline): Align stack.
+
+       * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Remove
+       body since this is not used on amd64.
+       
+       * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Remove duplicate define.
+
+       * mini-amd64.c: Remove obsolete fixmes.
+
+       * mini.c (print_method_from_ip): Fix debugging support.
+
+2005-2-1  Massimiliano Mantione  <massi@ximian.com>
+
+       * ssapre.c: Fix a subtle bug about availability, and limit SSAPRE
+       so that expressions that don't give much gain are not reduced.
+       * ssapre.h: Likewise.
+
+2005-04-04  Zoltan Varga  <vargaz@freemail.hu>
+
+       * exceptions-x86.c (mono_arch_find_jit_info): Remove last SC_EBP reference.
+
+       * mini-x86.c (mono_emit_stack_alloc): Fix localloc under windows.
+
+       * mini-x86.h exceptions-x86.c: Hopefully fix compilation on *BSD.
+
+2005-04-01  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-sparc.c mini-sparc.h: Add asserts when running with sigaltstack.
+
+       * exceptions-x86.c (mono_arch_monoctx_to_sigctx): Fix cygwin build.
+
+2005-03-31  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-x86.c: If sigaltstack support is enabled, perform win32 style
+       stack touching.
+
+       * mini.h (mono_arch_sigctx_to_monoctx): New arch-specific function.
+
+       * mini.h (mono_arch_monoctx_to_sigctx): New arch-specific function.
+
+       * mini.c: sigaltstack support requires MONO_ARCH_USE_SIGACTION.
+
+       * mini-x86.h mini-x86.c exceptions-x86.c: Add support for 
+       MONO_ARCH_USE_SIGACTION. Fixes #74252.
+
+       * mini-x86.h: Enable MONO_ARCH_USE_SIGACTION on linux.
+
+       * mini-x86.c: Fix up stack overflow handling.   
+
+       * exceptions.cs: Add new regression test.
+
+2005-03-30  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mini-x86.c (mono_arch_emit_prolog): Adjust stack after calls to
+       mono_jit_thread_attach.
+
+       * mini.c (mono_method_to_ir): Verify called method is not abstract.
+
 2005-03-29  Zoltan Varga  <vargaz@freemail.hu>
 
+       * mini.c (mono_method_to_ir): Applied Ben's patch from bug #61441 to
+       avoid calling constructors using callvirt.
+
        * inssel.brg: Fix #74073.
 
 2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>