mono.git
15 years ago2009-02-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 4 Feb 2009 06:31:05 +0000 (06:31 -0000)]
2009-02-04  Atsushi Enomoto  <atsushi@ximian.com>

* BaseMessagesFormatter.cs : do not use non-2.1 CreateInstance().

svn path=/trunk/mcs/; revision=125653

15 years ago2009-02-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 4 Feb 2009 04:23:38 +0000 (04:23 -0000)]
2009-02-04  Atsushi Enomoto  <atsushi@ximian.com>

* UTF32Encoding.cs : fixed wrong range in GetByteCount(). Patch by
  David Michell.

svn path=/trunk/mcs/; revision=125648

15 years agoThis commit adds generic variance support under the new
Scott Thomas [Wed, 4 Feb 2009 04:22:19 +0000 (04:22 -0000)]
This commit adds generic variance support under the new
"future" langversion. Variance is allowed in interface
and delegate types. Covariant type parameters are denoted
with the "out" keyword like so:

interface IFoo<out T> {
    T Bar { get; }
}

And contravariant type parameters are dentoed with the
"in" keyword, like so:

delegate void Bar<in T> (T input);

Covariant type parameters can only be used as method
return types and type arguments for inherited
interfaces. Contravariant type parameters can only be
used as by-value method parameter types.

Only reference type are variant.

!!!IT SHOULD BE NOTED!!!
That the Mono VM does not yet fully support generic
type variance, so variant code compiled with this
feature will not run on Mono until variance support
is complete. Code compiled with this feature will run
on the .NET 2.0 virtual machine.

This patch is contributed under the MIT/X11 license.

svn path=/trunk/mcs/; revision=125647

15 years ago2009-02-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Feb 2009 02:18:48 +0000 (02:18 -0000)]
2009-02-04  Zoltan Varga  <vargaz@gmail.com>

* Regex.cs: Disable the new regex engine for now.

svn path=/trunk/mcs/; revision=125637

15 years agoFix AOT.
Zoltan Varga [Wed, 4 Feb 2009 01:50:17 +0000 (01:50 -0000)]
Fix AOT.

svn path=/trunk/mono/; revision=125634

15 years ago2009-02-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 4 Feb 2009 01:50:09 +0000 (01:50 -0000)]
2009-02-03 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebConnection.cs:
* HttpWebRequest.cs: calling Abort is safe now if the request has been
read entirely.

svn path=/trunk/mcs/; revision=125633

15 years ago2009-02-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Feb 2009 01:31:11 +0000 (01:31 -0000)]
2009-02-04  Zoltan Varga  <vargaz@gmail.com>

* GenericIdentityTest.cs GenericPrincipalTest.cs: Make these tests
quiet.

svn path=/trunk/mcs/; revision=125632

15 years ago2009-02-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Feb 2009 01:24:10 +0000 (01:24 -0000)]
2009-02-04  Zoltan Varga  <vargaz@gmail.com>

* SerializationCallbackTest.cs: Make a few tests quiet.

svn path=/trunk/mcs/; revision=125631

15 years ago2009-02-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Feb 2009 01:23:29 +0000 (01:23 -0000)]
2009-02-04  Zoltan Varga  <vargaz@gmail.com>

* MethodBaseTest.cs: Make a test quiet.

svn path=/trunk/mcs/; revision=125630

15 years ago2009-02-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Feb 2009 01:22:59 +0000 (01:22 -0000)]
2009-02-04  Zoltan Varga  <vargaz@gmail.com>

* TypeBuilderTest.cs: Make this test quiet.

svn path=/trunk/mcs/; revision=125629

15 years ago2009-02-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Feb 2009 01:08:30 +0000 (01:08 -0000)]
2009-02-04  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_output_basic_block): Avoid reading cfg->varinfo[..]
->dreg, that is not the vreg we are looking for.

svn path=/trunk/mono/; revision=125628

15 years ago2009-02-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Feb 2009 01:07:13 +0000 (01:07 -0000)]
2009-02-04  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_spill_global_vars): Fix problems caused by reading
ins->dreg which could be a hardware register, not a vreg.

* aot-compiler.c (emit_method_dwarf_info): Ditto.

* mini.h (MonoCompile): Remove vreg_to_var_num array, it is no longer used.
(struct MonoMethodVar): Add a vreg field, holding the vreg of variable.

