https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112563

--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Rainer Orth <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:088d3cbc5f906444a7dee98bc9a6f4b724ddfc21

commit r14-5927-g088d3cbc5f906444a7dee98bc9a6f4b724ddfc21
Author: Rainer Orth <r...@cebitec.uni-bielefeld.de>
Date:   Tue Nov 28 14:54:34 2023 +0100

    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  <r...@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.

Reply via email to