diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-09-27 01:28:49 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-09-27 01:28:49 +0200 |
commit | 99765ed17245b7c54789c01702806bf27b161cb7 (patch) | |
tree | 1cd27290536d7fb9738c1d93954c2dee20b15486 /libguile/_scm.h | |
parent | 8e4c60ff2902363b41f4c23e686ad65c17e90196 (diff) |
Remove `scm_t_aligned_cell'.
* libguile/_scm.h (scm_aligned_cell, scm_t_aligned_cell): Remove. The
whole approach was misguided as the compiler can't guarantee absolute
alignment on the stack.
Diffstat (limited to 'libguile/_scm.h')
-rw-r--r-- | libguile/_scm.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libguile/_scm.h b/libguile/_scm.h index b04752cc3..0d86fe18c 100644 --- a/libguile/_scm.h +++ b/libguile/_scm.h @@ -197,36 +197,6 @@ #define SCM_OBJCODE_COOKIE \ "GOOF-" SCM_OBJCODE_MACHINE_VERSION_STRING "---" - -/* Cells have to be 8-byte aligned. Use `scm_t_aligned_cell' when not - allocating on the heap to have this guarantee. This is similar to the - `SCM_ALIGNED' macro but provides an option likely to work with compilers - other than GCC. */ - -#ifdef __GNUC__ - -struct scm_aligned_cell -{ - scm_t_cell cell __attribute__ ((__aligned__ (8))); -}; - -typedef struct scm_aligned_cell scm_t_aligned_cell; - -#else /* !__GNUC__ */ - -union scm_aligned_cell -{ - double alignment; - scm_t_cell cell; -}; - -typedef union scm_aligned_cell scm_t_aligned_cell; - -#endif /* !__GNUC__ */ - -/* Make sure we get the right alignment. */ -verify (alignof (scm_t_aligned_cell) >= 8); - #endif /* SCM__SCM_H */ /* |