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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:0411ae7f08e0f5a8b02ff313d26d27a0f6d1bb34

commit r11-6709-g0411ae7f08e0f5a8b02ff313d26d27a0f6d1bb34
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Jan 15 13:12:59 2021 +0100

    libatomic, libgomp, libitc: Fix bootstrap [PR70454]

    The recent changes to error on mixing -march=i386 and -fcf-protection broke
    bootstrap.  This patch changes lib{atomic,gomp,itm} configury, so that it
    only adds -march=i486 to flags if really needed (i.e. when 486 or later
isn't
    on by default already).  Similarly, it will not use ifuncs if -mcx16
    (or -march=i686 for 32-bit) is on by default.

    2021-01-15  Jakub Jelinek  <ja...@redhat.com>

            PR target/70454
    libatomic/
            * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs
to
            be added through preprocessor check on
            __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.  Determine if try_ifunc is
needed
            based on preprocessor check on __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16
            or __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8.
    libgomp/
            * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs
to
            be added through preprocessor check on
            __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
    libitm/
            * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs
to
            be added through preprocessor check on
            __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.

Reply via email to