[Bug middle-end/101996] libatomic: RISC-V 64: Infinite recursion in __atomic_compare_exchange_1

bqq3z3afgj at bcco4 dot anonbox.net gcc-bugzilla@gcc.gnu.org
Sun Aug 29 14:55:08 GMT 2021


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

Alpine User <bqq3z3afgj at bcco4 dot anonbox.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #7 from Alpine User <bqq3z3afgj at bcco4 dot anonbox.net> ---
Sorry for not updating this. Yes, this is indeed a bug caused by the fact that
Alpine's RISC-V GCC links against libatomic by default. See
https://gitlab.alpinelinux.org/alpine/aports/-/issues/12948 for the downstream
discussion. What seems to help is running the libatomic configure script as
`gcc_no_link=yes ./configure`. I think this bug report can be closed in the
meantime as this is not an upstream GCC bug.


More information about the Gcc-bugs mailing list