* mini.c (mono_compile_create_var_for_vreg): Set var->vreg.

* mini-amd64.c (mono_arch_output_basic_block): Avoid reading cfg->varinfo[..]
->dreg, that is not the vreg we are looking for.

* mini-amd64.h mini-x86.h: Enable MONO_ARCH_LIVENESS_OPS again.

svn path=/trunk/mono/; revision=125627

15 years agoupdate copyright notices
Miguel de Icaza [Wed, 4 Feb 2009 01:06:30 +0000 (01:06 -0000)]
update copyright notices

svn path=/trunk/mono/; revision=125626

15 years ago2009-02-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Feb 2009 01:00:15 +0000 (01:00 -0000)]
2009-02-04  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_output_basic_block): Add support for LIVERANGE_START/
LIVERANGE_END.

svn path=/trunk/mono/; revision=125625

15 years agoDisable HAVE_LIVERANGE_OPS to fix crashes.
Zoltan Varga [Wed, 4 Feb 2009 00:58:22 +0000 (00:58 -0000)]
Disable HAVE_LIVERANGE_OPS to fix crashes.

svn path=/trunk/mono/; revision=125624

15 years agoStyle police
Miguel de Icaza [Wed, 4 Feb 2009 00:54:57 +0000 (00:54 -0000)]
Style police

svn path=/trunk/mono/; revision=125623

15 years ago2009-02-03 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 4 Feb 2009 00:53:31 +0000 (00:53 -0000)]
2009-02-03  Miguel de Icaza  <miguel@novell.com>

* mono-dl.c: Add support for registering in-proc addresses as
libraries that can be P/Invoked.   Used in operating systems that
lack a dynamic linker.

svn path=/trunk/mono/; revision=125622

15 years ago2009-02-03 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 4 Feb 2009 00:42:13 +0000 (00:42 -0000)]
2009-02-03  Miguel de Icaza  <miguel@novell.com>

* configure.in (PLATFORM_NO_SYMLINKS): New define that replaces
PLATFORM_WIN32.

svn path=/trunk/mono/; revision=125621

15 years ago2009-02-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Feb 2009 00:15:45 +0000 (00:15 -0000)]
2009-02-04  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_spill_global_vars): Add an assert to help track down
strange crashes.

svn path=/trunk/mono/; revision=125617

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Feb 2009 22:45:25 +0000 (22:45 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_emit_prolog): Emit unwind info.

* aot-compiler.c (emit_line_number_info): Fix line number emission when
the line diff is 0.

* aot-compiler.c: Add xdebug support on x86.

* unwind.c: Add x86 support.

svn path=/trunk/mono/; revision=125609

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Feb 2009 22:15:08 +0000 (22:15 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* mono-gdb.py: Remove the --64 argument to as, it is not needed.

svn path=/trunk/mono/; revision=125608

15 years ago2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Feb 2009 21:58:34 +0000 (21:58 -0000)]
2009-02-03 Rodrigo Kumpera  <rkumpera@novell.com>

* valid_boxed_vt_compatible_with_sys_vt_or_sys_enum.il:
Regression test for #469549.

svn path=/trunk/mono/; revision=125604

15 years ago2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Feb 2009 21:58:23 +0000 (21:58 -0000)]
2009-02-03 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (is_compatible_boxed_valuetype): When checking if the boxed
valuetype is compatible with target type, check by inheritance as a
VT is not really compatible with System.ValueType, for example.

* verify.c (do_invoke_method): Improve error message.

* verify.c (do_box_value): If boxing a nullable, use the type argument
on stack instead.

* verify.c (do_newobj): Improve error message.

Fixes #469549.

svn path=/trunk/mono/; revision=125603

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Feb 2009 21:37:17 +0000 (21:37 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_exception_debug_info): Control the emission of
unwind info using a new MONO_ARCH_HAVE_XP_UNWIND define.

* mini.c (mini_method_compile): Ditto.

svn path=/trunk/mono/; revision=125599

15 years agoIfdef
Miguel de Icaza [Tue, 3 Feb 2009 20:54:29 +0000 (20:54 -0000)]
Ifdef

