You can subscribe to this list here.
2010 |
Jan
|
Feb
|
Mar
(15) |
Apr
(12) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ac...@us...> - 2010-03-29 22:36:33
|
Revision: 20 http://clibinutils.svn.sourceforge.net/clibinutils/?rev=20&view=rev Author: aco Date: 2010-03-29 22:36:27 +0000 (Mon, 29 Mar 2010) Log Message: ----------- refactor ReferenceGetters Modified Paths: -------------- mono-based-binutils/branches/aco-dev/tools/Makefile.am mono-based-binutils/branches/aco-dev/tools/Makefile.in mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/CFileBuilder.cs mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/IReferenceGetters.cs mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGetters.cs mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGettersCached.cs Added Paths: ----------- mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGettersTracer.cs Modified: mono-based-binutils/branches/aco-dev/tools/Makefile.am =================================================================== --- mono-based-binutils/branches/aco-dev/tools/Makefile.am 2010-03-29 22:24:32 UTC (rev 19) +++ mono-based-binutils/branches/aco-dev/tools/Makefile.am 2010-03-29 22:36:27 UTC (rev 20) @@ -57,6 +57,7 @@ gcc4cli/utils/IReferenceGetters.cs \ gcc4cli/utils/ReferenceGetters.cs \ gcc4cli/utils/ReferenceGettersCached.cs \ + gcc4cli/utils/ReferenceGettersTracer.cs \ gcc4cli/utils/ReferencesFixer.cs \ gcc4cli/utils/Set.cs \ gcc4cli/utils/Tracer.cs Modified: mono-based-binutils/branches/aco-dev/tools/Makefile.in =================================================================== --- mono-based-binutils/branches/aco-dev/tools/Makefile.in 2010-03-29 22:24:32 UTC (rev 19) +++ mono-based-binutils/branches/aco-dev/tools/Makefile.in 2010-03-29 22:36:27 UTC (rev 20) @@ -193,6 +193,7 @@ gcc4cli/utils/IReferenceGetters.cs \ gcc4cli/utils/ReferenceGetters.cs \ gcc4cli/utils/ReferenceGettersCached.cs \ + gcc4cli/utils/ReferenceGettersTracer.cs \ gcc4cli/utils/ReferencesFixer.cs \ gcc4cli/utils/Set.cs \ gcc4cli/utils/Tracer.cs Modified: mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/CFileBuilder.cs =================================================================== --- mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/CFileBuilder.cs 2010-03-29 22:24:32 UTC (rev 19) +++ mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/CFileBuilder.cs 2010-03-29 22:36:27 UTC (rev 20) @@ -262,7 +262,12 @@ protected void fixReferences () { if (filesAdded) { - ReferenceGettersCached reffixer = new ReferenceGettersCached (this); + IReferenceGetters reffixer = new ReferenceGetters (this); + if (Tracer.TraceAtLevel(2)) + reffixer = new ReferenceGettersTracer (reffixer, 2, " ReferenceGetters: "); + reffixer = new ReferenceGettersCached (reffixer); + if (Tracer.TraceAtLevel(6)) + reffixer = new ReferenceGettersTracer (reffixer, 6, "ReferenceGettersCached: "); if (keepIncompleteTypes) { foreach (TypeDefinition inc_type in incomplete_types.Values) { @@ -270,10 +275,7 @@ Module.Types.Add (mtype); } } else { - TypeReference newtype = new PointerType (Module.Import (typeof (void))); - foreach (TypeDefinition inc_type in incomplete_types.Values) { - reffixer.Add (inc_type.ToString (), newtype); - } + reffixer.MapTypeReferences(incomplete_types.Values, new PointerType (Module.Import (typeof (void)))); } ReferencesFixer rf = new ReferencesFixer (reffixer); Modified: mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/IReferenceGetters.cs =================================================================== --- mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/IReferenceGetters.cs 2010-03-29 22:24:32 UTC (rev 19) +++ mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/IReferenceGetters.cs 2010-03-29 22:36:27 UTC (rev 20) @@ -1,10 +1,13 @@ +using System.Collections; using Mono.Cecil; namespace gcc4cli.util { public interface IReferenceGetters { + void MapTypeReferences (ICollection types, TypeReference new_type); + ModuleReference GetModuleReference (ModuleReference module); TypeReference GetTypeReference (TypeReference type); Modified: mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGetters.cs =================================================================== --- mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGetters.cs 2010-03-29 22:24:32 UTC (rev 19) +++ mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGetters.cs 2010-03-29 22:36:27 UTC (rev 20) @@ -42,6 +42,15 @@ { } + Hashtable mapped_types = new Hashtable (); //Dictionary<string,TypeReference> + + public void MapTypeReferences (ICollection types, TypeReference new_type) + { + foreach (TypeReference inc_type in types) { + mapped_types[inc_type.ToString ()] = new_type; + } + } + public virtual ModuleReference GetModuleReference (ModuleReference module) { string name = module.Name.ToLower (); @@ -96,23 +105,19 @@ type = (type as SentinelType).ElementType; } - TypeReference result = null; + if (mapped_types[type.ToString ()] != null) + return (TypeReference)mapped_types[type.ToString ()]; - Tracer.Trace (2,"Searching: " + type.FullName); - if (m_cfile != null && (type.Name == "<Module>" || type.Name == ExternalAssemblyName)) { - result = m_cfile.MainType; + return m_cfile.MainType; } else { + TypeReference result = null; result = module_GetTypeReference (type); + if (result == null) + throw new NotFoundException (type); + return result; } - - if (result == null) - throw new NotFoundException (type); - - Tracer.Trace(2,"Returning: " + result.ToString ()); - - return result; } MemberReference GetMemberReference (MemberReference member) @@ -219,8 +224,6 @@ MethodReference result = null; - Tracer.Trace(2,"Searching: " + method.ToString ()); - if (m_cfile != null && GetTypeReference (method.DeclaringType) == m_cfile.MainType) { string name = method.Name; @@ -276,7 +279,6 @@ throw new NotFoundException (method); } - Tracer.Trace(2,"Returning: " + result.ToString()); return result; } @@ -299,8 +301,6 @@ { FieldReference result = null; - Tracer.Trace(2,"Searching: " + field.ToString ()); - if (m_cfile != null && (field.DeclaringType.Name == "<MODULE>" || field.DeclaringType == m_cfile.MainType @@ -327,7 +327,6 @@ throw new NotFoundException (field); } - Tracer.Trace(2,"Returning: " + result.ToString ()); return result; } Modified: mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGettersCached.cs =================================================================== --- mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGettersCached.cs 2010-03-29 22:24:32 UTC (rev 19) +++ mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGettersCached.cs 2010-03-29 22:36:27 UTC (rev 20) @@ -8,68 +8,42 @@ namespace gcc4cli.util { - public class ReferenceGettersCached : ReferenceGetters + public class ReferenceGettersCached : IReferenceGetters { + IReferenceGetters wrapped; + Hashtable types_cache = new Hashtable (); //Dictionary<string,TypeReference> Hashtable members_cache = new Hashtable (); //Dictionary<string,IMemberReference> - - public ReferenceGettersCached (CFile cfile, bool allowExternalAssembly) - : base (cfile, allowExternalAssembly) + public ReferenceGettersCached (IReferenceGetters _wrapped) { + wrapped = _wrapped; } - public ReferenceGettersCached (CFileBuilder cfile) - : base (cfile) + public void MapTypeReferences (ICollection types, TypeReference new_type) { + wrapped.MapTypeReferences (types, new_type); } - public ReferenceGettersCached (ModuleDefinition module) - : base (module) + public ModuleReference GetModuleReference (ModuleReference module) { + return wrapped.GetModuleReference (module); } public void Add (string name, TypeReference type) { - Tracer.Trace (6,"Add type to Cache: " + name + " as " + type.ToString ()); types_cache[name] = type; } - public void Add (TypeReference type) - { - Add (type.ToString (), type); - } - public void Add (string name, IMemberReference member) { - Tracer.Trace (6,"Add member to Cache: " + name + " as " + member.ToString ()); members_cache[name] = member; } - public void Add (IMemberReference member) + public TypeReference GetTypeReference (TypeReference type) { - Add (member.ToString (),member); - } - - public TypeReference CacheGetType (string name) - { - - if (types_cache.Contains (name)) - return (TypeReference) types_cache[name]; - return null; - } - - public IMemberReference CacheGetSymbol (string name) - { - if (members_cache.Contains (name)) - return (IMemberReference) members_cache[name]; - return null; - } - - public override TypeReference GetTypeReference (TypeReference type) - { if (type == null) return null; @@ -82,19 +56,18 @@ if (types_cache.Contains (fullname)) { result = (TypeReference)types_cache[fullname]; - Tracer.Trace (4,"Found in Cache: " + fullname + " as " + result.FullName); return result; } - result = base.GetTypeReference (type); + result = wrapped.GetTypeReference (type); Add (fullname, result); - Add (result); + Add (result.ToString (), result); return result; } - public override MethodReference GetMethodReference (MethodReference method) + public MethodReference GetMethodReference (MethodReference method) { if (method == null) return null; @@ -104,37 +77,40 @@ if (members_cache.Contains (fullname)) { result = (MethodReference)members_cache[fullname]; - Tracer.Trace (4,"Found in Cache: " + fullname + " as " + result.ToString ()); return result; } - result = base.GetMethodReference (method); + result = wrapped.GetMethodReference (method); Add (fullname, result); - Add (result); + Add (result.ToString (), result); return result; } - public override FieldReference GetFieldReference (FieldReference field) + public FieldReference GetFieldReference (FieldReference field) { FieldReference result = null; string fullname = field.ToString (); if (members_cache.Contains (fullname)) { result = (FieldReference)members_cache[fullname]; - Tracer.Trace (4,"Found in Cache: " + fullname + " as " + result.ToString ()); return result; } - result = base.GetFieldReference (field); + result = wrapped.GetFieldReference (field); Add (fullname, result); - Add (result); + Add (result.ToString (), result); return result; } + public CallSite GetCallSite (CallSite sig) + { + return wrapped.GetCallSite (sig); + } + } } Added: mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGettersTracer.cs =================================================================== --- mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGettersTracer.cs (rev 0) +++ mono-based-binutils/branches/aco-dev/tools/gcc4cli/utils/ReferenceGettersTracer.cs 2010-03-29 22:36:27 UTC (rev 20) @@ -0,0 +1,81 @@ + +using System; +using System.IO; +using System.Collections; + +using Mono.Cecil; +using Mono.Cecil.Cil; + +namespace gcc4cli.util { + + public class ReferenceGettersTracer : IReferenceGetters + { + IReferenceGetters wrapped; + int level = 0; + string header = ""; + + public ReferenceGettersTracer (IReferenceGetters _wrapped, int _level, string _header) + { + wrapped = _wrapped; + level = _level; + header = _header; + } + + public ReferenceGettersTracer (IReferenceGetters _wrapped) + : this (_wrapped, 2, "") + { + } + + public void MapTypeReferences (ICollection types, TypeReference new_type) + { + wrapped.MapTypeReferences (types, new_type); + } + + public ModuleReference GetModuleReference (ModuleReference module) + { + ModuleReference result = null; + Tracer.Trace (level, header + "Searching: " + module.ToString ()); + result = wrapped.GetModuleReference (module); + Tracer.Trace (level, header + "Returning: " + result.ToString ()); + return result; + } + + public TypeReference GetTypeReference (TypeReference type) + { + TypeReference result = null; + Tracer.Trace (level, header + "Searching: " + type.FullName); + result = wrapped.GetTypeReference (type); + Tracer.Trace (level, header + "Returning: " + result.ToString ()); + return result; + } + + public MethodReference GetMethodReference (MethodReference method) + { + MethodReference result = null; + Tracer.Trace(level, header + "Searching: " + method.ToString ()); + result = wrapped.GetMethodReference (method); + Tracer.Trace(level, header + "Returning: " + result.ToString()); + return result; + } + + public FieldReference GetFieldReference (FieldReference field) + { + FieldReference result = null; + Tracer.Trace(level, header + "Searching: " + field.ToString ()); + result = wrapped.GetFieldReference (field); + Tracer.Trace(level, header + "Returning: " + result.ToString()); + return result; + } + + public CallSite GetCallSite (CallSite sig) + { + CallSite result = null; + Tracer.Trace(level, header + "Searching: " + sig.ToString ()); + result = wrapped.GetCallSite (sig); + Tracer.Trace(level, header + "Returning: " + result.ToString()); + return result; + } + + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ac...@us...> - 2010-03-29 22:24:39
|
Revision: 19 http://clibinutils.svn.sourceforge.net/clibinutils/?rev=19&view=rev Author: aco Date: 2010-03-29 22:24:32 +0000 (Mon, 29 Mar 2010) Log Message: ----------- typo Modified Paths: -------------- mono-based-binutils/branches/aco-dev/doc/Doxyfile.gcc4cli.in Modified: mono-based-binutils/branches/aco-dev/doc/Doxyfile.gcc4cli.in =================================================================== --- mono-based-binutils/branches/aco-dev/doc/Doxyfile.gcc4cli.in 2010-03-29 22:17:04 UTC (rev 18) +++ mono-based-binutils/branches/aco-dev/doc/Doxyfile.gcc4cli.in 2010-03-29 22:24:32 UTC (rev 19) @@ -574,7 +574,7 @@ # directories like "/usr/src/myproject". Separate the files or directories # with spaces. -INPUT = $(SRCDIR)/tools/gcc4cli +INPUT = @top_srcdir@/tools/gcc4cli # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ac...@us...> - 2010-03-29 22:17:10
|
Revision: 18 http://clibinutils.svn.sourceforge.net/clibinutils/?rev=18&view=rev Author: aco Date: 2010-03-29 22:17:04 +0000 (Mon, 29 Mar 2010) Log Message: ----------- build and install also Mono.Cecil.Mdb.dll Modified Paths: -------------- mono-based-binutils/branches/aco-dev/tools/Makefile.am mono-based-binutils/branches/aco-dev/tools/Makefile.in Property Changed: ---------------- mono-based-binutils/branches/aco-dev/tools/ Property changes on: mono-based-binutils/branches/aco-dev/tools ___________________________________________________________________ Modified: svn:externals - Mono.Cecil svn://anonsvn.mono-project.com/source/trunk/mcs/class/Mono.Cecil + Mono.Cecil svn://anonsvn.mono-project.com/source/trunk/mcs/class/Mono.Cecil Mono.Cecil.Mdb svn://anonsvn.mono-project.com/source/trunk/mcs/class/Mono.Cecil.Mdb Mono.CompilerServices.SymbolWriter svn://anonsvn.mono-project.com/source/trunk/mcs/class/Mono.CompilerServices.SymbolWriter Modified: mono-based-binutils/branches/aco-dev/tools/Makefile.am =================================================================== --- mono-based-binutils/branches/aco-dev/tools/Makefile.am 2010-03-29 22:16:13 UTC (rev 17) +++ mono-based-binutils/branches/aco-dev/tools/Makefile.am 2010-03-29 22:17:04 UTC (rev 18) @@ -1,9 +1,9 @@ EXTRA_DIST = Mono.Cecil -CLEANFILES = Mono.Cecil.dll gcc4cli.utils.dll ar.exe ld.exe nm.exe objdump.exe objcopy.exe +CLEANFILES = Mono.Cecil.dll Mono.Cecil.Mdb.dll gcc4cli.utils.dll ar.exe ld.exe nm.exe objdump.exe objcopy.exe -lbin_SCRIPTS = Mono.Cecil.dll gcc4cli.utils.dll ar.exe ld.exe nm.exe objdump.exe objcopy.exe +lbin_SCRIPTS = Mono.Cecil.dll Mono.Cecil.Mdb.dll gcc4cli.utils.dll ar.exe ld.exe nm.exe objdump.exe objcopy.exe install-lbinSCRIPTS: $(lbin_SCRIPTS) test -z "$(lbindir)" || $(mkdir_p) "$(DESTDIR)$(lbindir)" @@ -28,6 +28,12 @@ Mono.Cecil.dll: $(CECIL_SRC) $(MCS) -t:library -out:Mono.Cecil.dll $(CECIL_SRC) +MONOCECILMDB = $(shell cat $(srcdir)/Mono.Cecil.Mdb/Mono.Cecil.Mdb.dll.sources) +CECILMDB_SRC = $(MONOCECILMDB:%=$(srcdir)/Mono.Cecil.Mdb/%) + +Mono.Cecil.Mdb.dll: $(CECILMDB_SRC) + $(MCS) -t:library -r:Mono.Cecil.dll -d:CECIL -out:Mono.Cecil.Mdb.dll $(CECILMDB_SRC) + UTILS_SRC = \ gcc4cli/utils/AssemblyResolver.cs \ gcc4cli/utils/CDynamicLibrary.cs \ Modified: mono-based-binutils/branches/aco-dev/tools/Makefile.in =================================================================== --- mono-based-binutils/branches/aco-dev/tools/Makefile.in 2010-03-29 22:16:13 UTC (rev 17) +++ mono-based-binutils/branches/aco-dev/tools/Makefile.in 2010-03-29 22:17:04 UTC (rev 18) @@ -164,10 +164,12 @@ top_srcdir = @top_srcdir@ EXTRA_DIST = Mono.Cecil $(UTILS_SRC) $(LD_SRC) $(NM_SRC) $(AR_SRC) \ $(OBJDUMP_SRC) $(OBJCOPY_SRC) -CLEANFILES = Mono.Cecil.dll gcc4cli.utils.dll ar.exe ld.exe nm.exe objdump.exe objcopy.exe -lbin_SCRIPTS = Mono.Cecil.dll gcc4cli.utils.dll ar.exe ld.exe nm.exe objdump.exe objcopy.exe +CLEANFILES = Mono.Cecil.dll Mono.Cecil.Mdb.dll gcc4cli.utils.dll ar.exe ld.exe nm.exe objdump.exe objcopy.exe +lbin_SCRIPTS = Mono.Cecil.dll Mono.Cecil.Mdb.dll gcc4cli.utils.dll ar.exe ld.exe nm.exe objdump.exe objcopy.exe MONOCECIL = $(shell cat $(srcdir)/Mono.Cecil/Mono.Cecil.dll.sources) CECIL_SRC = $(MONOCECIL:%=$(srcdir)/Mono.Cecil/%) +MONOCECILMDB = $(shell cat $(srcdir)/Mono.Cecil.Mdb/Mono.Cecil.Mdb.dll.sources) +CECILMDB_SRC = $(MONOCECILMDB:%=$(srcdir)/Mono.Cecil.Mdb/%) UTILS_SRC = \ gcc4cli/utils/AssemblyResolver.cs \ gcc4cli/utils/CDynamicLibrary.cs \ @@ -423,6 +425,9 @@ Mono.Cecil.dll: $(CECIL_SRC) $(MCS) -t:library -out:Mono.Cecil.dll $(CECIL_SRC) +Mono.Cecil.Mdb.dll: $(CECILMDB_SRC) + $(MCS) -t:library -r:Mono.Cecil.dll -d:CECIL -out:Mono.Cecil.Mdb.dll $(CECILMDB_SRC) + gcc4cli.utils.dll: $(UTILS_FULL_SRC) Mono.Cecil.dll $(MCS) -t:library -r:Mono.Cecil.dll -out:gcc4cli.utils.dll $(UTILS_FULL_SRC) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ac...@us...> - 2010-03-29 22:16:24
|
Revision: 17 http://clibinutils.svn.sourceforge.net/clibinutils/?rev=17&view=rev Author: aco Date: 2010-03-29 22:16:13 +0000 (Mon, 29 Mar 2010) Log Message: ----------- remove ilasm.pnet as choice for assembler and add gmcs as possible C# compiler Modified Paths: -------------- mono-based-binutils/branches/aco-dev/configure mono-based-binutils/branches/aco-dev/configure.ac Modified: mono-based-binutils/branches/aco-dev/configure =================================================================== --- mono-based-binutils/branches/aco-dev/configure 2010-03-24 13:31:51 UTC (rev 16) +++ mono-based-binutils/branches/aco-dev/configure 2010-03-29 22:16:13 UTC (rev 17) @@ -2495,7 +2495,7 @@ withval=$with_ilasm; CIL_AS=$withval fi -for ac_prog in ilasm.pnet ilasm ilasm1 +for ac_prog in ilasm ilasm1 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -2548,8 +2548,10 @@ withval=$with_mcs; MCS=$withval fi -# Extract the first word of "mcs", so it can be a program name with args. -set dummy mcs; ac_word=$2 +for ac_prog in mcs gmcs +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_MCS+set}" = set; then : @@ -2565,7 +2567,7 @@ test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_MCS="mcs" + ac_cv_prog_MCS="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -2573,7 +2575,6 @@ done IFS=$as_save_IFS - test -z "$ac_cv_prog_MCS" && ac_cv_prog_MCS="mcs-not-found" fi fi MCS=$ac_cv_prog_MCS @@ -2586,7 +2587,11 @@ fi + test -n "$MCS" && break +done +test -n "$MCS" || MCS="mcs-not-found" + ac_config_files="$ac_config_files Makefile scripts/Makefile tools/Makefile doc/Makefile" Modified: mono-based-binutils/branches/aco-dev/configure.ac =================================================================== --- mono-based-binutils/branches/aco-dev/configure.ac 2010-03-24 13:31:51 UTC (rev 16) +++ mono-based-binutils/branches/aco-dev/configure.ac 2010-03-29 22:16:13 UTC (rev 17) @@ -29,12 +29,12 @@ AC_ARG_WITH(ilasm, AS_HELP_STRING([--with-ilasm=as_binary_path], [use this ilasm]), CIL_AS=$withval) -AC_PATH_PROGS(CIL_AS, [ ilasm.pnet ilasm ilasm1 ], ilasm-pnet-not-found) +AC_PATH_PROGS(CIL_AS, [ ilasm ilasm1 ], ilasm-pnet-not-found) AC_ARG_WITH(mcs, AS_HELP_STRING([--with-mcs=mcs_binary_path], [use this mcs]), MCS=$withval) -AC_CHECK_PROG(MCS, mcs, mcs, mcs-not-found) +AC_CHECK_PROGS(MCS, [ mcs gmcs ], mcs-not-found) AC_CONFIG_FILES([Makefile scripts/Makefile tools/Makefile doc/Makefile]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tl...@us...> - 2010-03-24 13:31:58
|
Revision: 16 http://clibinutils.svn.sourceforge.net/clibinutils/?rev=16&view=rev Author: tlafage Date: 2010-03-24 13:31:51 +0000 (Wed, 24 Mar 2010) Log Message: ----------- Remove code concerning Pnet ilasm. Modified Paths: -------------- mono-based-binutils/trunk/ChangeLog mono-based-binutils/trunk/scripts/as.in mono-based-binutils/trunk/tools/gcc4cli/utils/CObject.cs Modified: mono-based-binutils/trunk/ChangeLog =================================================================== --- mono-based-binutils/trunk/ChangeLog 2010-03-23 10:11:07 UTC (rev 15) +++ mono-based-binutils/trunk/ChangeLog 2010-03-24 13:31:51 UTC (rev 16) @@ -1,3 +1,8 @@ +2010-03-24 Thierry LAFAGE <thi...@in...> + + * tools/gcc4cli/utils/CObject.cs: remove code concerning Pnet ilasm. + * scripts/as.in: remove code concerning Pnet ilasm. + 2010-03-23 Thierry LAFAGE <thi...@in...> * tools/gcc4cli/ld/Driver.cs: add "--runtime <rtversion>" Modified: mono-based-binutils/trunk/scripts/as.in =================================================================== --- mono-based-binutils/trunk/scripts/as.in 2010-03-23 10:11:07 UTC (rev 15) +++ mono-based-binutils/trunk/scripts/as.in 2010-03-24 13:31:51 UTC (rev 16) @@ -23,7 +23,7 @@ shift ;; -o) - PARAM="$PARAM $1$2"; + PARAM="$PARAM -output:$2"; shift shift ;; @@ -34,13 +34,7 @@ esac done -if test "x`$ILASM --version | grep Mono | wc -l`" = "x0"; then - #needed by Pnet ilasm - PARAM=`echo "--format dll $PARAM" | sed 's? -o? -o ?'`; -else - #needed by Mono ilasm - PARAM=`echo "-dll -quiet $PARAM" | sed 's? -o? -output:?'`; -fi +PARAM="-dll -quiet $PARAM" CMD="$ILASM $PARAM" if test -n "$VERBOSE"; then Modified: mono-based-binutils/trunk/tools/gcc4cli/utils/CObject.cs =================================================================== --- mono-based-binutils/trunk/tools/gcc4cli/utils/CObject.cs 2010-03-23 10:11:07 UTC (rev 15) +++ mono-based-binutils/trunk/tools/gcc4cli/utils/CObject.cs 2010-03-24 13:31:51 UTC (rev 16) @@ -15,8 +15,6 @@ { MainType = Module.Types["<Module>"]; FillTables (); - if (ref_types.Contains ("<ModuleExtern>")) - fix_DOTGNU_Errors (); } internal CObject (string name, AssemblyResolver asm_resolver) @@ -30,30 +28,6 @@ Module.Types.Add (MainType); } - void fix_DOTGNU_Errors () - { - foreach (MethodDefinition method in MainType.Methods) { - foreach (Instruction instr in method.Body.Instructions) { - if ( instr.OpCode.OperandType == OperandType.InlineMethod - || (instr.OpCode.OperandType == OperandType.InlineTok && instr.Operand is MethodReference)) { - MethodReference mref = instr.Operand as MethodReference; - if (mref.DeclaringType.Name == "<ModuleExtern>") { - string m_name = mref.Name; - if (def_symbols.Contains (m_name)) { - mref.DeclaringType = ((MethodReference)def_symbols[m_name]).DeclaringType; - } - else if (private_symbols.Contains (m_name)) { - mref.DeclaringType = ((MethodReference)private_symbols[m_name]).DeclaringType; - } - else - throw new Exception ("Error in hack for DOTGNU"); - } - } - } - } - ref_types.Remove ("<ModuleExtern>"); - } - static int renamer_id = 0; bool MethodIsVarArg(MethodReference method) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |