gcc/libsanitizer/tsan
Rainer Orth 088d3cbc5f libsanitizer: Check assembler support for symbol assignment [PR112563]
The recent libsanitizer import broke the build on Solaris/SPARC with the
native as:

/usr/ccs/bin/as: ".libs/sanitizer_errno.s", line 4247: error: symbol
"__sanitizer_internal_memset" is used but not defined
/usr/ccs/bin/as: ".libs/sanitizer_errno.s", line 4247: error: symbol
"__sanitizer_internal_memcpy" is used but not defined
/usr/ccs/bin/as: ".libs/sanitizer_errno.s", line 4247: error: symbol
"__sanitizer_internal_memmove" is used but not defined

Since none of the alternatives considered in the PR worked out, this
patch checks if the assembler does support symbol assignment, disabling
the code otherwise.  This returns the code to the way it was up to LLVM 16.

Bootstrapped without regressions on sparc-sun-solaris2.11 (as and gas) and
i386-pc-solaris2.11 (as and gas).

2023-11-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	libsanitizer:
	PR sanitizer/112563
	* configure.ac (libsanitizer_cv_as_sym_assign): Check for
	assembler symbol assignment support.
	* configure: Regenerate.
	* asan/Makefile.am (DEFS): Add @AS_SYM_ASSIGN_DEFS@.
	* Makefile.in, asan/Makefile.in, hwasan/Makefile.in,
	interception/Makefile.in, libbacktrace/Makefile.in,
	lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
	ubsan/Makefile.in: Regenerate.
2023-11-28 14:54:34 +01:00
..
libtool-version
Makefile.am libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
Makefile.in libsanitizer: Check assembler support for symbol assignment [PR112563] 2023-11-28 14:54:34 +01:00
tsan_debugging.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_defs.h
tsan_dense_alloc.h
tsan_dispatch_defs.h
tsan_external.cpp
tsan_fd.cpp
tsan_fd.h
tsan_flags.cpp
tsan_flags.h
tsan_flags.inc
tsan_ignoreset.cpp
tsan_ignoreset.h
tsan_ilist.h
tsan_interceptors_libdispatch.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_interceptors_mac.cpp
tsan_interceptors_mach_vm.cpp
tsan_interceptors_memintrinsics.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_interceptors_posix.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_interceptors.h libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_interface_ann.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_interface_ann.h
tsan_interface_atomic.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_interface_java.cpp
tsan_interface_java.h
tsan_interface.cpp
tsan_interface.h libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_interface.inc
tsan_malloc_mac.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_md5.cpp
tsan_mman.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_mman.h
tsan_mutexset.cpp
tsan_mutexset.h
tsan_new_delete.cpp
tsan_platform_linux.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_platform_mac.cpp
tsan_platform_posix.cpp
tsan_platform_windows.cpp
tsan_platform.h libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_ppc_regs.h
tsan_preinit.cpp
tsan_report.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_report.h libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_rtl_aarch64.S
tsan_rtl_access.cpp
tsan_rtl_amd64.S
tsan_rtl_loongarch64.S
tsan_rtl_mips64.S
tsan_rtl_mutex.cpp
tsan_rtl_ppc64.S libsanitizer: Apply local patches 2023-11-15 12:46:56 +01:00
tsan_rtl_proc.cpp
tsan_rtl_report.cpp
tsan_rtl_riscv64.S libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_rtl_s390x.S
tsan_rtl_thread.cpp
tsan_rtl.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_rtl.h libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_shadow.h
tsan_spinlock_defs_mac.h
tsan_stack_trace.cpp
tsan_stack_trace.h
tsan_suppressions.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
tsan_suppressions.h
tsan_symbolize.cpp
tsan_symbolize.h
tsan_sync.cpp
tsan_sync.h
tsan_trace.h
tsan_vector_clock.cpp
tsan_vector_clock.h