svn path=/trunk/mono/; revision=125597

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Feb 2009 20:23:35 +0000 (20:23 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* mono-gdb.py (stringify_class_name): Helper function to print base types
using their short name. Also add a prototype implementation of registering
the hooks from python code instead of needing the mono-gdbinit file.

svn path=/trunk/mono/; revision=125594

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Feb 2009 20:19:25 +0000 (20:19 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* gdb-python.diff: Changes against the gdb archer branch at
http://sourceware.org/gdb/wiki/PythonGdb to fix some problems/add functionality.

svn path=/trunk/mono/; revision=125593

15 years ago2009-02-03 Geoff Norton <gnorton@novell.com>
Geoff Norton [Tue, 3 Feb 2009 20:07:12 +0000 (20:07 -0000)]
2009-02-03  Geoff Norton  <gnorton@novell.com>

        * mono-gdbinit: Hook into backtrace as hook-stop seems to crash gdb
        * mono-gdb.py: Find the gdbinit name from the executable name instead of
        hardcoding mono

svn path=/trunk/mono/; revision=125591

15 years ago2009-02-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 3 Feb 2009 19:39:22 +0000 (19:39 -0000)]
2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
code in the row collection code, so that the completion happens before
the CollectionChanged event, also better encapsulation.
[Fixes bug #471987]

svn path=/trunk/mcs/; revision=125585

15 years ago2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Feb 2009 19:30:31 +0000 (19:30 -0000)]
2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>

* unverifiable_delegate_with_bad_bound_first_arg_to_static_method.il:
* mono/tests/verifier/valid_ldfnt_delegates_of_static_methods.il:
Regression test for #469529.

svn path=/trunk/mono/; revision=125582

15 years ago2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Feb 2009 19:30:21 +0000 (19:30 -0000)]
2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>

* verify.c (mono_delegate_signature_equal): Make it possible to check
first-arg-bound delegates to static method.

* verify.c (verify_delegate_compatibility): Correctly verify delegates to
static methods with the first arg bound.

Fixes #469529.

svn path=/trunk/mono/; revision=125581

15 years agoChange prototype
Miguel de Icaza [Tue, 3 Feb 2009 19:14:59 +0000 (19:14 -0000)]
Change prototype

svn path=/trunk/mono/; revision=125579

15 years ago2009-02-03 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 3 Feb 2009 19:14:01 +0000 (19:14 -0000)]
2009-02-03  Miguel de Icaza  <miguel@novell.com>

* mono-filemap.c: Integrate Paolo's mono-filemap code here, split
some code from mono-mmap. into this file to ease porting.

svn path=/trunk/mono/; revision=125578

15 years agoBuild fix
Miguel de Icaza [Tue, 3 Feb 2009 19:05:35 +0000 (19:05 -0000)]
Build fix

svn path=/trunk/mono/; revision=125577

15 years agoUse a feature test instead of a platform test
Miguel de Icaza [Tue, 3 Feb 2009 19:03:33 +0000 (19:03 -0000)]
Use a feature test instead of a platform test

svn path=/trunk/mono/; revision=125576

15 years agoAdd new feature
Miguel de Icaza [Tue, 3 Feb 2009 19:03:12 +0000 (19:03 -0000)]
Add new feature

svn path=/trunk/mono/; revision=125575

15 years ago2009-02-03 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 3 Feb 2009 18:52:15 +0000 (18:52 -0000)]
2009-02-03  Miguel de Icaza  <miguel@novell.com>

* appdomain.c: Add support for DISABLE_SOCKETS and DISABLE_SHADOW_COPY

svn path=/trunk/mono/; revision=125572

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Feb 2009 18:43:22 +0000 (18:43 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_allocate_vars): Avoid setting cfg->ret->dreg to
the variable index.

svn path=/trunk/mono/; revision=125571

15 years ago2009-02-03 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 3 Feb 2009 18:16:00 +0000 (18:16 -0000)]
2009-02-03  Mark Probst  <mark.probst@gmail.com>

* generic-sharing.c: Don't hold domain lock when calling
instantiate_other_info().  Fixes #471958.

* domain-internals.h, loader.c: Describe locking policy of domain
lock vs loader lock.

