History

Update for clang -fsanitize

I tried to fix all remaining warnings/errors reported by -fsanitize. The riscv64-gen.c is a bit large because it contained a lot of warnings. I forgot some arm-link.c changes in last commit. The other changes are all small fixes to avoid warnings/errors.

herman ten brugge committed 1 year ago

Commit 666e88e1 parent 8025a828 files · +68 −74Browse files

Showing the changes to include (1 of 8 files). Show all

Unified · Split

include/stddef.h+1−1
@@ -17,7 +17,7 @@ typedef union { long long __ll; long double __ld; } max_align_t; · 16 unmodified lines
1717 #endif
1818
1919 #undef offsetof
20−#define offsetof(type, field) ((size_t)&((type *)0)->field)
20+#define offsetof(type, field) __builtin_offsetof(type, field)
2121
2222 #if defined __i386__ || defined __x86_64__
2323 void *alloca(size_t size);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t