[Mono-bugs] [Bug 41954][Nor] Changed - mcs uses ldind.ref instead of ldind.i

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 27 Apr 2003 13:04:47 -0400 (EDT)

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@ximian.com.


--- shadow/41954	Sun Apr 27 12:06:12 2003
+++ shadow/41954.tmp.9804	Sun Apr 27 13:04:47 2003
@@ -93,6 +93,14 @@
 The problem is not with dereferencing the "int*", but when
 dereferencing the "int**".  Should I make loads-of-pointers use
 `ldind.i' then?
 CSC does not seem to do that (peverify on the same program with csc
 triggers more errors than mcs does ;-)
+------- Additional Comments From lupus@ximian.com  2003-04-27 13:04 -------
+When dereferencing int** there is no reference type involved, so
+ldind.ref is completely wrong. There is a pointer involved and csc
+uses ldind.i (ldind.u whould have been fine as well, I guess).
+The number of peverify errors is larger with csc only because it
+doesn't set initlocals when using /unsafe: mcs should likely use this
+same optimization.