svn path=/trunk/mono/; revision=125565

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Feb 2009 18:04:41 +0000 (18:04 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Add emit_push_section ()/emit_pop_section () helper functions
which mimic .push_section/.pop_section in GAS.

svn path=/trunk/mono/; revision=125563

15 years agoFix the build.
Zoltan Varga [Tue, 3 Feb 2009 17:52:43 +0000 (17:52 -0000)]
Fix the build.

svn path=/trunk/mono/; revision=125560

15 years ago2009-02-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 3 Feb 2009 17:51:12 +0000 (17:51 -0000)]
2009-02-03  Jonathan Pobst  <monkey@jpobst.com>

* libmono.vcproj : Track mini/generic-sharing.cs being renamed
to mini/mini-generic-sharing.cs.

svn path=/trunk/mono/; revision=125558

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Feb 2009 16:36:48 +0000 (16:36 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Emit precise live range information for variables.

svn path=/trunk/mono/; revision=125544

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Feb 2009 16:34:38 +0000 (16:34 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_output_basic_block): Add OP_LIVERANGE_START/END.

* method-to-ir.c (mono_spill_global_vars): Compute the instructions marking
the live ranges of variables, and emit OP_LIVERANGE_START/END opcodes for
them.

* mini-ops.h: Add OP_LIVERANGE_START/END opcodes to mark
the live ranges of variables.

* mini.h (struct MonoMethodVar): Add two fields containing the live range
of the variable in terms of native offsets.

svn path=/trunk/mono/; revision=125543

15 years ago2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Feb 2009 16:07:18 +0000 (16:07 -0000)]
2009-02-03 Rodrigo Kumpera  <rkumpera@novell.com>

* valid_valuetype_boxed_types_are_merge_compatible.il:
Regression test for #469528.

svn path=/trunk/mono/; revision=125540

15 years ago2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Feb 2009 16:07:08 +0000 (16:07 -0000)]
2009-02-03 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Added stack_slot_full_name to provide decent and more meanfull
errors.

* verify.c (is_compatible_boxed_valuetype): Be less restrictive when not
under strict mode. Any type, when boxed can be seen as a reference type.

Fixes #469528.

svn path=/trunk/mono/; revision=125539

15 years ago2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Feb 2009 12:48:01 +0000 (12:48 -0000)]
2009-02-03  Rodrigo Kumpera  <rkumpera@novell.com>

* docs/Makefile: Fix install-local and uninstall-local if
DISABLE_MCS_DOCS is defined.

svn path=/trunk/mcs/; revision=125515

15 years agoNew test, update.
Marek Safar [Tue, 3 Feb 2009 12:08:17 +0000 (12:08 -0000)]
New test, update.

svn path=/trunk/mcs/; revision=125509

15 years ago2009-02-03 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 3 Feb 2009 12:07:41 +0000 (12:07 -0000)]
2009-02-03  Marek Safar  <marek.safar@gmail.com>

* class.cs, generic.cs: Emit type parameter constraints for nested
types.

svn path=/trunk/mcs/; revision=125507

15 years ago2009-02-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 3 Feb 2009 11:33:13 +0000 (11:33 -0000)]
2009-02-03  Atsushi Enomoto  <atsushi@ximian.com>

        * SerializationMap.cs : a bit more detailed error message.

svn path=/trunk/mcs/; revision=125504

15 years ago2009-02-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 3 Feb 2009 11:01:04 +0000 (11:01 -0000)]
2009-02-03  Atsushi Enomoto  <atsushi@ximian.com>

        * ClientRuntimeChannel.cs, ClientProxyGenerator.cs :
          change async methods signature and dynamic code generation.

svn path=/trunk/mcs/; revision=125502

15 years ago2009-02-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 3 Feb 2009 10:08:38 +0000 (10:08 -0000)]
2009-02-03 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebProxy.cs: use TryParse when checking for a localhost IP.

svn path=/trunk/mcs/; revision=125499

15 years ago2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Feb 2009 02:53:41 +0000 (02:53 -0000)]
2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>

* arrays.cs: Test for Get/SetValue of array with negate lower bounds.

svn path=/trunk/mono/; revision=125459

15 years ago2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Feb 2009 02:53:30 +0000 (02:53 -0000)]
2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>

* object.h: The lower bound of an array is a signed integer value.
Introduce mono_array_lower_bound_t typedef. It should be used instead of
gint32 as under MONO_BIG_ARRAYS it will be a gint64.

* icall.c: Cast MonoArrayBounds::length to a signed value so correctly
calculate the upper bound.

Fixes #471252.

