[m-rev.] Re: Diff (needs committing): Make the IL backend compile

Jonathan Morgan jonmmorgan at gmail.com
Mon May 8 23:04:04 AEST 2006


On 5/1/06, Jonathan Morgan <jonmmorgan at gmail.com> wrote:
> With this patch (and no inlining in injection) the IL backend compiles
> correctly.
>
> Jon
>
> library/rtti_implementation.m:
>        s/NULL/null in C# foreign code.

I have discovered that not all my changes made it into the patch I
gave you.  There is one more below.  I have no idea how this failed to
be in the diff.

Also, after it is compiled, the IL backend is currently broken.  For
the simple iltest module, it produces the following:

Unhandled Exception: System.TypeInitializationException: The type
initializer for "iltest.mercury_code" threw an exception. --->
System.MissingFieldException: Field not found:
mercury.private_builtin__csharp_code.mercury_code.dummy_var.

   at mercury.io.mercury_code.init_state_2()

   at mercury.runtime.Init.init_runtime(Boolean initialise)

   at iltest.mercury_code..cctor()

   --- End of inner exception stack trace ---

   at iltest.mercury_code.main_2()

It's obviously failing to find dummy_var, but I have no idea why, as
dummy_var is certainly correctly defined in private_builtin.m.

Jon

Index: library/rtti_implementation.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/rtti_implementation.m,v
retrieving revision 1.69
diff -u -u -r1.69 rtti_implementation.m
--- library/rtti_implementation.m	1 May 2006 14:45:19 -0000	1.69
+++ library/rtti_implementation.m	8 May 2006 11:34:51 -0000
@@ -1642,7 +1642,7 @@
     [promise_pure],
 "
     // XXX This should be something else.
-    TypeInfo_for_T = NULL;
+    TypeInfo_for_T = null;

     PTI = TypeInfo[Index];
 ").

--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list