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

--- Comment #28 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to CVS Commits from comment #27)
> The releases/gcc-11 branch has been updated by Iain D Sandoe
> <ia...@gcc.gnu.org>:
> 
> https://gcc.gnu.org/g:8b333df9484c1697f3a80530a47aa90b1859e970
> 
> commit r11-9147-g8b333df9484c1697f3a80530a47aa90b1859e970
> Author: Iain Sandoe <i...@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 <i...@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)

Did this fix it? (asking due to downstream issue
https://trac.macports.org/ticket/63312 in MacPorts, btw)

Reply via email to