[m-rev.] diff: don't define `_fltused'

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Mar 4 01:26:56 AEDT 2003


Estimated hours taken: 1
Branches: main

compiler/mlds_to_managed.m:
runtime/mercury_mcpp.cpp:
	Delete the definition of `_fltused'.  This was only there to
	work around a bug in a beta release of MSVC++, and it doesn't
	seem to be needed anymore (I suppose the bug must have been fixed).
	Also defining `_fltused' causes problems for running Mercury
	on Portable.NET.

Workspace: /home/fjh/ws/hermes
Index: compiler/mlds_to_managed.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mlds_to_managed.m,v
retrieving revision 1.6
diff -u -d -r1.6 mlds_to_managed.m
--- compiler/mlds_to_managed.m	23 Dec 2002 12:32:57 -0000	1.6
+++ compiler/mlds_to_managed.m	3 Mar 2003 14:25:49 -0000
@@ -221,11 +221,6 @@
 		% "mercury::" namespace qualifiers.
 		"using namespace mercury;\n",
 
-		% XXX this supresses problems caused by
-		% references to float.  If you don't do this,
-		% you'll get link errors.  Revisit this when the
-		% .NET implementation has matured.
-		"extern ""C"" int _fltused=0;\n",
 		"\n"]),
 
 	globals__io_lookup_bool_option(sign_assembly, SignAssembly),
Index: runtime/mercury_mcpp.cpp
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_mcpp.cpp,v
retrieving revision 1.17
diff -u -d -r1.17 mercury_mcpp.cpp
--- runtime/mercury_mcpp.cpp	3 Mar 2003 03:29:38 -0000	1.17
+++ runtime/mercury_mcpp.cpp	3 Mar 2003 14:25:49 -0000
@@ -14,11 +14,6 @@
 #using <mscorlib.dll>
 #using "mercury_il.dll"
 
-    // This line (somehow) stops the compiler from
-    // linking in the C library (and it will then complain about main being
-    // missing)
-extern "C" int _fltused=0;
-
 #include "mercury_mcpp.h"
 
 namespace mercury {

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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