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

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |tkaminsk at gcc dot 
gnu.org
         Resolution|---                         |FIXED
             Status|WAITING                     |RESOLVED

--- Comment #7 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Thanks, that issue is now resolved:

    [-FAIL:-]{+PASS:+} 29_atomics/atomic_ref/deduction.cc  -std=gnu++20 (test
for excess errors)
    [-FAIL:-]{+PASS:+} 29_atomics/atomic_ref/deduction.cc  -std=gnu++26 (test
for excess errors)

    [-FAIL:-]{+PASS:+} 29_atomics/atomic_ref/op_support.cc  -std=gnu++20 (test
for excess errors)
    [-FAIL:-]{+PASS:+} 29_atomics/atomic_ref/op_support.cc  -std=gnu++26 (test
for excess errors)

    [-FAIL:-]{+PASS:+} 29_atomics/atomic_ref/requirements.cc  -std=gnu++20
(test for excess errors)
    [-FAIL:-]{+PASS:+} 29_atomics/atomic_ref/requirements.cc  -std=gnu++26
(test for excess errors)

We've still got:

    FAIL: 29_atomics/atomic_ref/bool.cc  -std=gnu++20 (test for excess errors)
    UNRESOLVED: 29_atomics/atomic_ref/bool.cc  -std=gnu++20 compilation failed
to produce executable
    FAIL: 29_atomics/atomic_ref/bool.cc  -std=gnu++26 (test for excess errors)
    UNRESOLVED: 29_atomics/atomic_ref/bool.cc  -std=gnu++26 compilation failed
to produce executable

..., but that's now no longer due to issue reported here, but instead:

    ld: error: undefined symbol: __atomic_exchange_1
    >>> referenced by atomic_base.h:1109
([...]/build-gcc/amdgcn-amdhsa/libstdc++-v3/include/bits/atomic_base.h:1109)
    >>>               /tmp/ccqSwWVt.o:(test01())
    [...]
    collect2: error: ld returned 1 exit status

... for GCN, and for nvptx:

    unresolved symbol __atomic_compare_exchange_1
    collect2: error: ld returned 1 exit status

I shall look into that, later (we've got other similar ones, elsewhere); see
also:

(In reply to Tomasz KamiƄski from comment #1)
> [...], it is expected taht there are no atomic operations on
> bool on this architecture?

For nvptx, I assume explicit '-latomic' would address this -- but we don't
build libatomic for GCN.  ..., and generally: I don't think it's good to do an
actual libatomic function call for this?  Either way: that's out-of-scope for
this PR here.

Reply via email to