dim 3fdd5dd1e5 Fix clang 6.0.0 compiler warnings in binutils
Latest clang git has a warning -Wnull-pointer-arithmetic which will
trigger a -Werror failure. Addition and subtraction from a null pointer
is undefined behaviour and could be optimized into anything.

Furthermore, using the difference between two pointers and casting the
result back to a pointer is not portable since the size of ptrdiff_t
does not necessary have to be the same as size of void* (this happens
e.g. on CHERI). Using intptr_t instead fixes this portability issue and
the compiler warning.

Submitted by;	Alexander Richardson
Obtained from:	CheriBSD
Differential Revision: https://reviews.freebsd.org/D12928
MFC after:	3 days
2017-12-24 16:51:59 +00:00
..
2017-11-02 20:08:00 +00:00
2017-05-31 19:37:23 +00:00
2017-09-17 19:14:38 +00:00
2017-12-10 09:17:21 +00:00
2017-12-12 17:34:35 +00:00
2017-10-01 00:40:23 +00:00
2017-07-03 19:49:25 +00:00
2017-02-19 17:37:16 +00:00
2017-08-03 15:47:42 +00:00
2017-11-29 00:46:36 +00:00
2017-02-06 08:49:57 +00:00
2017-03-23 22:06:06 +00:00
2017-05-23 09:29:05 +00:00
2017-05-05 13:31:25 +00:00
2017-01-30 16:32:53 +00:00
2017-06-28 09:22:45 +00:00
2017-02-28 23:42:47 +00:00
2017-12-06 02:21:11 +00:00
2017-03-25 14:14:11 +00:00
2017-06-01 19:21:30 +00:00
2017-02-28 23:42:47 +00:00
2017-10-28 18:54:45 +00:00
2017-06-03 18:21:50 +00:00
2017-09-10 01:25:15 +00:00