aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2004-01-21 19:32:49 +0000
committerStefan Monnier2004-01-21 19:32:49 +0000
commit1b35bdf447d1774f08b33845b4b43d3d5a3b1a37 (patch)
tree62d2d4a54f411b849fc9f3590a346f09e4524796 /src
parent5335a4eeb80af7ce184e43f490f2ab7b55e68a0a (diff)
downloademacs-1b35bdf447d1774f08b33845b4b43d3d5a3b1a37.tar.gz
emacs-1b35bdf447d1774f08b33845b4b43d3d5a3b1a37.zip
[USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/lisp.h b/src/lisp.h
index cb332acaedb..917634525d7 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -294,18 +294,14 @@ enum pvec_type
294/* First, try and define DECL_ALIGN(type,var) which declares a static 294/* First, try and define DECL_ALIGN(type,var) which declares a static
295 variable VAR of type TYPE with the added requirement that it be 295 variable VAR of type TYPE with the added requirement that it be
296 TYPEBITS-aligned. */ 296 TYPEBITS-aligned. */
297#ifndef DECL_ALIGN 297#if defined USE_LSB_TAG && !defined DECL_ALIGN
298/* What compiler directive should we use for non-gcc compilers? -stef */ 298/* What compiler directive should we use for non-gcc compilers? -stef */
299#if defined (__GNUC__) 299# if defined (__GNUC__)
300#define DECL_ALIGN(type, var) \ 300# define DECL_ALIGN(type, var) \
301 type __attribute__ ((__aligned__ (1 << GCTYPEBITS))) var 301 type __attribute__ ((__aligned__ (1 << GCTYPEBITS))) var
302#endif 302# else
303#endif 303# error "USE_LSB_TAG used without defining DECL_ALIGN"
304 304# endif
305#ifndef DECL_ALIGN
306/* Can't USE_LSB_TAG if we can't enforce alignment of statically allocated
307 objects like lisp_subr and the special buffers in buffer.c. */
308#undef USE_LSB_TAG
309#endif 305#endif
310 306
311#ifndef USE_LSB_TAG 307#ifndef USE_LSB_TAG