diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/conf_post.h | 5 | ||||
| -rw-r--r-- | src/lisp.h | 10 |
3 files changed, 6 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2881574684c..c68adfcb5b1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2014-06-02 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2014-06-02 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Improve AIX-related merge from emacs-24. | ||
| 4 | * conf_post.h (FLEXIBLE_ARRAY_MEMBER): Fix comment. | ||
| 5 | * lisp.h (ENUMABLE) [!_AIX]: Don't define to 0 merely because we're | ||
| 6 | not on AIX; since we're on the trunk we can use enums more broadly. | ||
| 7 | |||
| 3 | * frame.c (x_set_frame_parameters): Don't read uninitialized storage. | 8 | * frame.c (x_set_frame_parameters): Don't read uninitialized storage. |
| 4 | 9 | ||
| 5 | 2014-06-02 Jan Djärv <jan.h.d@swipnet.se> | 10 | 2014-06-02 Jan Djärv <jan.h.d@swipnet.se> |
diff --git a/src/conf_post.h b/src/conf_post.h index 9c82d7d2a71..a995acfd915 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -309,10 +309,7 @@ extern void _DebPrint (const char *fmt, ...); | |||
| 309 | /* To use the struct hack with N elements, declare the struct like this: | 309 | /* To use the struct hack with N elements, declare the struct like this: |
| 310 | struct s { ...; t name[FLEXIBLE_ARRAY_MEMBER]; }; | 310 | struct s { ...; t name[FLEXIBLE_ARRAY_MEMBER]; }; |
| 311 | and allocate (offsetof (struct s, name) + N * sizeof (t)) bytes. | 311 | and allocate (offsetof (struct s, name) + N * sizeof (t)) bytes. |
| 312 | 312 | IBM xlc 12.1 claims to do C99 but mishandles flexible array members. */ | |
| 313 | This macro used to expand to something different on pre-C99 compilers. | ||
| 314 | IBM xlc 12.1 claims to do C99 but mishandles flexible array members. | ||
| 315 | FIXME: Remove it, and remove all uses. */ | ||
| 316 | #ifdef __IBMC__ | 313 | #ifdef __IBMC__ |
| 317 | # define FLEXIBLE_ARRAY_MEMBER 1 | 314 | # define FLEXIBLE_ARRAY_MEMBER 1 |
| 318 | #else | 315 | #else |
diff --git a/src/lisp.h b/src/lisp.h index 028abe350c3..6d397169e87 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -59,16 +59,6 @@ INLINE_HEADER_BEGIN | |||
| 59 | # define ENUMABLE(val) 0 | 59 | # define ENUMABLE(val) 0 |
| 60 | #endif | 60 | #endif |
| 61 | 61 | ||
| 62 | /* On AIX 7.1 ENUMABLE should return true when possible, otherwise the | ||
| 63 | linker can optimize the symbols away, making it harder to debug. | ||
| 64 | This was discovered only late in the release process, so to play it | ||
| 65 | safe for now, non-AIX platforms do not use enums for debugging symbols. | ||
| 66 | FIXME: remove this comment and the following four lines of code. */ | ||
| 67 | #ifndef _AIX | ||
| 68 | # undef ENUMABLE | ||
| 69 | # define ENUMABLE(val) 0 | ||
| 70 | #endif | ||
| 71 | |||
| 72 | #define DEFINE_GDB_SYMBOL_ENUM(id) enum { id = id##_val }; | 62 | #define DEFINE_GDB_SYMBOL_ENUM(id) enum { id = id##_val }; |
| 73 | #if defined MAIN_PROGRAM | 63 | #if defined MAIN_PROGRAM |
| 74 | # define DEFINE_GDB_SYMBOL_BEGIN(type, id) type const id EXTERNALLY_VISIBLE | 64 | # define DEFINE_GDB_SYMBOL_BEGIN(type, id) type const id EXTERNALLY_VISIBLE |