Author: martin
Date: 2005-04-20 10:23:55 -0400 (Wed, 20 Apr 2005)
New Revision: 43335

Modified:
   trunk/mcs/gmcs/ChangeLog
   trunk/mcs/gmcs/attribute.cs
   trunk/mcs/gmcs/decl.cs
   trunk/mcs/gmcs/driver.cs
Log:
**** Merged r43237 from MCS ****


Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog    2005-04-20 14:23:26 UTC (rev 43334)
+++ trunk/mcs/gmcs/ChangeLog    2005-04-20 14:23:55 UTC (rev 43335)
@@ -1,3 +1,12 @@
+2005-04-19  Marek Safar  <[EMAIL PROTECTED]>
+
+       * attribute.cs: Removed debug output.
+
+       * decl.cs (MemberCache.AddMethods): Fixed Finalize ignoring.
+       
+       * driver.cs (Driver.parse): Synchronize parser ErrorOutput with
+       Report.Stderr.
+       
 2005-04-18  Marek Safar  <[EMAIL PROTECTED]>
 
        Fix# 74565

Modified: trunk/mcs/gmcs/attribute.cs
===================================================================
--- trunk/mcs/gmcs/attribute.cs 2005-04-20 14:23:26 UTC (rev 43334)
+++ trunk/mcs/gmcs/attribute.cs 2005-04-20 14:23:55 UTC (rev 43335)
@@ -1034,7 +1034,6 @@
                        }
                        catch (Exception e) {
                                Error_AttributeEmitError (e.Message);
-                               Console.WriteLine (e.ToString ());
                                return;
                        }
 

Modified: trunk/mcs/gmcs/decl.cs
===================================================================
--- trunk/mcs/gmcs/decl.cs      2005-04-20 14:23:26 UTC (rev 43334)
+++ trunk/mcs/gmcs/decl.cs      2005-04-20 14:23:55 UTC (rev 43335)
@@ -1767,18 +1767,16 @@
                                                //
                                                // Also, CSC 1.1 appears to 
emit 'Finalize' without a newslot.
                                                //
-                                               if ((member.Name != "Invoke" ||
-                                                    
!TypeManager.IsDelegateType (type)) &&
-                                                   (member.Name != "Finalize" 
||
-                                                    type != 
TypeManager.object_type)) {
-                                                       
Report.SymbolRelatedToPreviousError (base_method);
-                                                       Report.Warning (-28, 
+                                               if ((member.Name == "Invoke" && 
TypeManager.IsDelegateType (type)) ||
+                                                   (member.Name == "Finalize" 
&& member.GetParameters().Length == 0))
+                                                       break;
+
+                                               
Report.SymbolRelatedToPreviousError (base_method);
+                                               Report.Warning (-28, 
                                                                "The method 
'{0}' is marked 'override'," + 
                                                                " but doesn't 
appear to override any virtual or abstract method:" + 
                                                                " it may be 
ignored during overload resolution",
                                                                
TypeManager.CSharpSignature (base_method));
-                                               }
-
                                                break;
                                        }
                                        

Modified: trunk/mcs/gmcs/driver.cs
===================================================================
--- trunk/mcs/gmcs/driver.cs    2005-04-20 14:23:26 UTC (rev 43334)
+++ trunk/mcs/gmcs/driver.cs    2005-04-20 14:23:55 UTC (rev 43335)
@@ -189,6 +189,7 @@
                        SeekableStreamReader reader = new SeekableStreamReader 
(input, encoding, using_default_encoder);
                                
                        parser = new CSharpParser (reader, file, defines);
+                       parser.ErrorOutput = Report.Stderr;
                        try {
                                parser.parse ();
                        } catch (Exception ex) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to