]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config.in
Darwin, X86, config: Adjust 'as' command lines [PR100340].
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 31 Jul 2021 15:29:03 +0000 (16:29 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 17 Aug 2021 18:38:05 +0000 (19:38 +0100)
commit743b8dd6fd757e997eb060d70fd4ae8e04fb56cd
tree6ec35e1b496cdc662e14dfc12f786bccace8e46d
parente7e17be3be3d43640a9a4a33d59315dec69fdda4
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.
gcc/config.in
gcc/config/i386/darwin.h
gcc/configure
gcc/configure.ac