diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-05-17 17:40:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-09-20 13:31:50 +0200 |
commit | 28e028680b3c0551db3a9b71c8fe6b66aac2433b (patch) | |
tree | 17688b5602e93c550775696a3c0dc0cdc090ddfa /configure.ac | |
parent | 9b231713790c6e94eb64c3fc108ce99ebd2b90af (diff) |
Remove legacy NEED_CLANG_LINUX_UBSAN_RTTI_VISIBILITY support
...for ASan/UBSan builds using Clang older than current trunk twoards Clang 9,
as announced at
<https://lists.freedesktop.org/archives/libreoffice/2019-May/082654.html> "Re:
[Libreoffice-commits] core.git: The -fvisibility-ms-compat hack is no longer
needed for UBSan on Linux...". (And drop the no longer needed
solenv/sanitizers/asan-suppressions, which people might still reference from
their ASAN_OPTIONS.)
Change-Id: Iedc0c5955366d2cbe7dc847990e2b1576750e85b
Reviewed-on: https://gerrit.libreoffice.org/72493
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/configure.ac b/configure.ac index e6081bb94e8b..f27b041ee0c4 100644 --- a/configure.ac +++ b/configure.ac @@ -3914,30 +3914,6 @@ else fi AC_SUBST(ENABLE_DEBUG) -AC_MSG_CHECKING([whether special RTTI visibility flags are needed for Clang Linux UBSan]) -NEED_CLANG_LINUX_UBSAN_RTTI_VISIBILITY= -dnl Clang 9 is known fixed since -dnl <https://github.com/llvm/llvm-project/commit/5745eccef54ddd3caca278d1d292a88b2281528b> "Adapt -dnl -fsanitize=function to SANITIZER_NON_UNIQUE_TYPEINFO": -if test "$COM_IS_CLANG" = TRUE -a "$_os" = Linux; then - if test "$CLANGVER" -lt 90000; then - for i in $CC; do - case $i in - -fsanitize=*) - NEED_CLANG_LINUX_UBSAN_RTTI_VISIBILITY=TRUE - break - ;; - esac - done - fi -fi -if test "$NEED_CLANG_LINUX_UBSAN_RTTI_VISIBILITY" = TRUE; then - AC_MSG_RESULT([yes]) -else - AC_MSG_RESULT([no]) -fi -AC_SUBST([NEED_CLANG_LINUX_UBSAN_RTTI_VISIBILITY]) - dnl =================================================================== dnl Select the linker to use (gold/lld/ld.bfd). dnl This is done only after compiler checks (need to know if Clang is @@ -3962,30 +3938,6 @@ printf ("hello world\n"); if test -n "$USE_LD"; then AC_MSG_RESULT( yes ) use_ld_ok=yes - dnl For obscure reasons, unxgcc.mk uses the --dynamic-list-cpp-typeinfo linker option - dnl if NEED_CLANG_LINUX_UBSAN_RTTI_VISIBILITY, and lld doesn't support this option. - if test -n "$NEED_CLANG_LINUX_UBSAN_RTTI_VISIBILITY"; then - AC_MSG_CHECKING([for --dynamic-list-cpp-typeinfo linker support (-fuse-ld=$use_ld)]) - use_ld_ldflags_save_2="$LDFLAGS" - LDFLAGS="$LDFLAGS -Wl,--dynamic-list-cpp-typeinfo" - use_ld_has_cpp_typeinfo= - AC_LINK_IFELSE([AC_LANG_PROGRAM([ -#include <stdio.h> - ],[ -printf ("hello world\n"); - ])], use_ld_has_cpp_typeinfo=yes, []) - LDFLAGS="$use_ld_ldflags_save_2" - if test -n "$use_ld_has_cpp_typeinfo"; then - AC_MSG_RESULT( yes ) - else - if test -n "$use_ld_fail_if_error"; then - AC_MSG_ERROR( no ) - else - AC_MSG_RESULT( no ) - fi - use_ld_ok= - fi - fi else if test -n "$use_ld_fail_if_error"; then AC_MSG_ERROR( no ) |