changeset 53669:2127bc33e972

[USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 21 Jan 2004 19:32:49 +0000
parents 142aa239165f
children 7a44a79b94b6
files src/lisp.h
diffstat 1 files changed, 6 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/lisp.h	Wed Jan 21 15:30:28 2004 +0000
+++ b/src/lisp.h	Wed Jan 21 19:32:49 2004 +0000
@@ -294,18 +294,14 @@
 /* First, try and define DECL_ALIGN(type,var) which declares a static
    variable VAR of type TYPE with the added requirement that it be
    TYPEBITS-aligned. */
-#ifndef DECL_ALIGN
+#if defined USE_LSB_TAG && !defined DECL_ALIGN
 /* What compiler directive should we use for non-gcc compilers?  -stef  */
-#if defined (__GNUC__)
-#define DECL_ALIGN(type, var) \
+# if defined (__GNUC__)
+#  define DECL_ALIGN(type, var) \
     type __attribute__ ((__aligned__ (1 << GCTYPEBITS))) var
-#endif
-#endif
-
-#ifndef DECL_ALIGN
-/* Can't USE_LSB_TAG if we can't enforce alignment of statically allocated
-   objects like lisp_subr and the special buffers in buffer.c.  */
-#undef USE_LSB_TAG
+# else
+#  error "USE_LSB_TAG used without defining DECL_ALIGN"
+# endif
 #endif
 
 #ifndef USE_LSB_TAG