internal.h (backtrace_atomic_load_pointer): Fix to return void *.

* internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
	Fix to return void *.

From-SVN: r216603
This commit is contained in:
Ian Lance Taylor 2014-10-23 22:40:37 +00:00 committed by Ian Lance Taylor
parent 74cc54710d
commit c96601d2a7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-10-23 Ian Lance Taylor <iant@google.com>
* internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
Fix to return void *.
2014-05-08 Ian Lance Taylor <iant@google.com>
* mmap.c (backtrace_free): If freeing a large aligned block of

View File

@ -99,7 +99,7 @@ extern void backtrace_atomic_store_int (int *, int);
/* We have neither the sync nor the atomic functions. These will
never be called. */
#define backtrace_atomic_load_pointer(p) (abort(), 0)
#define backtrace_atomic_load_pointer(p) (abort(), (void *) NULL)
#define backtrace_atomic_load_int(p) (abort(), 0)
#define backtrace_atomic_store_pointer(p, v) abort()
#define backtrace_atomic_store_size_t(p, v) abort()