Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
f5b98196
Commit
f5b98196
authored
Jan 24, 2000
by
panne
Browse files
[project @ 2000-01-24 16:55:45 by panne]
Added autoconf magic for size/alignment of some more C types
parent
7db602a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.in
View file @
f5b98196
...
...
@@ -537,6 +537,8 @@ AC_STRUCT_ST_BLKSIZE
dnl ** what are the sizes of various types
dnl (these must come before GHC_CHECK_ALIGNMENT)
AC_CHECK_SIZEOF(char, 1)
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(unsigned int,4)
AC_CHECK_SIZEOF(float, 4)
AC_CHECK_SIZEOF(double, 8)
...
...
@@ -544,6 +546,9 @@ AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(void *, 4)
dnl ** what are alignment constraints on various types
FPTOOLS_CHECK_ALIGNMENT(char)
FPTOOLS_CHECK_ALIGNMENT(int)
FPTOOLS_CHECK_ALIGNMENT(void *)
FPTOOLS_CHECK_ALIGNMENT(unsigned int) dnl redundant but harmless
FPTOOLS_CHECK_ALIGNMENT(long)
FPTOOLS_CHECK_ALIGNMENT(float)
...
...
mk/config.h.in
View file @
f5b98196
...
...
@@ -66,16 +66,25 @@
byte first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
/* Define to alignment constraint on doubles or on unsigned int - whichever is the greater */
/* Define to alignment constraint on characters */
#undef ALIGNMENT_CHAR
/* Define to alignment constraint on ints */
#undef ALIGNMENT_INT
/* Define to alignment constraint on void pointers */
#undef ALIGNMENT_VOID_P
/* Define to alignment constraint on doubles */
#undef ALIGNMENT_DOUBLE
/* Define to alignment constraint on floats
or on unsigned int - whichever is the greater
*/
/* Define to alignment constraint on floats */
#undef ALIGNMENT_FLOAT
/* Define to alignment constraint on doubles
or on unsigned int - whichever is the greater
*/
/* Define to alignment constraint on doubles */
#undef ALIGNMENT_LONG
/* Define to alignment constraint on unsigned int
- whichever is the greater
*/
/* Define to alignment constraint on unsigned int */
#undef ALIGNMENT_UNSIGNED_INT
/* Define if code lives before data in memory */
...
...
@@ -134,6 +143,12 @@
*/
#define VOID_INT_SIGNALS 0
/* The number of bytes in a char. */
#undef SIZEOF_CHAR
/* The number of bytes in a int. */
#undef SIZEOF_INT
/* The number of bytes in a double. */
#undef SIZEOF_DOUBLE
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment