gcc/libsanitizer/sanitizer_common
Rainer Orth 6805c1c6a6 libsanitizer: Fix GetPcSpBp determination of SP on 32-bit Solaris/x86
The latest Solaris 11.4/x86 update uncovered a libsanitizer bug that
caused one test to FAIL for 32-bit:

+FAIL: c-c++-common/asan/null-deref-1.c   -O0  output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c   -O1  output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c   -O2  output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c   -O2 -flto  output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c -O2 -flto -flto-partition=none
output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c   -O3 -g  output pattern test
+FAIL: c-c++-common/asan/null-deref-1.c   -Os  output pattern test

I've identified the problem and the fix has just landed in upstream
llvm-project:

	https://reviews.llvm.org/D83664

Tested on i386-pc-solaris2.11 and x86_64-pc-linux.gnu.

	libsanitizer:
	* sanitizer_common/sanitizer_linux.cpp: Cherry-pick llvm-project
	revision f0e9b76c3500496f8f3ea7abe6f4bf801e3b41e7.
2020-07-16 10:38:48 +02:00
..
Makefile.am libsanitizer: use gnu++14 2020-06-09 10:07:24 +02:00
Makefile.in libsanitizer: use gnu++14 2020-06-09 10:07:24 +02:00
sancov_flags.cpp
sancov_flags.h
sancov_flags.inc
sanitizer_addrhashmap.h
sanitizer_allocator_bytemap.h
sanitizer_allocator_checks.cpp
sanitizer_allocator_checks.h
sanitizer_allocator_combined.h
sanitizer_allocator_interface.h
sanitizer_allocator_internal.h
sanitizer_allocator_local_cache.h
sanitizer_allocator_primary32.h
sanitizer_allocator_primary64.h
sanitizer_allocator_report.cpp
sanitizer_allocator_report.h
sanitizer_allocator_secondary.h
sanitizer_allocator_size_class_map.h
sanitizer_allocator_stats.h
sanitizer_allocator.cpp
sanitizer_allocator.h
sanitizer_asm.h
sanitizer_atomic_clang_mips.h
sanitizer_atomic_clang_other.h
sanitizer_atomic_clang_x86.h
sanitizer_atomic_clang.h
sanitizer_atomic_msvc.h
sanitizer_atomic.h
sanitizer_bitvector.h
sanitizer_bvgraph.h
sanitizer_common_interceptors_format.inc
sanitizer_common_interceptors_ioctl.inc
sanitizer_common_interceptors_netbsd_compat.inc
sanitizer_common_interceptors_vfork_aarch64.inc.S
sanitizer_common_interceptors_vfork_arm.inc.S
sanitizer_common_interceptors_vfork_i386.inc.S
sanitizer_common_interceptors_vfork_x86_64.inc.S
sanitizer_common_interceptors.inc
sanitizer_common_interface_posix.inc
sanitizer_common_interface.inc
sanitizer_common_libcdep.cpp
sanitizer_common_nolibc.cpp
sanitizer_common_syscalls.inc
sanitizer_common.cpp
sanitizer_common.h
sanitizer_coverage_fuchsia.cpp
sanitizer_coverage_interface.inc
sanitizer_coverage_libcdep_new.cpp
sanitizer_coverage_win_dll_thunk.cpp
sanitizer_coverage_win_dynamic_runtime_thunk.cpp
sanitizer_coverage_win_sections.cpp
sanitizer_coverage_win_weak_interception.cpp
sanitizer_dbghelp.h
sanitizer_deadlock_detector1.cpp
sanitizer_deadlock_detector2.cpp
sanitizer_deadlock_detector_interface.h
sanitizer_deadlock_detector.h
sanitizer_errno_codes.h
sanitizer_errno.cpp
sanitizer_errno.h
sanitizer_file.cpp
sanitizer_file.h
sanitizer_flag_parser.cpp
sanitizer_flag_parser.h
sanitizer_flags.cpp
sanitizer_flags.h
sanitizer_flags.inc
sanitizer_freebsd.h
sanitizer_fuchsia.cpp
sanitizer_fuchsia.h
sanitizer_getauxval.h
sanitizer_glibc_version.h
sanitizer_hash.h
sanitizer_interceptors_ioctl_netbsd.inc
sanitizer_interface_internal.h
sanitizer_internal_defs.h
sanitizer_lfstack.h
sanitizer_libc.cpp
sanitizer_libc.h
sanitizer_libignore.cpp
sanitizer_libignore.h
sanitizer_linux_libcdep.cpp
sanitizer_linux_s390.cpp
sanitizer_linux.cpp libsanitizer: Fix GetPcSpBp determination of SP on 32-bit Solaris/x86 2020-07-16 10:38:48 +02:00
sanitizer_linux.h
sanitizer_list.h
sanitizer_local_address_space_view.h
sanitizer_mac_libcdep.cpp
sanitizer_mac.cpp
sanitizer_mac.h
sanitizer_malloc_mac.inc
sanitizer_mutex.h
sanitizer_netbsd.cpp
sanitizer_openbsd.cpp
sanitizer_persistent_allocator.cpp
sanitizer_persistent_allocator.h
sanitizer_placement_new.h
sanitizer_platform_interceptors.h
sanitizer_platform_limits_freebsd.cpp
sanitizer_platform_limits_freebsd.h
sanitizer_platform_limits_linux.cpp
sanitizer_platform_limits_netbsd.cpp
sanitizer_platform_limits_netbsd.h
sanitizer_platform_limits_openbsd.cpp
sanitizer_platform_limits_openbsd.h
sanitizer_platform_limits_posix.cpp
sanitizer_platform_limits_posix.h
sanitizer_platform_limits_solaris.cpp
sanitizer_platform_limits_solaris.h
sanitizer_platform.h
sanitizer_posix_libcdep.cpp
sanitizer_posix.cpp
sanitizer_posix.h
sanitizer_printf.cpp
sanitizer_procmaps_bsd.cpp
sanitizer_procmaps_common.cpp
sanitizer_procmaps_fuchsia.cpp
sanitizer_procmaps_linux.cpp
sanitizer_procmaps_mac.cpp
sanitizer_procmaps_solaris.cpp
sanitizer_procmaps.h
sanitizer_ptrauth.h
sanitizer_quarantine.h
sanitizer_report_decorator.h
sanitizer_ring_buffer.h
sanitizer_rtems.cpp
sanitizer_rtems.h
sanitizer_signal_interceptors.inc
sanitizer_solaris.cpp
sanitizer_stackdepot.cpp
sanitizer_stackdepot.h
sanitizer_stackdepotbase.h
sanitizer_stacktrace_libcdep.cpp
sanitizer_stacktrace_printer.cpp
sanitizer_stacktrace_printer.h
sanitizer_stacktrace_sparc.cpp
sanitizer_stacktrace.cpp
sanitizer_stacktrace.h
sanitizer_stoptheworld_fuchsia.cpp
sanitizer_stoptheworld_linux_libcdep.cpp
sanitizer_stoptheworld_mac.cpp
sanitizer_stoptheworld_netbsd_libcdep.cpp
sanitizer_stoptheworld.h
sanitizer_suppressions.cpp
sanitizer_suppressions.h
sanitizer_symbolizer_fuchsia.h
sanitizer_symbolizer_internal.h
sanitizer_symbolizer_libbacktrace.cpp
sanitizer_symbolizer_libbacktrace.h
sanitizer_symbolizer_libcdep.cpp
sanitizer_symbolizer_mac.cpp
sanitizer_symbolizer_mac.h
sanitizer_symbolizer_markup.cpp
sanitizer_symbolizer_posix_libcdep.cpp
sanitizer_symbolizer_report.cpp
sanitizer_symbolizer_rtems.h
sanitizer_symbolizer_win.cpp
sanitizer_symbolizer.cpp
sanitizer_symbolizer.h
sanitizer_syscall_generic.inc
sanitizer_syscall_linux_aarch64.inc
sanitizer_syscall_linux_arm.inc
sanitizer_syscall_linux_x86_64.inc
sanitizer_syscalls_netbsd.inc
sanitizer_termination.cpp
sanitizer_thread_registry.cpp
sanitizer_thread_registry.h
sanitizer_tls_get_addr.cpp
sanitizer_tls_get_addr.h
sanitizer_type_traits.cpp
sanitizer_type_traits.h
sanitizer_unwind_linux_libcdep.cpp
sanitizer_unwind_win.cpp
sanitizer_vector.h
sanitizer_win_defs.h
sanitizer_win_dll_thunk.cpp
sanitizer_win_dll_thunk.h
sanitizer_win_dynamic_runtime_thunk.cpp
sanitizer_win_weak_interception.cpp
sanitizer_win_weak_interception.h
sanitizer_win.cpp
sanitizer_win.h