diff options
| author | Paul Eggert | 2013-04-26 12:31:09 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-04-26 12:31:09 -0700 |
| commit | f780d632f2047ccf07208081aa477882ef4ecc2a (patch) | |
| tree | 2eee9afd1a4113ee2eeb2319807064eb2c68a992 /src | |
| parent | ff7210d55b30e175da1384ba707ce1340a0c4e11 (diff) | |
| download | emacs-f780d632f2047ccf07208081aa477882ef4ecc2a.tar.gz emacs-f780d632f2047ccf07208081aa477882ef4ecc2a.zip | |
Port better to AIX.
* configure.ac (CFLAGS): Append -O if the user did not specify CFLAGS,
we did not already infer an optimization option, and -O works.
AIX xlc needs -O, otherwise garbage collection doesn't work.
* src/lisp.h (ENUM_BF) [__IBMC__]: Make it 'unsigned int' here, too,
to pacify AIX xlc.
Fixes: debbugs:14258
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/lisp.h | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 99e2c3d9a84..9ae5c29ab72 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-04-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Port better to AIX (Bug#14258). | ||
| 4 | * lisp.h (ENUM_BF) [__IBMC__]: Make it 'unsigned int' here, too, | ||
| 5 | to pacify AIX xlc. | ||
| 6 | |||
| 1 | 2013-04-24 Kenichi Handa <handa@gnu.org> | 7 | 2013-04-24 Kenichi Handa <handa@gnu.org> |
| 2 | 8 | ||
| 3 | * coding.c (decode_coding_iso_2022): When an invalid escape | 9 | * coding.c (decode_coding_iso_2022): When an invalid escape |
diff --git a/src/lisp.h b/src/lisp.h index bcb866b4cc4..e2c24eed352 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -231,9 +231,9 @@ enum enum_USE_LSB_TAG { USE_LSB_TAG = 0 }; | |||
| 231 | #define case_Lisp_Int case Lisp_Int0: case Lisp_Int1 | 231 | #define case_Lisp_Int case Lisp_Int0: case Lisp_Int1 |
| 232 | #define LISP_INT_TAG_P(x) (((x) & ~Lisp_Int1) == 0) | 232 | #define LISP_INT_TAG_P(x) (((x) & ~Lisp_Int1) == 0) |
| 233 | 233 | ||
| 234 | /* Stolen from GDB. The only known compiler that doesn't support | 234 | /* Idea stolen from GDB. MSVC doesn't support enums in bitfields, |
| 235 | enums in bitfields is MSVC. */ | 235 | and xlc complains vociferously about them. */ |
| 236 | #ifdef _MSC_VER | 236 | #if defined _MSC_VER || defined __IBMC__ |
| 237 | #define ENUM_BF(TYPE) unsigned int | 237 | #define ENUM_BF(TYPE) unsigned int |
| 238 | #else | 238 | #else |
| 239 | #define ENUM_BF(TYPE) enum TYPE | 239 | #define ENUM_BF(TYPE) enum TYPE |