diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/lisp.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7a98555cc9c..33030cb8660 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2015-01-08 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2015-01-08 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * lisp.h (TAG_SYMPTR): Don't do arithmetic on NULL. | ||
| 4 | This is a followup to the "Port Qnil==0 XUNTAG to clang" patch. | ||
| 5 | Although clang doesn't need it, some other compiler might, and | ||
| 6 | it's easy enough to be safe. | ||
| 7 | |||
| 3 | * conf_post.h (ATTRIBUTE_ALLOC_SIZE): Port to clang 3.5.0. | 8 | * conf_post.h (ATTRIBUTE_ALLOC_SIZE): Port to clang 3.5.0. |
| 4 | Apparently clang removed support for the alloc_size attribute. | 9 | Apparently clang removed support for the alloc_size attribute. |
| 5 | 10 | ||
diff --git a/src/lisp.h b/src/lisp.h index b9263f88c11..97abaade1e1 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -729,7 +729,8 @@ struct Lisp_Symbol | |||
| 729 | 729 | ||
| 730 | /* Yield an integer that tags PTR as a symbol. */ | 730 | /* Yield an integer that tags PTR as a symbol. */ |
| 731 | #define TAG_SYMPTR(ptr) \ | 731 | #define TAG_SYMPTR(ptr) \ |
| 732 | TAG_PTR (Lisp_Symbol, (char *) (ptr) - (char *) (USE_LSB_TAG ? lispsym : 0)) | 732 | TAG_PTR (Lisp_Symbol, \ |
| 733 | USE_LSB_TAG ? (char *) (ptr) - (char *) lispsym : (intptr_t) (ptr)) | ||
| 733 | 734 | ||
| 734 | /* Declare extern constants for Lisp symbols. These can be helpful | 735 | /* Declare extern constants for Lisp symbols. These can be helpful |
| 735 | when using a debugger like GDB, on older platforms where the debug | 736 | when using a debugger like GDB, on older platforms where the debug |