[Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun May 29 19:03:00 GMT 2022


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

--- Comment #34 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:

https://gcc.gnu.org/g:8e4e6100d7fdef22e3f3c8475699a32aeb3e60ea

commit r10-10776-g8e4e6100d7fdef22e3f3c8475699a32aeb3e60ea
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Jul 31 16:29:03 2021 +0100

    Darwin, X86, config: Adjust 'as' command lines [PR100340].

    Versions of the assembler using clang from XCode 12.5/12.5.1
    have a bug which produces different code layout between debug and
    non-debug input, leading to a compare fail for default configure
    parameters.

    This is a workaround fix to disable the optimisation that is
    responsible for the bug.

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

    PR target/100340 - Bootstrap fails with Clang 12.0.5 (XCode 12.5)

            PR target/100340

    gcc/ChangeLog:

            * config.in: Regenerate.
            * config/i386/darwin.h (EXTRA_ASM_OPTS): New
            (ASM_SPEC): Pass options to disable branch shortening where
            needed.
            * configure: Regenerate.
            * configure.ac: Detect versions of 'as' that support the
            optimisation which has the bug.

    (cherry picked from commit 743b8dd6fd757e997eb060d70fd4ae8e04fb56cd)


More information about the Gcc-bugs mailing list