]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Wed, 13 Oct 2021 19:59:03 +0000 (20:59 +0100)
commit8b333df9484c1697f3a80530a47aa90b1859e970
tree8d1503b0651fb679c527c8d0f23c2ad78d715abf
parentb707ac10d5a9af6d77fd21d9d7996bdd0264d28e
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)
gcc/config.in
gcc/config/i386/darwin.h
gcc/configure
gcc/configure.ac