diff options
| author | Eli Zaretskii | 2004-11-27 12:24:40 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-11-27 12:24:40 +0000 |
| commit | 9bcc29586fed0efd053100480bd6861b3b2411a5 (patch) | |
| tree | 42b94c8ec02d7c7dc65127328e6e65063fb51ece /src | |
| parent | 670c001543950c51cb9322312b72e106c3819299 (diff) | |
| download | emacs-9bcc29586fed0efd053100480bd6861b3b2411a5.tar.gz emacs-9bcc29586fed0efd053100480bd6861b3b2411a5.zip | |
(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 3746e6602ac..3cbdea0f0bf 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -304,11 +304,13 @@ enum pvec_type | |||
| 304 | /* First, try and define DECL_ALIGN(type,var) which declares a static | 304 | /* First, try and define DECL_ALIGN(type,var) which declares a static |
| 305 | variable VAR of type TYPE with the added requirement that it be | 305 | variable VAR of type TYPE with the added requirement that it be |
| 306 | TYPEBITS-aligned. */ | 306 | TYPEBITS-aligned. */ |
| 307 | #ifndef DECL_ALIGN | 307 | #ifndef NO_DECL_ALIGN |
| 308 | # ifndef DECL_ALIGN | ||
| 308 | /* What compiler directive should we use for non-gcc compilers? -stef */ | 309 | /* What compiler directive should we use for non-gcc compilers? -stef */ |
| 309 | # if defined (__GNUC__) | 310 | # if defined (__GNUC__) |
| 310 | # define DECL_ALIGN(type, var) \ | 311 | # define DECL_ALIGN(type, var) \ |
| 311 | type __attribute__ ((__aligned__ (1 << GCTYPEBITS))) var | 312 | type __attribute__ ((__aligned__ (1 << GCTYPEBITS))) var |
| 313 | # endif | ||
| 312 | # endif | 314 | # endif |
| 313 | #endif | 315 | #endif |
| 314 | 316 | ||
| @@ -323,7 +325,7 @@ enum pvec_type | |||
| 323 | # endif | 325 | # endif |
| 324 | #endif | 326 | #endif |
| 325 | 327 | ||
| 326 | /* Just remove the alignment annotation if we don't use it. */ | 328 | /* If we cannot use 8-byte alignment, make DECL_ALIGN a no-op. */ |
| 327 | #ifndef DECL_ALIGN | 329 | #ifndef DECL_ALIGN |
| 328 | # ifdef USE_LSB_TAG | 330 | # ifdef USE_LSB_TAG |
| 329 | # error "USE_LSB_TAG used without defining DECL_ALIGN" | 331 | # error "USE_LSB_TAG used without defining DECL_ALIGN" |