On Fri, 6 Jan 2023, YunQiang Su wrote: > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 is always used for mips > when build libsanitizer in LLVM. Thus > FIRST_32_SECOND_64((_MIPS_SIM == _ABIN32) ? 176 : 160, 216); > instead of > FIRST_32_SECOND_64((_MIPS_SIM == _ABIN32) ? 160 : 144, 216); > in sanitizer_platform_limits_posix.h. > > To keep sync with LLVM and to make the code simple, we use the > largefile options always. > > libsanitizer/ > * configure.ac: set -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > always for mips*. > * configure: Regenerate.
Hm, yes, that might be the most pragmatic way to solve the mips stat-size issue... But shouldn't then largefile-options also be forced when libsanitizer is *used*? IOW, mips*-linux gcc-options be tweaked to include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conditional on sanitizer-options? brgds, H-P