svn path=/trunk/mono/; revision=125458

15 years ago2008-02-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Feb 2009 02:49:28 +0000 (02:49 -0000)]
2008-02-03 Rodrigo Kumpera <rkumpera@novell.com>

* MonoMethod.cs: Fix the 1.1 build.

2008-02-03  Rodrigo Kumpera  <rkumpera@novell.com>

* MethodInfoTest.cs: Fix the 1.1 build.

svn path=/trunk/mcs/; revision=125456

15 years ago2009-02-02 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 3 Feb 2009 00:17:44 +0000 (00:17 -0000)]
2009-02-02  Miguel de Icaza  <miguel@novell.com>

From Paolo's work, refactored, cleared up:

* threadpool.c, icall.c: ifdef code that requires a working socket
stack.

* metadata.c (mono_metadata_field_info): Do not attempt to return
a value from a function declared as void.

* console-io.c: Use MONO_NULL_TTYDRIVER to remove the tty driver
from the console stack.

* assembly.c: use strrchr instead of rindex.

* class.c, object.c, marshal.c, icall.c, reflection.c: include
alloca.h on systems that have it.

* environment.c: Avoid code that uses stuff from
HAVE_SYS_UTSNAME_H

* appdomain.c: Include sys/time.h.

* console-io.c: include sys/ioctl.h if it is available.

svn path=/trunk/mono/; revision=125449

15 years ago2009-02-02 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 2 Feb 2009 23:32:58 +0000 (23:32 -0000)]
2009-02-02  Mark Probst  <mark.probst@gmail.com>

Contributed under the terms of the MIT/X11 license by Steven
Munroe <munroesj@us.ibm.com>.

* ppc/ppc-codegen.h: Make operand order and case consistent
(assembler order) for ppc_load_reg_update, ppc_load_multiple_regs,
ppc_store_multiple_regs, ppc_lwz, ppc_lhz, ppc_lbz,
ppc_stw,ppc_sth, ppc_stb, ppc_stwu, ppc_lbzu, ppc_lfdu, ppc_lfsu,
ppc_lfsux, ppc_lfsx, ppc_lha, ppc_lhau, ppc_lhzu, ppc_lmw,
ppc_lwzu, ppc_stbu, ppc_stfdu, ppc_stfsu, ppc_sthu, ppc_stmw.  Use
"i" or "ui" instead of "d" for immediated operands to immediate
arthimetic and logical instructions in macros ppc_addi, ppc_addis,
ppc_ori, ppc_addic, ppc_addicd, ppc_andid, ppc_andisd.
[__mono_ppc64__]: Make operand order and case consistent
(assembler order) for ppc_load_multiple_regs,
ppc_store_multiple_regs.  Simplify the DS form and make them
consistent with D forms for ppc_load_reg, ppc_load_reg_update,
ppc_store_reg, ppc_store_reg_update. ppc_ld, ppc_lwa, ppc_ldu,
ppc_std, ppc_stdu.  Define ppc_lwax and ppc_lwaux.

2009-02-02  Mark Probst  <mark.probst@gmail.com>

Contributed under the terms of the MIT/X11 license by Steven
Munroe <munroesj@us.ibm.com>.

* exceptions-ppc.c (restore_regs_from_context): Correct operand
order (offset then base reg) for ppc_load_multiple_regs.
(emit_save_saved_regs) Correct operand order for
ppc_store_multiple_regs.
(mono_arch_get_call_filter): Correct operand order for
ppc_load_multiple_regs.

* mini-ppc.c (emit_memcpy): Fix operand order for
ppc_load_reg_update and ppc_store_reg_update.
(mono_arch_output_basic_block): Correct operand order for ppc_lha.
(mono_arch_emit_epilog): Correct operand order for
ppc_load_multiple_regs.

* tramp-ppc.c (mono_arch_create_trampoline_code): Correct operand
order for ppc_store_multiple_regs and ppc_load_multiple_regs.

svn path=/trunk/mono/; revision=125443

