diff options
author | Eli Zaretskii <[email protected]> | 2004-11-27 12:24:40 +0000 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2004-11-27 12:24:40 +0000 |
commit | 9bcc29586fed0efd053100480bd6861b3b2411a5 (patch) | |
tree | 42b94c8ec02d7c7dc65127328e6e65063fb51ece /src | |
parent | 670c001543950c51cb9322312b72e106c3819299 (diff) |
(DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN is not defined.
Diffstat (limited to 'src')
-rw-r--r-- | src/lisp.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lisp.h b/src/lisp.h index 3746e6602a..3cbdea0f0b 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -304,11 +304,13 @@ enum pvec_type /* 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 +#ifndef NO_DECL_ALIGN +# ifndef DECL_ALIGN /* What compiler directive should we use for non-gcc compilers? -stef */ -# if defined (__GNUC__) -# define DECL_ALIGN(type, var) \ - type __attribute__ ((__aligned__ (1 << GCTYPEBITS))) var +# if defined (__GNUC__) +# define DECL_ALIGN(type, var) \ + type __attribute__ ((__aligned__ (1 << GCTYPEBITS))) var +# endif # endif #endif @@ -323,7 +325,7 @@ enum pvec_type # endif #endif -/* Just remove the alignment annotation if we don't use it. */ +/* If we cannot use 8-byte alignment, make DECL_ALIGN a no-op. */ #ifndef DECL_ALIGN # ifdef USE_LSB_TAG # error "USE_LSB_TAG used without defining DECL_ALIGN" |