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

            Bug ID: 106807
           Summary: RISC-V: libatomic routines are infinate loops
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: palmer at gcc dot gnu.org
  Target Milestone: ---

We've started compiling some libatomic routines to infinite loops, for example
testsuite/gcc.dg/atomic/stdatomic-load-1.c ends up with

00000000000107ce <__atomic_fetch_add_1>:
   107ce:       4615                    li      a2,5
   107d0:       bffd                    j       107ce <__atomic_fetch_add_1>

This results in a bunch of test suite failures.

Reply via email to