15 years ago2009-02-02 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 2 Feb 2009 23:31:14 +0000 (23:31 -0000)]
2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs: When editing is finished do not remove the editing
row, because it has already become a real one. Instead add a new one.
[Fixes bug #471754]

svn path=/trunk/mcs/; revision=125440

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Feb 2009 23:11:28 +0000 (23:11 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* method-builder.h (_MonoMethodBuilder): Add a 'skip_visibility' flag.

* method-builder.c (mono_mb_create_method): Set method->skip_visibility from
the method builder.

* marshal.c: Set mb->skip_visibility instead of setting it on the method
after it was created and cached, as the later is not thread safe.

svn path=/trunk/mono/; revision=125436

15 years ago2009-02-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Feb 2009 23:07:13 +0000 (23:07 -0000)]
2009-02-03  Zoltan Varga  <vargaz@gmail.com>

* method-builder.h (_MonoMethodBuilder): Add a 'skip_visibility' flag.

* method-builder.c (mono_mb_create_method): Set method->skip_visibility from
the method builder.

* marshal.c: Set mb->skip_visibility instead of setting it on the method
after it was created and cached, as the later is not thread safe.

svn path=/trunk/mono/; revision=125435

15 years ago2009-02-02 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 2 Feb 2009 22:44:13 +0000 (22:44 -0000)]
2009-02-02  Mark Probst  <mark.probst@gmail.com>

* cpu-ppc64.md: Fixed storer4_memindex length.

svn path=/trunk/mono/; revision=125430

15 years ago2008-02-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Feb 2009 21:56:39 +0000 (21:56 -0000)]
2008-02-02  Rodrigo Kumpera  <rkumpera@novell.com>

* MethodInfoTest.cs: Test for non primitive structs.

svn path=/trunk/mcs/; revision=125416

15 years ago2008-02-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Feb 2009 21:56:37 +0000 (21:56 -0000)]
2008-02-02  Rodrigo Kumpera  <rkumpera@novell.com>

* MonoMethod.cs (ToString): Fix the representation of non primitive structs.

svn path=/trunk/mcs/; revision=125415

15 years ago2009-02-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Feb 2009 21:30:26 +0000 (21:30 -0000)]
2009-02-02  Zoltan Varga  <vargaz@gmail.com>

* mono-debug.c (mono_debug_print_stack_frame): Avoid crashes when this is
called while the debugging module is not initialized. Fixes #471669.

svn path=/trunk/mono/; revision=125413

15 years ago2008-02-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Feb 2009 21:02:39 +0000 (21:02 -0000)]
2008-02-02  Rodrigo Kumpera  <rkumpera@novell.com>

* MethodInfoTest.cs: Test for #409583.

svn path=/trunk/mcs/; revision=125410

15 years ago2008-02-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Feb 2009 21:02:36 +0000 (21:02 -0000)]
2008-02-02  Rodrigo Kumpera  <rkumpera@novell.com>

* MonoMethod.cs (ToString): Fix representation of pointer types.

Fixes #409583.

svn path=/trunk/mcs/; revision=125409

15 years ago2009-02-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Feb 2009 20:29:16 +0000 (20:29 -0000)]
2009-02-02  Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs: Add a test for #471255.

svn path=/trunk/mcs/; revision=125403

15 years ago2009-02-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Feb 2009 20:25:42 +0000 (20:25 -0000)]
2009-02-02 Rodrigo Kumpera <rkumpera@novell.com>

* icall.c (type_from_name): Ignore reflection frames to find out the real caller.

Fixes #471255.

svn path=/trunk/mono/; revision=125402

15 years ago2009-02-02 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 2 Feb 2009 18:26:21 +0000 (18:26 -0000)]
2009-02-02  Mark Probst  <mark.probst@gmail.com>

* generic-sharing.c (lookup_or_register_other_info): Make sure the
loader lock is not taken while the templates lock is held.  Fixes
#471089.

svn path=/trunk/mono/; revision=125388

15 years ago2009-02-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Feb 2009 17:40:17 +0000 (17:40 -0000)]
2009-02-02  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_line_number_info): Optimize the size of the emitted
line number info.

svn path=/trunk/mono/; revision=125385

15 years ago2009-02-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Feb 2009 17:24:29 +0000 (17:24 -0000)]
2009-02-02 Rodrigo Kumpera <rkumpera@novell.com>

* configure.in: Add --with-mcs-docs to make it possible to disable building of documentation under mcs.

svn path=/trunk/mono/; revision=125382

15 years ago2009-02-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Feb 2009 17:19:47 +0000 (17:19 -0000)]
2009-02-02 Rodrigo Kumpera <rkumpera@novell.com>

