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

            Bug ID: 125264
           Summary: FAIL: gcc.dg/torture/bitint-95.c   -O0  (test for
                    excess errors)
           Product: gcc
           Version: 16.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: azoff at gcc dot gnu.org
  Target Milestone: ---

In r16-8828-ge33201aa19c9e4 and r17-67-gdcaa624319dc58, the
gcc.dg/torture/bitint-95.c was added.
For arm-none-eabi, the new test fails for Cortex-M0:
For other Cortex-M, there does not appear to be any call to any
__atomic_fetch_* functions, hence they PASS.

Testing torture/bitint-95.c,   -O0
doing compile
Executing on host: /build/r17-409-g8376a674e3564f/bin/arm-none-eabi-gcc 
/build/gcc_src/gcc/testsuite/gcc.dg/torture/bitint-95.c  -mthumb
-march=armv6s-m -mtune=cortex-m0 -mfloat-abi=soft -mfpu=auto   -dumpbase ""
-fdiagnostics-plain-output    -O0        --specs=rdimon.specs -Wl,--start-group
-lc -lm -Wl,--end-group --specs=nosys.specs -Wl,--allow-multiple-definition
-Wl,-u,_isatty,-u,_fstat  -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main
-Wl,-wrap,abort -Wl,gcc_tg.o -lm -T atollic.ld -o ./bitint-95.exe    (timeout =
800)
spawn -ignore SIGHUP /build/r17-409-g8376a674e3564f/bin/arm-none-eabi-gcc
/build/gcc_src/gcc/testsuite/gcc.dg/torture/bitint-95.c -mthumb -march=armv6s-m
-mtune=cortex-m0 -mfloat-abi=soft -mfpu=auto -dumpbase 
-fdiagnostics-plain-output -O0 --specs=rdimon.specs -Wl,--start-group -lc -lm
-Wl,--end-group --specs=nosys.specs -Wl,--allow-multiple-definition
-Wl,-u,_isatty,-u,_fstat -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main
-Wl,-wrap,abort -Wl,gcc_tg.o -lm -T atollic.ld -o ./bitint-95.exe
pid is 1521192 -1521192
/build/r17-409-g8376a674e3564f/arm-none-eabi/bin/ld: /tmp/ccSUFMbY.o: in
function `foo':
bitint-95.c:(.text+0xfc): undefined reference to `__atomic_fetch_sub_4'
/build/r17-409-g8376a674e3564f/arm-none-eabi/bin/ld: (__atomic_fetch_sub_4):
Unknown destination type (ARM/Thumb) in /tmp/ccSUFMbY.o
bitint-95.c:(.text+0xfc): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
pid is -1
close result is 1521192 exp5 0 1
output is /build/r17-409-g8376a674e3564f/arm-none-eabi/bin/ld: /tmp/ccSUFMbY.o:
in function `foo':
bitint-95.c:(.text+0xfc): undefined reference to `__atomic_fetch_sub_4'
/build/r17-409-g8376a674e3564f/arm-none-eabi/bin/ld: (__atomic_fetch_sub_4):
Unknown destination type (ARM/Thumb) in /tmp/ccSUFMbY.o
bitint-95.c:(.text+0xfc): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
 status 1
compiler exited with status 1
FAIL: gcc.dg/torture/bitint-95.c   -O0  (test for excess errors)
Excess errors:
bitint-95.c:(.text+0xfc): undefined reference to `__atomic_fetch_sub_4'
/build/r17-409-g8376a674e3564f/arm-none-eabi/bin/ld: (__atomic_fetch_sub_4):
Unknown destination type (ARM/Thumb) in /tmp/ccSUFMbY.o
bitint-95.c:(.text+0xfc): dangerous relocation: unsupported relocation

UNRESOLVED: gcc.dg/torture/bitint-95.c   -O0  compilation failed to produce
executable

Reply via email to