Remove `scm_t_aligned_cell'.
authorLudovic Courtès <ludo@gnu.org>
Sun, 26 Sep 2010 23:28:49 +0000 (01:28 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 26 Sep 2010 23:28:49 +0000 (01:28 +0200)
* 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.

libguile/_scm.h

index b04752c..0d86fe1 100644 (file)
 #define SCM_OBJCODE_COOKIE                              \
   "GOOF-" SCM_OBJCODE_MACHINE_VERSION_STRING "---"
 
-\f
-/* 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 */
 
 /*