* docs/Makefile: Don't build build-documentation if DISABLE_MCS_DOCS
is defined.

svn path=/trunk/mcs/; revision=125381

15 years ago2009-01-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Feb 2009 17:19:46 +0000 (17:19 -0000)]
2009-01-31 Rodrigo Kumpera <rkumpera@novell.com>

* docs/Makefile: use -f with rm on the clean target so
rm doesn't complain about missing files.

svn path=/trunk/mcs/; revision=125380

15 years ago2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 2 Feb 2009 17:13:44 +0000 (17:13 -0000)]
2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeView.cs: When drawing the node's image, check that the index
specified by the node is valid for the ImageList.
Fixes #471094.

svn path=/trunk/mcs/; revision=125379

15 years ago2009-02-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Feb 2009 16:59:18 +0000 (16:59 -0000)]
2009-02-02  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_line_number_info): Optimize this.

svn path=/trunk/mono/; revision=125375

15 years ago2009-02-02 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 2 Feb 2009 16:42:37 +0000 (16:42 -0000)]
2009-02-02  Mark Probst  <mark.probst@gmail.com>

* metadata.c (type_in_image): Added a check to fix a monodis
crash.

svn path=/trunk/mono/; revision=125371

15 years ago2009-02-02 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 2 Feb 2009 16:17:32 +0000 (16:17 -0000)]
2009-02-02  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Mdb/MdbWriter.cs: add a GetDebugHeader method
that will be used by the image writer.

svn path=/trunk/mcs/; revision=125364

15 years ago2009-02-02 Andrés G. Aragoneses <aaragoneses@novell.com>
Andrés G. Aragoneses [Mon, 2 Feb 2009 15:28:01 +0000 (15:28 -0000)]
2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>

        * ToolBar.cs: Add new UIAPerformClick method to be called by
        UIAutomationWinforms when someone calls Invoke() on the
        ToolBarButtonProvider. r: jpobst

svn path=/trunk/mcs/; revision=125354

15 years ago2009-02-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Feb 2009 15:04:25 +0000 (15:04 -0000)]
2009-02-02  Zoltan Varga  <vargaz@gmail.com>

* generics-invoke-byref.2.cs: Add a test for #471259.

svn path=/trunk/mono/; revision=125352

15 years ago2009-02-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Feb 2009 15:01:55 +0000 (15:01 -0000)]
2009-02-02  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_runtime_invoke): Add support for byref
nullable arguments.

* object.c (mono_runtime_invoke_array): Ditto.

svn path=/trunk/mono/; revision=125351

15 years ago2009-02-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Feb 2009 14:28:41 +0000 (14:28 -0000)]
2009-02-02  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_free_dynamic_wrappers): New function for
freeing wrappers of dynamic methods.

* loader.c (mono_free_method): Call it. Fixes #463323.

svn path=/trunk/mono/; revision=125349

15 years ago2009-02-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Feb 2009 14:11:35 +0000 (14:11 -0000)]
2009-02-02  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_runtime_invoke): Disable sharing for
methods taking vtype/byref arguments, to fix yet another bug caused by
the sharing of runtime invoke wrappers. Partly fixes #471259.

svn path=/trunk/mono/; revision=125348

15 years ago2009-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 2 Feb 2009 12:38:03 +0000 (12:38 -0000)]
2009-02-02  Atsushi Enomoto  <atsushi@ximian.com>

        * JsonReader.cs : show invalid input character in the error
          message.

svn path=/trunk/mcs/; revision=125341

15 years ago2009-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 2 Feb 2009 11:35:56 +0000 (11:35 -0000)]
2009-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* TypeMap.cs : in 2.1 do not use non-2.1 CreateInstance().

svn path=/trunk/mcs/; revision=125338

15 years agoNew test.
Marek Safar [Mon, 2 Feb 2009 11:33:39 +0000 (11:33 -0000)]
New test.

svn path=/trunk/mcs/; revision=125337

15 years agoNew test.
Marek Safar [Mon, 2 Feb 2009 11:33:28 +0000 (11:33 -0000)]
New test.

svn path=/trunk/mcs/; revision=125336

15 years ago2009-02-02 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 2 Feb 2009 11:32:43 +0000 (11:32 -0000)]
2009-02-02  Marek Safar  <marek.safar@gmail.com>

