mono.git
9 years agoMerge pull request #1057 from lextm/master
Sebastien Pouliot [Tue, 27 May 2014 00:00:43 +0000 (20:00 -0400)]
Merge pull request #1057 from lextm/master

[Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and Subj...

9 years agoMerge pull request #1061 from sethjackson/L_cuserid
Zoltan Varga [Mon, 26 May 2014 23:50:32 +0000 (01:50 +0200)]
Merge pull request #1061 from sethjackson/L_cuserid

L_cuserid was removed from OpenBSD.

9 years agoReplaced C99 variable-length array with an alloca to work with MSVC.
Joao Matos [Mon, 26 May 2014 22:42:09 +0000 (23:42 +0100)]
Replaced C99 variable-length array with an alloca to work with MSVC.

9 years agoFixed SGEN_HASH_TABLE_INIT usages to work in MSVC.
Joao Matos [Mon, 26 May 2014 22:40:30 +0000 (23:40 +0100)]
Fixed SGEN_HASH_TABLE_INIT usages to work in MSVC.

9 years agoFixed TLAB_ACCESS_INIT usages in MSVC by declaring the variables explicitly at the...
Joao Matos [Mon, 26 May 2014 22:39:34 +0000 (23:39 +0100)]
Fixed TLAB_ACCESS_INIT usages in MSVC by declaring the variables explicitly at the start of each block.

9 years ago[System.ServiceModel.Web] Fix issue with types explicitly implementing IDictionary...
Sebastien Pouliot [Mon, 26 May 2014 21:27:26 +0000 (17:27 -0400)]
[System.ServiceModel.Web] Fix issue with types explicitly implementing IDictionary or IDictionary<,>

Issue: The previous code, with new tests [1], failed when the linker was
enabled.

That was caused because the code looks for the Keys and Item properties
getter using reflection. The linker handled that imperfectly (it left
some holes), in part because:

* System.Collections.Generic.IDictionary`2 does not implement
  System.Collections.IDictionary; and

* It preserved the explicit methods - not the implicit one that were
  used the the reflection-based code;

That later fact is also a bug (without the linker involvment) and solved
by this commit. A unit test was added to show the issue (NRE).

The patch also avoid the use of reflection for IDictionary since we can
simply typecast to get the same result (without the additional cost).

9 years agoL_cuserid was removed from OpenBSD.
Seth Jackson [Mon, 26 May 2014 21:21:27 +0000 (17:21 -0400)]
L_cuserid was removed from OpenBSD.

This change released under the MIT license with permission from the original
author Christian Weisgerber.

9 years ago[mcs] Don't release field address copy before it's used. Fixes #20040
Marek Safar [Mon, 26 May 2014 16:50:05 +0000 (18:50 +0200)]
[mcs] Don't release field address copy before it's used. Fixes #20040

9 years ago[arm64] Fix another crash due to not using the right objc_msgSend signature.
Rolf Bjarne Kvinge [Fri, 23 May 2014 16:53:18 +0000 (18:53 +0200)]
[arm64] Fix another crash due to not using the right objc_msgSend signature.

Also simplify the code a little bit, there's no need to have separate
code paths for ARM64, since using the correct objc_msgSend signature
works on all architectures.

9 years agoFix a couple of compiler warnings.
Rolf Bjarne Kvinge [Fri, 23 May 2014 16:51:33 +0000 (18:51 +0200)]
Fix a couple of compiler warnings.

9 years ago[Mono.Security] Added AuthorityKeyIdentifierExtensionTest and SubjectKeyIdentifierExt...
Lex Li [Mon, 26 May 2014 13:09:41 +0000 (13:09 +0000)]
[Mono.Security] Added AuthorityKeyIdentifierExtensionTest and SubjectKeyIdentifierExtensionTest.

9 years ago[mcs] Fix error reporting propagation for loop statements. Fixes #20034
Marek Safar [Mon, 26 May 2014 13:14:58 +0000 (15:14 +0200)]
[mcs] Fix error reporting propagation for loop statements. Fixes #20034

9 years agoMerge pull request #1059 from ranma42/jenkins-warnings-cleanup
Zoltan Varga [Mon, 26 May 2014 09:49:12 +0000 (11:49 +0200)]
Merge pull request #1059 from ranma42/jenkins-warnings-cleanup

Cleanup of some MonoJenkins warnings

9 years agoMerge pull request #1033 from godFather89/master
Marek Safar [Mon, 26 May 2014 07:55:40 +0000 (09:55 +0200)]
Merge pull request #1033 from godFather89/master

When dynamically compiling script with a class with a nested class defin...

9 years ago[mcs] Don't report hiding warnings for compiler generated fields
Marek Safar [Mon, 26 May 2014 07:54:33 +0000 (09:54 +0200)]
[mcs] Don't report hiding warnings for compiler generated fields

9 years ago[mcs] Add cref handling of user operator documentation without parameters
Marek Safar [Mon, 26 May 2014 07:53:32 +0000 (09:53 +0200)]
[mcs] Add cref handling of user operator documentation without parameters

9 years ago[eval] Add test for nested types
Marek Safar [Mon, 26 May 2014 07:47:20 +0000 (09:47 +0200)]
[eval] Add test for nested types

9 years agoFix non-prototype function declarations
Andrea Canciani [Sun, 25 May 2014 09:13:18 +0000 (11:13 +0200)]
Fix non-prototype function declarations

MonoJenkins repeatedly complains about:
mono-counters.c:xxx:1: warning: function declaration isn't a prototype
[-Wstrict-prototypes]

This is caused by the missing declaration of the function arguments.

This change is released under the MIT license.

9 years agoMore C90 compatibility fixes
Andrea Canciani [Sun, 25 May 2014 09:31:05 +0000 (11:31 +0200)]
More C90 compatibility fixes

This silences the following gcc/clang warnings from MonoJenkins:
sgen-tarjan-bridge.c:395:2: warning: ISO C90 forbids mixed declarations and code
proflog.c:1942:2: warning: ISO C90 forbids mixed declarations and code
proflog.c:1999:3: warning: ISO C90 forbids mixed declarations and code
decode.c:2409:6: warning: ISO C90 forbids mixed declarations and code
decode.c:2433:6: warning: ISO C90 forbids mixed declarations and code

Moving the declarations to the beginning of the blocks is sufficient
to silence the warnings.

This change is released under the MIT license.

9 years agoRename configure.in -> configure.ac. Based on PR #976.
Alex Rønne Petersen [Sun, 25 May 2014 17:00:43 +0000 (19:00 +0200)]
Rename configure.in -> configure.ac. Based on PR #976.

9 years agoMerge pull request #1056 from ranma42/vc-compat-C90
Alex Rønne Petersen [Sun, 25 May 2014 16:49:12 +0000 (18:49 +0200)]
Merge pull request #1056 from ranma42/vc-compat-C90

Fix the build on Visual C++

9 years ago[Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and SubjectKeyIdentif...
Lex Li [Sun, 25 May 2014 12:02:57 +0000 (12:02 +0000)]
[Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and SubjectKeyIdentifierExtension.

9 years agoFix the build on Visual C++
Andrea Canciani [Sun, 25 May 2014 07:56:23 +0000 (09:56 +0200)]
Fix the build on Visual C++

Visual C++ does not support intermixed declarations and code and
errors out with:
error C2275: 'guint' : illegal use of this type as an expression

This also silences gcc/clang warnings such as:
mono-counters.c:xxx:3: warning: ISO C90 forbids mixing declarations
and code

In this case this can be fixed easily by skipping the intermediate
variable.

Based on pull request #1043 by J-M <jean-michel.perraud@csiro.au>

This change is released under the MIT license.

9 years agoMerge pull request #1055 from josedonizetti/fix_datacontractserializer_tests
Marek Safar [Sun, 25 May 2014 07:27:34 +0000 (09:27 +0200)]
Merge pull request #1055 from josedonizetti/fix_datacontractserializer_tests

validate if attribute is defined before check IsAny

9 years ago[build] the csproj files can now do a full class libraries build
Miguel de Icaza [Sun, 25 May 2014 04:47:09 +0000 (00:47 -0400)]
[build] the csproj files can now do a full class libraries build

9 years ago[System.Runtime.Remoting] Build if DBEUG Is defined
Miguel de Icaza [Sun, 25 May 2014 04:41:55 +0000 (00:41 -0400)]
[System.Runtime.Remoting] Build if DBEUG Is defined

9 years ago[build] MSBuild setup: Add support for -keyfile and -delaysign, thanks to Marek Safar...
Miguel de Icaza [Sun, 25 May 2014 04:33:21 +0000 (00:33 -0400)]
[build] MSBuild setup: Add support for -keyfile and -delaysign, thanks to Marek Safar for the pointer

9 years ago[build] Drop AssemblyInfo from the sources in Mono.Cecil.Mdb
Miguel de Icaza [Sun, 25 May 2014 04:32:18 +0000 (00:32 -0400)]
[build] Drop AssemblyInfo from the sources in Mono.Cecil.Mdb

9 years ago[build] Fix Mono.Cecil.Mdb build with xbuild
Miguel de Icaza [Sat, 24 May 2014 02:47:40 +0000 (22:47 -0400)]
[build] Fix Mono.Cecil.Mdb build with xbuild

9 years agovalidate if attribute is defined before check IsAny
josedonizetti [Fri, 23 May 2014 15:49:02 +0000 (11:49 -0400)]
validate if attribute is defined before check IsAny

9 years agoRevert "[build] Make Mono.Cecil use an [assmebly:AssemblyKeyFile] to specify keyfile"
Marek Safar [Sat, 24 May 2014 06:24:42 +0000 (08:24 +0200)]
Revert "[build] Make Mono.Cecil use an [assmebly:AssemblyKeyFile] to specify keyfile"

This reverts commit 20872b3abe24c0e085710ea09209a92617fdb2e5 to fix the build

9 years ago[build] Make Mono.Cecil use an [assmebly:AssemblyKeyFile] to specify keyfile
Miguel de Icaza [Sat, 24 May 2014 02:40:24 +0000 (22:40 -0400)]
[build] Make Mono.Cecil use an [assmebly:AssemblyKeyFile] to specify keyfile

Currently the flag is passed on the command line, but this is
problematic for us since our xbuild implementation does not seem to support
the attribute that generates the /keyfile: argument

9 years agoFix TimeZoneTest to build properly with new-style XI assemblies.
Rolf Bjarne Kvinge [Sat, 24 May 2014 00:17:49 +0000 (02:17 +0200)]
Fix TimeZoneTest to build properly with new-style XI assemblies.

9 years agoRemove unused namespace from LazyTest.cs
Rolf Bjarne Kvinge [Sat, 24 May 2014 00:16:59 +0000 (02:16 +0200)]
Remove unused namespace from LazyTest.cs

9 years ago[build] Fix the reference to ecma.pub
Miguel de Icaza [Fri, 23 May 2014 22:03:32 +0000 (18:03 -0400)]
[build] Fix the reference to ecma.pub

9 years ago[runtime] Don't leak memory if the custom attribute constructor throws.
Rodrigo Kumpera [Fri, 23 May 2014 21:33:56 +0000 (17:33 -0400)]
[runtime] Don't leak memory if the custom attribute constructor throws.

9 years ago[runtime] Add regression tests for custom attribute loader errors.
Rodrigo Kumpera [Fri, 23 May 2014 21:30:51 +0000 (17:30 -0400)]
[runtime] Add regression tests for custom attribute loader errors.

9 years ago[reflection] Harder the custom attribute code against common type load errors.
Rodrigo Kumpera [Fri, 23 May 2014 21:15:11 +0000 (17:15 -0400)]
[reflection] Harder the custom attribute code against common type load errors.

Replace silent failures with exceptions.

9 years ago[runtime] Change the semantics of mono_error_set_type_load_name to acquire alloc...
Rodrigo Kumpera [Fri, 23 May 2014 19:38:35 +0000 (15:38 -0400)]
[runtime] Change the semantics of mono_error_set_type_load_name to acquire alloc'd strings.

The use case for this function compared to the one that take MonoClass/MonoImage is for lookups
and the failed names are usually freshly alloc'd.

Fix a leak in class.c usage of mono_error_set_type_load_name.

9 years ago[reflection] Do proper error handling in more cases.
Rodrigo Kumpera [Fri, 23 May 2014 18:10:47 +0000 (14:10 -0400)]
[reflection] Do proper error handling in more cases.

Remove all internal usages of mono_custom_attrs_construct and replace with mono_custom_attrs_construct_by_type
that takes a MonoError.

Introduce mono_custom_attrs_get_attr_checked and replace usage of the old one where it's needed.

9 years ago[build] Fresh new csproj files based on the updated build system.
Miguel de Icaza [Fri, 23 May 2014 21:15:44 +0000 (17:15 -0400)]
[build] Fresh new csproj files based on the updated build system.

9 years ago[build] Fix location of the key file
Miguel de Icaza [Fri, 23 May 2014 21:12:43 +0000 (17:12 -0400)]
[build] Fix location of the key file

9 years ago[Managed.Windows.Forms] Disable TRACE code, since it is broken
Miguel de Icaza [Fri, 23 May 2014 21:09:30 +0000 (17:09 -0400)]
[Managed.Windows.Forms] Disable TRACE code, since it is broken

9 years ago[build] The ecma.pub is one directory above
Miguel de Icaza [Fri, 23 May 2014 20:58:26 +0000 (16:58 -0400)]
[build] The ecma.pub is one directory above

9 years ago[msvc/scripts] Update order.xml file with Makefile changes, update generator
Miguel de Icaza [Fri, 23 May 2014 20:54:25 +0000 (16:54 -0400)]
[msvc/scripts] Update order.xml file with Makefile changes, update generator

9 years ago[build] Ensure that staged build directories are set on LOCAL_MCS_FLAGS
Miguel de Icaza [Fri, 23 May 2014 20:51:33 +0000 (16:51 -0400)]
[build] Ensure that staged build directories are set on LOCAL_MCS_FLAGS

The LOCAL_MCS_FLAGS are passed to the compiler before the standard
directory for the profile.  This is important both for correctness,
and also assists the solution generator, since we can now precisely
determine which intermediate project must be referenced.

9 years agoFix warnings
Marek Safar [Fri, 23 May 2014 19:27:22 +0000 (21:27 +0200)]
Fix warnings

9 years ago[system] Add SendMailAsync methods
Marek Safar [Fri, 23 May 2014 19:11:42 +0000 (21:11 +0200)]
[system] Add SendMailAsync methods

9 years ago[mscorlib] Since .NET 4.5 some of the System.IdentityModel now is in the core, add...
Miguel de Icaza [Fri, 23 May 2014 19:11:18 +0000 (15:11 -0400)]
[mscorlib] Since .NET 4.5 some of the System.IdentityModel now is in the core, add this class

9 years ago[Mono.Posix] Support OS X ENOATTR
Jonathan Pryor [Fri, 23 May 2014 17:26:52 +0000 (13:26 -0400)]
[Mono.Posix] Support OS X ENOATTR

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=19991

The original Mono.Unix.Native.Errno design used the Linux <errno.h>
constants and values...largely because it was easy.

As it turns out, this is also incomplete. The getxattr(2) defines
ENOATTR as a possible error code. On Linux, ENOATTR is an alias for
ENODATA [0]. On OS X, ENOATTR is _not_ an alias. Furthermore, since
ENOATTR is not a Linux errno value (it's an alias!),
Mono_Posix_ToErrno() couldn't check for the native ENOATTR value, so a
Syscall.GetLastError() call after a failing Syscall.getxattr() would
fail with a System.ArgumentOutOfRangeException:

$ csharp -r:Mono.Posix.dll
Mono C# Shell, type "help;" for help

Enter statements below.
csharp> using Mono.Unix.Native;
csharp> byte[] value;
csharp> Syscall.getxattr(".", "test", out value);
-1
csharp> Syscall.GetLastError();
System.ArgumentOutOfRangeException: Current platform doesn't support this value.
Parameter name: value
93
at Mono.Unix.Native.NativeConvert.ThrowArgumentException (System.Object value) [0x00000] in <filename unknown>:0
at Mono.Unix.Native.NativeConvert.ToErrno (Int32 value) [0x00000] in <filename unknown>:0
at Mono.Unix.Native.Stdlib.GetLastError () [0x00000] in <filename unknown>:0

The fix is to add an Errno.ENOATTR field [1].

The complication is one of what enum value to use: at present, the
Errno values are based on the Linux values. In the case of ENOATTR
(and others), there is no Linux value. Meanwhile, there is the
possibility of additional Linux error values; how do we future proof
ourselves?

This isn't a perfect solution, but it should punt the problem down the
road a bit: Errno is an `int` enum, and thus has large range. To
support the OS X values, we add 1000 to the OS X error value.

/* OS X: <errno.h> */
#define ENOATTR 93 /* Attribute not found */

// C# Errno enum:
public enum Errno : int {
// ...
ENOATTR = 1093,
}

This gives us 0..1000 for POSIX+Linux error codes, 1000..2000 for OS X
specific error codes, and as new platforms require additional support
they can all start at multiples of 1000.

Hopefully no single *nix platform will add more than 1000 error codes...

[0]: http://linux.die.net/man/2/getxattr
[1]: Related part of the fix: add all the OTHER <errno.h> values that
     OS X includes but weren't included in the Errno enum.

9 years agoRevert "[system] Add new StreamWebSocket.cs file to the mobile profile list of sources"
Sebastien Pouliot [Fri, 23 May 2014 17:26:34 +0000 (13:26 -0400)]
Revert "[system] Add new StreamWebSocket.cs file to the mobile profile list of sources"

This reverts commit 00ecc7392d03c817d2f52de6758195633b2d28ee.

9 years ago[xbuild] fix NET_2_0 build.
Atsushi Eno [Fri, 23 May 2014 16:26:29 +0000 (01:26 +0900)]
[xbuild] fix NET_2_0 build.

9 years ago[xbuild] implement ToolLocationHelper.GetPathToStandardLibraries().
Atsushi Eno [Fri, 23 May 2014 16:24:27 +0000 (01:24 +0900)]
[xbuild] implement ToolLocationHelper.GetPathToStandardLibraries().

9 years ago[build] Add new project files based on the new staged build
Miguel de Icaza [Fri, 23 May 2014 15:51:20 +0000 (11:51 -0400)]
[build] Add new project files based on the new staged build

9 years ago[build] Use LOCAL_MCS_FLAGS to give preference to the intermediate dir in System...
Miguel de Icaza [Fri, 23 May 2014 15:35:10 +0000 (11:35 -0400)]
[build] Use LOCAL_MCS_FLAGS to give preference to the intermediate dir in System builds, and do not use temporary files for corlib builds

9 years agoRevert "Merge pull request #981 from methane/websocket"
Marek Safar [Fri, 23 May 2014 15:22:39 +0000 (17:22 +0200)]
Revert "Merge pull request #981 from methane/websocket"

This reverts commit 62cc262196951b67a13069444b889dc71758776c, reversing
changes made to c1028cf91286489ef075a33c91d29d1efea8d200.

9 years ago[System] Fix parsing of IPv6 addresses (bug #18574)
Miguel de Icaza [Fri, 23 May 2014 15:04:34 +0000 (11:04 -0400)]
[System] Fix parsing of IPv6 addresses (bug #18574)

From Dick Porter:

The IPv6 address parser misses some syntax errors, and can become confused by
addresses that at first glance look IPv4 compatible.  The attach patch contains
the following fixes:

Don't fail to parse an address if we mistakenly thought it was IPv4 compatible
or mapped, just treat it as IPv6.

Fix IPv4-compatible and mapped address formatting in ToString().

Fix parsing of colons - specifically occurrences of ':::'.

Make sure blocks of digits are no longer than 4 characters.

Add some more parsing tests to Mono's NUnit test suite.

Add a NUnit test for bogus IPv6 addresses.

9 years agoUpdate order.xml
Miguel de Icaza [Thu, 22 May 2014 22:12:55 +0000 (18:12 -0400)]
Update order.xml

9 years ago[system] Small optimization for Xamarin.Mac (where we know we're executing on a Mac)
Sebastien Pouliot [Fri, 23 May 2014 13:15:26 +0000 (09:15 -0400)]
[system] Small optimization for Xamarin.Mac (where we know we're executing on a Mac)

9 years ago[msbuild] implement CodeTaskFactory i.e. inline tasks.
Atsushi Eno [Fri, 23 May 2014 12:16:43 +0000 (21:16 +0900)]
[msbuild] implement CodeTaskFactory i.e. inline tasks.

9 years ago[MS.Build] fix some TaskFactory related bugs uncovered by CodeTaskFactory impl.
Atsushi Eno [Fri, 23 May 2014 12:14:39 +0000 (21:14 +0900)]
[MS.Build] fix some TaskFactory related bugs uncovered by CodeTaskFactory impl.

- ITaskFactory could return null, so check the return value.
- UsingTask descendants could have property references, so use ExpandString.
- TaskBody was not appropriately passed to internal structure.

9 years ago[MS.Build] fix default build targets to not return empty list in Project.
Atsushi Eno [Fri, 23 May 2014 12:10:57 +0000 (21:10 +0900)]
[MS.Build] fix default build targets to not return empty list in Project.

And since the code is almost the same as existing ProjectInstance one, just
make it identical. (Should be unified, but depends on members, hence TODO.)

9 years agoSmall fix.
Martin Baulig [Fri, 23 May 2014 11:15:25 +0000 (13:15 +0200)]
Small fix.

9 years agoRevert "Fix WebProxy.BypassProxyOnLocal logic."
Martin Baulig [Fri, 23 May 2014 11:12:56 +0000 (13:12 +0200)]
Revert "Fix WebProxy.BypassProxyOnLocal logic."

This reverts commit 3f7ad8f457f67576f400a172573081818fbda2dc.

WebProxy.BypassProxyOnLocal is really broken!  There seems to be no
way of actually bypassing a proxy on local connections.

9 years agoMerge pull request #1052 from sethjackson/master
Alex Rønne Petersen [Fri, 23 May 2014 10:49:28 +0000 (12:49 +0200)]
Merge pull request #1052 from sethjackson/master

Don't define _XOPEN_SOURCE on OpenBSD.

9 years agoFix tests not to hang on failure
Marek Safar [Fri, 23 May 2014 09:15:37 +0000 (11:15 +0200)]
Fix tests not to hang on failure

9 years ago[mcs] Expand type parameter member change using effective base type
Marek Safar [Fri, 23 May 2014 08:57:14 +0000 (10:57 +0200)]
[mcs] Expand type parameter member change using effective base type

9 years agoFix WebProxy.BypassProxyOnLocal logic.
Martin Baulig [Fri, 23 May 2014 08:09:38 +0000 (10:09 +0200)]
Fix WebProxy.BypassProxyOnLocal logic.

9 years ago[mcs] Handling of nested effective base classes
Marek Safar [Fri, 23 May 2014 07:27:16 +0000 (09:27 +0200)]
[mcs] Handling of nested effective base classes

9 years agoMerge pull request #1051 from josedonizetti/bug11916-DataContractSerializer
Marek Safar [Fri, 23 May 2014 04:44:42 +0000 (06:44 +0200)]
Merge pull request #1051 from josedonizetti/bug11916-DataContractSerializer

add IsAny=true support for DataContractSerializer

9 years agoDon't define _XOPEN_SOURCE on OpenBSD. With _XOPEN_SOURCE defined mincore() is not...
Seth Jackson [Fri, 23 May 2014 04:06:44 +0000 (00:06 -0400)]
Don't define _XOPEN_SOURCE on OpenBSD. With _XOPEN_SOURCE defined mincore() is not visible.

This change is licensed under the MIT license.

9 years ago[build/msbuild] Tool resolves assemblies based on exact match, not random-last
Miguel de Icaza [Fri, 23 May 2014 03:04:22 +0000 (23:04 -0400)]
[build/msbuild] Tool resolves assemblies based on exact match, not random-last

9 years agoadd IsAny=true support for DataContractSerializer
Jose Donizetti [Fri, 23 May 2014 03:01:16 +0000 (23:01 -0400)]
add IsAny=true support for DataContractSerializer

9 years ago[arm64] Fix the definition of DWARF_PC_REG, it should be x30 (lr).
Zoltan Varga [Thu, 22 May 2014 21:49:47 +0000 (23:49 +0200)]
[arm64] Fix the definition of DWARF_PC_REG, it should be x30 (lr).

9 years agoFix casing in monotouch_Mono.CSharp.dll.sources
Rolf Bjarne Kvinge [Thu, 22 May 2014 13:18:02 +0000 (15:18 +0200)]
Fix casing in monotouch_Mono.CSharp.dll.sources

9 years agofix V547 Expression 'ccw->ref_count >= 0' is always true. Unsigned type value is...
Enrico Sada [Sat, 18 Aug 2012 15:20:13 +0000 (17:20 +0200)]
fix V547 Expression 'ccw->ref_count >= 0' is always true. Unsigned type value is always >= 0.

9 years agofix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0.
Enrico Sada [Sat, 18 Aug 2012 15:08:56 +0000 (17:08 +0200)]
fix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0.

9 years agofix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0.
Enrico Sada [Sat, 18 Aug 2012 15:07:52 +0000 (17:07 +0200)]
fix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0.

9 years agofix V595 The 'method' pointer was utilized before it was verified against nullptr...
Enrico Sada [Sat, 18 Aug 2012 14:52:05 +0000 (16:52 +0200)]
fix V595 The 'method' pointer was utilized before it was verified against nullptr. Check lines: 302, 303.

9 years agofix V595 The 'amodule' pointer was utilized before it was verified against nullptr
Enrico Sada [Sat, 18 Aug 2012 14:18:45 +0000 (16:18 +0200)]
fix V595 The 'amodule' pointer was utilized before it was verified against nullptr

9 years agoMerge pull request #924 from marcusva/master
Atsushi Eno [Thu, 22 May 2014 07:40:17 +0000 (16:40 +0900)]
Merge pull request #924 from marcusva/master

- Use the correct absolute path for relative paths within a rooted path

9 years agoMerge pull request #164 from LogosBible/AppSettingsFileChanges
Marek Safar [Thu, 22 May 2014 07:13:56 +0000 (09:13 +0200)]
Merge pull request #164 from LogosBible/AppSettingsFileChanges

Use the configuration file path directory for AppSettings File directory

9 years agoMerge pull request #1045 from sethjackson/master
Alex Rønne Petersen [Thu, 22 May 2014 07:01:02 +0000 (09:01 +0200)]
Merge pull request #1045 from sethjackson/master

kinfo_proc2 was removed from OpenBSD. Use kinfo_proc instead.

9 years agoMerge pull request #1046 from sethjackson/null-gc
Alex Rønne Petersen [Thu, 22 May 2014 06:59:55 +0000 (08:59 +0200)]
Merge pull request #1046 from sethjackson/null-gc

Allow building with no GC again.

9 years ago[mcs] Emit better code for null coalescing operator with nullable return type. Fixes...
Marek Safar [Thu, 22 May 2014 06:37:14 +0000 (08:37 +0200)]
[mcs] Emit better code for null coalescing operator with nullable return type. Fixes #19702

9 years agoAllow building with no GC again.
Seth Jackson [Wed, 21 May 2014 02:33:12 +0000 (22:33 -0400)]
Allow building with no GC again.

These changes are released under the MIT license.

9 years agokinfo_proc2 was removed from OpenBSD. Use kinfo_proc instead.
Seth Jackson [Tue, 20 May 2014 23:31:16 +0000 (19:31 -0400)]
kinfo_proc2 was removed from OpenBSD. Use kinfo_proc instead.

This change is released under the MIT license with permission from the
original author Robert Nagy.

9 years agoMerge pull request #1049 from ranma42/fix-check-gdi-sibling
Alex Rønne Petersen [Wed, 21 May 2014 19:09:00 +0000 (21:09 +0200)]
Merge pull request #1049 from ranma42/fix-check-gdi-sibling

Fix checking when libgdi is configured as "sibling"

9 years agoFix checking when libgdi is configured as "sibling"
Andrea Canciani [Wed, 21 May 2014 17:28:20 +0000 (19:28 +0200)]
Fix checking when libgdi is configured as "sibling"

When libgdiplus is configured as sibling, it is available in the
libgdiplus_loc path. This path was added to runtime/mono/config, but
it was later overridden by the prefix-based path.

Using the same approach as for libMonoPosixHelper fixed the lookup of
the library (performed, for example, when testing
MonoTests.System.Drawing without installing libgdiplus).

This change is released under the MIT license.

9 years ago[Http]: Cleanup and simplify the ServicePoint's connection group list.
Martin Baulig [Wed, 21 May 2014 16:45:08 +0000 (18:45 +0200)]
[Http]: Cleanup and simplify the ServicePoint's connection group list.

9 years agoMerge pull request #1032 from miguelzf/master
Alex Rønne Petersen [Wed, 21 May 2014 15:59:34 +0000 (17:59 +0200)]
Merge pull request #1032 from miguelzf/master

[Jay] Fix memory corruptions: out-of-bounds and uninitialized value.

9 years agoMerge pull request #1044 from ranma42/fix-icc-build
Alex Rønne Petersen [Wed, 21 May 2014 15:10:31 +0000 (17:10 +0200)]
Merge pull request #1044 from ranma42/fix-icc-build

Fix building mono with icc

9 years agoFix building mono with icc
Andrea Canciani [Tue, 20 May 2014 13:32:11 +0000 (15:32 +0200)]
Fix building mono with icc

When compiling mono with icc (ICC) 14.0.0 20130728 the build fails on

  CC     libmonoruntimesgen_la-sgen-stw.lo

with the following error:

Assembler messages:
Error: suffix or operands invalid for `lea'

Apparently icc (or the assembler) dislikes the rip-based LEA
operation. This can be worked around by manually assembling the
instruction and replacing it with the corresponding byte sequence.

This change is released under the MIT license.

9 years ago[mcs] Add explicit array conversion involving type parameters. Fixes #18474
Marek Safar [Wed, 21 May 2014 10:47:59 +0000 (12:47 +0200)]
[mcs] Add explicit array conversion involving type parameters. Fixes #18474

9 years ago[mcs] Undo implicit object prefix for cref interface references
Marek Safar [Wed, 21 May 2014 09:03:08 +0000 (11:03 +0200)]
[mcs] Undo implicit object prefix for cref interface references

9 years ago[MS.Build] fix support for MSBuildExtensionsPath* to try more than one paths.
Atsushi Eno [Wed, 21 May 2014 09:56:59 +0000 (18:56 +0900)]
[MS.Build] fix support for MSBuildExtensionsPath* to try more than one paths.

So, it seems that where MSBuildExtensionsPath* is evaluated should be likely
evaluated multiple times, and find actually matching files in one of those.
F# build .targets file expects that.
Since it is almost impossible to assume in which usage scenario it is going
to be evaluated multiple times (those properties can be used anywhere by
simple $(...) syntax), it limits the attempts only for Import() so far.
Old xbuild actually does so too. That way, the particular F# issue is fixed.

9 years ago[MS.Build] Fix metadata item parsing wrong indexing.
Atsushi Eno [Wed, 21 May 2014 09:55:06 +0000 (18:55 +0900)]
[MS.Build] Fix metadata item parsing wrong indexing.

9 years ago[mcs] Explicit type parameter conversion to generic parameter
Marek Safar [Wed, 21 May 2014 08:19:25 +0000 (10:19 +0200)]
[mcs] Explicit type parameter conversion to generic parameter

9 years ago[GC] Make size dependent vars use size_t instead of glong or int.
Rodrigo Kumpera [Wed, 21 May 2014 04:00:25 +0000 (00:00 -0400)]
[GC] Make size dependent vars use size_t instead of glong or int.

This opens the door for huge nurseries.

9 years ago[vsbuild] Update Makefiles to not generate the VS metadata for the 'basic' profile
Miguel de Icaza [Wed, 21 May 2014 02:31:49 +0000 (22:31 -0400)]
[vsbuild] Update Makefiles to not generate the VS metadata for the 'basic' profile