[Mono-bugs] [Bug 78210][Nor] New - Incorrect dead code optimization

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 26 10:22:45 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by lupus at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78210

--- shadow/78210	2006-04-26 10:22:45.000000000 -0400
+++ shadow/78210.tmp.11783	2006-04-26 10:22:45.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 78210
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: JIT
+AssignedTo: massi at ximian.com                            
+ReportedBy: lupus at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Incorrect dead code optimization
+
+Consider the test:
+using System;
+class Test {
+  static void Main() {
+     test1(true, 50);
+  }
+  unsafe static void test1(bool val, int o) {
+    int vInt = 111;
+    test3((long)(&vInt));
+  }
+  unsafe static void test3(long i) {
+    Console.WriteLine("Address of local is: 0x{0:x} ({1})", i, *(int*)i);
+  }
+}
+
+It should print 111 but doesn't because recent changes in the jit will
+remove the = 111 assignment as dead.


More information about the mono-bugs mailing list