Skip to content
Snippets Groups Projects
Commit 3c8de5a6 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1998-03-11 14:26:23 by simonm]

- move SIZEOF checks together (previous commit added SIZEOF checks to
   a different part of the file).

 - check alignment of longs:  unsigned ints are no good, because we need to
   check whether f.e. a float can be put on the stack, which is
   StgWord aligned, and currently an StgWord is basically a long.
parent 6d677c13
No related merge requests found
...@@ -453,11 +453,14 @@ AC_ALTZONE ...@@ -453,11 +453,14 @@ AC_ALTZONE
dnl ** what are the sizes of various types dnl ** what are the sizes of various types
dnl (these must come before GHC_CHECK_ALIGNMENT) dnl (these must come before GHC_CHECK_ALIGNMENT)
AC_CHECK_SIZEOF(unsigned int,4) AC_CHECK_SIZEOF(unsigned int,4)
AC_CHECK_SIZEOF(float,4) AC_CHECK_SIZEOF(float, 4)
AC_CHECK_SIZEOF(double,8) AC_CHECK_SIZEOF(double, 8)
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(void *, 4)
dnl ** what are alignment constraints on various types dnl ** what are alignment constraints on various types
GHC_CHECK_ALIGNMENT(unsigned int) dnl redundant but harmless GHC_CHECK_ALIGNMENT(unsigned int) dnl redundant but harmless
GHC_CHECK_ALIGNMENT(long)
GHC_CHECK_ALIGNMENT(float) GHC_CHECK_ALIGNMENT(float)
GHC_CHECK_ALIGNMENT(double) GHC_CHECK_ALIGNMENT(double)
...@@ -481,13 +484,6 @@ dnl ** check for leading underscores in symbol names ...@@ -481,13 +484,6 @@ dnl ** check for leading underscores in symbol names
# #
AC_UNDERSCORE AC_UNDERSCORE
#
dnl ** check the size of various C types
#
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(void *, 4)
AC_OUTPUT(mk/config.mk, echo timestamp > mk/stamp-h ) AC_OUTPUT(mk/config.mk, echo timestamp > mk/stamp-h )
echo '' echo ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment