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.
Showing the changes to include (1 of 8 files). Show all
Unified · Split
| @@ -17,7 +17,7 @@ typedef union { long long __ll; long double __ld; } max_align_t; · 16 unmodified lines | ||
| 17 | 17 | #endif |
| 18 | 18 | |
| 19 | 19 | #undef offsetof |
| 20 | −#define offsetof(type, field) ((size_t)&((type *)0)->field) | |
| 20 | +#define offsetof(type, field) __builtin_offsetof(type, field) | |
| 21 | 21 | |
| 22 | 22 | #if defined __i386__ || defined __x86_64__ |
| 23 | 23 | void *alloca(size_t size); |