[m-rev.] trivial diff: set bytes-per-word in build_srcdist

Julien Fischer jfischer at opturion.com
Mon Jun 29 15:38:27 AEST 2015


The following won't affect anything as the only thing the compiler
currently does with bytes-per-word is use it to set the boundary that
functions are aligned on.  (In particular, this is *not* a fix for bug
#386.)

-------------------

Set bytes-per-word correctly in build_srcdist.

tools/build_srcdist:
     Set bytes-per-word correctly in this script.

Julien.

diff --git a/tools/build_srcdist b/tools/build_srcdist
index 07f8c1a..33a8a72 100755
--- a/tools/build_srcdist
+++ b/tools/build_srcdist
@@ -84,6 +84,7 @@ fi

  NUM_TAG_BITS=2
  BITS_PER_WORD=32
+BYTES_PER_WORD=4
  UNBOXED_FLOATS=no

  # git checkout -- VERSION
@@ -97,6 +98,7 @@ aclocal -I m4 &&
  autoconf &&
  mercury_cv_low_tag_bits=$NUM_TAG_BITS \
  mercury_cv_bits_per_word=$BITS_PER_WORD \
+mercury_cv_bytes_per_word=$BYTES_PER_WORD \
  mercury_cv_unboxed_floats=$UNBOXED_FLOATS \
  sh configure --with-llds-base-grade=none --with-cc="$CC" &&
  mmake GRADE=hlc.gc.pregen MMAKEFLAGS="EXTRA_MCFLAGS='-O5 --opt-space --cross-compiling --no-smart-indexing' -j$PARALLEL" tar



More information about the reviews mailing list