A fix for bug #471213
* class.cs: Avoid emitting backing field for abstract event fields.

svn path=/trunk/mcs/; revision=125334

15 years agoTDS 8 changes
Veerapuram Varadhan [Mon, 2 Feb 2009 11:05:18 +0000 (11:05 -0000)]
TDS 8 changes

svn path=/trunk/mcs/; revision=125333

15 years ago2009-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 2 Feb 2009 10:50:33 +0000 (10:50 -0000)]
2009-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* TypeMap.cs : allow get-only collections. Note that they are not
  always deserializable (in .NET either).

* DataContractJsonSerializerTest.cs : fixed some tests to match
  .NET RTM behavior. Added read-only collection case, (but [Ignore]d).

svn path=/trunk/mcs/; revision=125332

15 years ago2009-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 2 Feb 2009 09:38:03 +0000 (09:38 -0000)]
2009-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* TypeMap.cs : DataContractJsonSerializer in RTM does not seem to
  reject contract-less types. So populate map for public members.
* DataContractJsonSerializer.cs : close XmlWriter to flush stream
  (and it closes the stream by default).

* DataContractJsonSerializerTest.cs : added test for contract-less
  serialization.

* Makefile : add -d:NET_3_5.

svn path=/trunk/mcs/; revision=125328

15 years ago2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 2 Feb 2009 09:30:48 +0000 (09:30 -0000)]
2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* FormEventTest.cs: New test for VisibleChanged event (and children
controls as well).

svn path=/trunk/mcs/; revision=125326

15 years ago2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 2 Feb 2009 09:28:08 +0000 (09:28 -0000)]
2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
MapNotify/UnmapNotify events - we are already firing those events in
the proper places, so we avoid this way to send the same message two
times. I'm leaving the handling code in case we could break something
in the future, as this change seems dangerous (but needed).
Fixes #467546.

svn path=/trunk/mcs/; revision=125325

15 years agoTDS 8 Changes
Veerapuram Varadhan [Mon, 2 Feb 2009 09:26:36 +0000 (09:26 -0000)]
TDS 8 Changes

svn path=/trunk/mcs/; revision=125324

15 years agoTDS 8 changes
Veerapuram Varadhan [Mon, 2 Feb 2009 09:24:39 +0000 (09:24 -0000)]
TDS 8 changes

svn path=/trunk/mcs/; revision=125323

15 years agoTDS 8 changes
Veerapuram Varadhan [Mon, 2 Feb 2009 09:23:17 +0000 (09:23 -0000)]
TDS 8 changes

svn path=/trunk/mcs/; revision=125322

15 years agoTDS 8 changes
Veerapuram Varadhan [Mon, 2 Feb 2009 09:13:24 +0000 (09:13 -0000)]
TDS 8 changes

svn path=/trunk/mcs/; revision=125321

15 years agoTDS 8 changes
Veerapuram Varadhan [Mon, 2 Feb 2009 09:10:15 +0000 (09:10 -0000)]
TDS 8 changes

svn path=/trunk/mcs/; revision=125320

15 years agoFix #463999
Raja R Harinath [Mon, 2 Feb 2009 06:41:28 +0000 (06:41 -0000)]
Fix #463999

* CommittableTransaction.cs (CommitCallback): Handle the case
where the callback is invoked before BeginCommit ends due to the
async call ending synchronously.

svn path=/trunk/mcs/; revision=125314

15 years ago2009-02-02 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Mon, 2 Feb 2009 02:52:45 +0000 (02:52 -0000)]
2009-02-02  Andreia Gaita  <avidigal@novell.com>

* JsonSerializationReader.cs : Use 2.1 "approved" calls for Enum.Parse
    and Convert.ChangeType

svn path=/trunk/mcs/; revision=125298

15 years ago* Microsoft.CSharp.targets: Add targets to generate resource ids.
Ankit Jain [Mon, 2 Feb 2009 00:01:53 +0000 (00:01 -0000)]
* Microsoft.CSharp.targets: Add targets to generate resource ids.
* Microsoft.Common.targets: Add targets for generating resources,
generate and deploy satellite assemblies, resolve project and assembly
references. All intermediate build output goes into a 'obj/' dir by
default. 'Clean' target enabled.

svn path=/trunk/mcs/; revision=125293