mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-15 09:09:58 +08:00
f21b2ba8f3
The actual pointer value in offsetin() cancels out, but clang still miscompiles offsetin() for an uninitialized pointer, considering the value to be completely undefined. Initialize pointer being passed to offsetin() to make clang happy; both the gcc and clang optimizers discover later in the code that the initialization is unused and removes it from the code. Although technically undefined behavior, this is in my opinion a severe quality of implementation bug in clang, and I will file a bug report accordingly. Reported-by: Jasper Lievisse Adriaanse <r+nasm@jasper.la> Reported-by: David Bohman <debohman@gmail.com> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com> |
||
---|---|---|
.. | ||
alloc.c | ||
alloc.h | ||
asprintf.c | ||
badenum.c | ||
bsi.c | ||
crc64.c | ||
errfile.c | ||
file.c | ||
file.h | ||
filename.c | ||
hashtbl.c | ||
ilog2.c | ||
md5c.c | ||
mmap.c | ||
nctype.c | ||
path.c | ||
perfhash.c | ||
perfhash.pl | ||
raa.c | ||
rbtree.c | ||
readnum.c | ||
realpath.c | ||
rlimit.c | ||
saa.c | ||
string.c | ||
strlist.c | ||
ver.c | ||
zerobuf.c |