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

--- Comment #18 from Aurelien Jarno <aurelien at aurel32 dot net> ---
Thanks Patrick for working on that and for the backport to the gcc-13 branch. I
wonder if the following patch should also be backported, as it doesn't make
sense to link with -latomic anymore with inline subword atomic operations:

commit 203f3060dd363361b172f7295f42bb6bf5ac0b3b
Author: Andreas Schwab <sch...@suse.de>
Date:   Sat Apr 23 15:48:42 2022 +0200

    riscv/linux: Don't add -latomic with -pthread

    Now that we have support for inline subword atomic operations, it is no
    longer necessary to link against libatomic.  This also fixes testsuite
    failures because the framework does not properly set up the linker flags
    for finding libatomic.
    The use of atomic operations is also independent of the use of libpthread.

    gcc/
            * config/riscv/linux.h (LIB_SPEC): Don't redefine.

Reply via email to