> So, here is the (IMO obvious) patch to enable libsanitizer's build on > sparc linux, even if asan is not supported on that platform yet. > > OK for trunk? > > libsanitizer/ChangeLog: > > * configure.tgt: Enable sparc linux.
libtool: compile: /home/ebotcazou/build/./gcc/g++ - B/home/ebotcazou/build/./gcc/ -nostdinc++ -nostdinc++ - I/home/ebotcazou/build/sparc64-linux-gnu/64/libstdc++-v3/include/sparc64- linux-gnu -I/home/ebotcazou/build/sparc64-linux-gnu/64/libstdc++-v3/include - I/home/ebotcazou/src/libstdc++-v3/libsupc++ -I/home/ebotcazou/src/libstdc++- v3/include/backward -I/home/ebotcazou/src/libstdc++-v3/testsuite/util - L/home/ebotcazou/build/sparc64-linux-gnu/64/libstdc++-v3/src - L/home/ebotcazou/build/sparc64-linux-gnu/64/libstdc++-v3/src/.libs - B/home/ebotcazou/install/sparc64-linux-gnu/bin/ - B/home/ebotcazou/install/sparc64-linux-gnu/lib/ -isystem /home/ebotcazou/install/sparc64-linux-gnu/include -isystem /home/ebotcazou/install/sparc64-linux-gnu/sys-include -m64 -D_GNU_SOURCE - D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I. -I/home/ebotcazou/src/libsanitizer/sanitizer_common -I /home/ebotcazou/src/libsanitizer/include -Wall -W -Wno-unused-parameter - Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions - fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros - Wno-c99-extensions -g -O2 -D_GNU_SOURCE -m64 -MT sanitizer_linux.lo -MD -MP - MF .deps/sanitizer_linux.Tpo -c /home/ebotcazou/src/libsanitizer/sanitizer_common/sanitizer_linux.cc -fPIC - DPIC -o .libs/sanitizer_linux.o /home/ebotcazou/src/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function 'void* __sanitizer::internal_mmap(void*, __sanitizer::uptr, int, int, int, __sanitizer::u64)': /home/ebotcazou/src/libsanitizer/sanitizer_common/sanitizer_linux.cc:40:26: error: '__NR_mmap2' was not declared in this scope return (void *)syscall(__NR_mmap2, addr, length, prot, flags, fd, offset); ^ /home/ebotcazou/src/libsanitizer/sanitizer_common/sanitizer_linux.cc:42:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ At global scope: cc1plus: warning: unrecognized command line option "-Wno-c99-extensions" [enabled by default] make[5]: *** [sanitizer_linux.lo] Error 1 -- Eric Botcazou