[m-dev.] trivial diff: fix warning (was: work-around for MLDS Alpha float bug)
Fergus Henderson
fjh at cs.mu.OZ.AU
Sun Nov 19 15:27:41 AEDT 2000
On 18-Nov-2000, Fergus Henderson <fjh at cs.mu.oz.au> wrote:
> > runtime/mercury_conf_param.h:
> > If MR_HIGHLEVEL_CODE is set, then define BOXED_FLOAT.
> >
> > I'll commit this one as soon as it passes bootcheck...
Unfortunately I only tested it on a 64-bit system.
Testing it on a 32-bit system too revealed another problem.
Estimated hours taken: 0.25
runtime/mercury_conf_param.h:
Use `#define MR_BOXED_FLOAT 1' rather than `#define MR_BOXED_FLOAT',
to match the way it is defined in runtime/mercury_conf.h.
This is needed to avoid a warning about the macro being redefined
when building in MLDS grades on platforms were we need to use
boxed floats anyway.
Workspace: /home/pgrad/fjh/ws/hg3
Index: runtime/mercury_conf_param.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_conf_param.h,v
retrieving revision 1.42
diff -u -d -r1.42 mercury_conf_param.h
--- runtime/mercury_conf_param.h 2000/11/18 08:43:19 1.42
+++ runtime/mercury_conf_param.h 2000/11/19 04:22:14
@@ -225,7 +225,7 @@
** XXX we really ought to fix that...
*/
#ifdef MR_HIGHLEVEL_CODE
- #define BOXED_FLOAT
+ #define BOXED_FLOAT 1
#endif
/* MR_LOWLEVEL_DEBUG implies MR_DEBUG_GOTOS and MR_CHECK_FOR_OVERFLOW */
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list