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

Torbjorn SVENSSON <azoff at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|i?86-*-solaris2.11          |i?86-*-solaris2.11 arm
             Status|RESOLVED                    |REOPENED
                 CC|                            |azoff at gcc dot gnu.org
         Resolution|FIXED                       |---

--- Comment #14 from Torbjorn SVENSSON <azoff at gcc dot gnu.org> ---
Still failing for all thumb2 Cortex-M targets in arm-none-eabi.

Testing cons/zero_padding.cc,  -std=gnu++20
extra_tool_flags are:  -std=gnu++20
doing compile
Executing on host: arm-none-eabi-g++ -fmessage-length=0 -fno-show-column  -g
-O2 -DLOCALEDIR="." -I/build/gcc_src/libstdc++-v3/testsuite/util 
/build/gcc_src_16/libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc
  -mthumb -march=armv7-m -mcpu=cortex-m3 -mfloat-abi=soft   -std=gnu++20  
-fdiagnostics-plain-output -Wabi=20 ./libtestc++.a --specs=rdimon.specs -o
./zero_padding.exe    (timeout = 360)
spawn -ignore SIGHUP arm-none-eabi-g++ -fmessage-length=0 -fno-show-column  -g
-O2 -DLOCALEDIR="." -I/build/gcc_src/libstdc++-v3/testsuite/util 
/build/gcc_src_16/libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc
  -mthumb -march=armv7-m -mcpu=cortex-m3 -mfloat-abi=soft   -std=gnu++20  
-fdiagnostics-plain-output -Wabi=20 ./libtestc++.a --specs=rdimon.specs -o
./zero_padding.exe
pid is 3147608 -3147608
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld: /tmp/ccKLXb1n.o: in
function `bool std::__atomic_impl::__compare_exchange<false,
TailPadding>(TailPadding&, std::remove_volatile<TailPadding>::type&,
std::remove_volatile<TailPadding>::type&, bool, std::memory_order,
std::memory_order)':
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_]+0x54):
undefined reference to `__atomic_compare_exchange_8'
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_]+0x54):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_]+0x96):
undefined reference to `__atomic_compare_exchange_8'
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_]+0x96):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_]+0xe0):
undefined reference to `__atomic_compare_exchange_8'
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_]+0xe0):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_]+0x12c):
undefined reference to `__atomic_compare_exchange_8'
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_]+0x12c):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_]+0x17c):
undefined reference to `__atomic_compare_exchange_8'
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI11TailPaddingEvRSt6atomicIT_ERKS2_]+0x17c):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
/tmp/ccKLXb1n.o:/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:
more undefined references to `__atomic_compare_exchange_8' follow
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/tmp/ccKLXb1n.o: in function `bool
std::__atomic_impl::__compare_exchange<false, MidPadding>(MidPadding&,
std::remove_volatile<MidPadding>::type&,
std::remove_volatile<MidPadding>::type&, bool, std::memory_order,
std::memory_order)':
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI10MidPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI10MidPaddingEvRSt6atomicIT_ERKS2_]+0x54):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI10MidPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI10MidPaddingEvRSt6atomicIT_ERKS2_]+0x96):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI10MidPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI10MidPaddingEvRSt6atomicIT_ERKS2_]+0xe0):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI10MidPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI10MidPaddingEvRSt6atomicIT_ERKS2_]+0x12c):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI10MidPaddingEvRSt6atomicIT_ERKS2_[_Z11test_structI10MidPaddingEvRSt6atomicIT_ERKS2_]+0x17c):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/tmp/ccKLXb1n.o: in function `bool
std::__atomic_impl::__compare_exchange<false, Ctor>(Ctor&,
std::remove_volatile<Ctor>::type&, std::remove_volatile<Ctor>::type&, bool,
std::memory_order, std::memory_order)':
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI4CtorEvRSt6atomicIT_ERKS2_[_Z11test_structI4CtorEvRSt6atomicIT_ERKS2_]+0x54):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI4CtorEvRSt6atomicIT_ERKS2_[_Z11test_structI4CtorEvRSt6atomicIT_ERKS2_]+0x96):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI4CtorEvRSt6atomicIT_ERKS2_[_Z11test_structI4CtorEvRSt6atomicIT_ERKS2_]+0xe0):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI4CtorEvRSt6atomicIT_ERKS2_[_Z11test_structI4CtorEvRSt6atomicIT_ERKS2_]+0x12c):
dangerous relocation: unsupported relocation
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/bin/ld:
(__atomic_compare_exchange_8): Unknown destination type (ARM/Thumb) in
/tmp/ccKLXb1n.o
/build/r16-7849-g1f9879e17466f5/arm-none-eabi/include/c++/16.0.1/bits/atomic_base.h:1071:(.text._Z11test_structI4CtorEvRSt6atomicIT_ERKS2_[_Z11test_structI4CtorEvRSt6atomicIT_ERKS2_]+0x17c):
dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
pid is -1
close result is 6360 exp6 0 1
...
FAIL: 29_atomics/atomic/cons/zero_padding.cc  -std=gnu++20 (test for excess
errors)
...
UNRESOLVED: 29_atomics/atomic/cons/zero_padding.cc  -std=gnu++20 compilation
failed to produce executable


Somehow, the check_v3_target_atomic_cmpxchg_word proc returns 1, but to my
knowledge, Cortex-M does not support atomic.

Reply via email to