1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00
freebsd/contrib/binutils/include
Dimitry Andric 34f4d02c2f 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
..
aout Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
coff Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which brings 2010-11-01 19:35:33 +00:00
elf More ARM EABI object attributes in binutils. This adds support to binutils 2015-04-03 19:33:26 +00:00
opcode Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which brings 2010-11-01 19:35:33 +00:00
alloca-conf.h Rename vendor/binutils/*/contrib to vendor/binutils/*/x 2009-01-19 17:25:17 +00:00
ansidecl.h Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which brings 2010-11-01 19:35:33 +00:00
bfdlink.h Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which brings 2010-11-01 19:35:33 +00:00
ChangeLog Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which brings 2010-11-01 19:35:33 +00:00
demangle.h Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which brings 2010-11-01 19:35:33 +00:00
dis-asm.h Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which brings 2010-11-01 19:35:33 +00:00
dyn-string.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
fibheap.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
filenames.h Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which brings 2010-11-01 19:35:33 +00:00
floatformat.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
fnmatch.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
fopen-bin.h Rename vendor/binutils/*/contrib to vendor/binutils/*/x 2009-01-19 17:25:17 +00:00
fopen-same.h Rename vendor/binutils/*/contrib to vendor/binutils/*/x 2009-01-19 17:25:17 +00:00
gdbm.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
hashtab.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
ieee.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
libiberty.h Replace local prototype of basename() with an inclusion of <libgen.h>. 2016-05-29 16:10:01 +00:00
MAINTAINERS Rename vendor/binutils/*/contrib to vendor/binutils/*/x 2009-01-19 17:25:17 +00:00
md5.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
objalloc.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
obstack.h Fix clang 6.0.0 compiler warnings in binutils 2017-12-24 16:51:59 +00:00
partition.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
progress.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
safe-ctype.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
sort.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
splay-tree.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
symcat.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
ternary.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
xregex2.h Merge ^vendor/binutils/dist@214082 into contrib/binutils. 2010-10-21 19:11:14 +00:00
xregex.h Rename vendor/binutils/*/contrib to vendor/binutils/*/x 2009-01-19 17:25:17 +00:00