warning for __atomic_compare_exchange_4

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jul 8 13:03:06 UTC 2014


Hello Joel,

see libatomic_i.h in the GCC sources:

/* All sized operations are implemented in hidden functions prefixed with
    "libat_".  These are either renamed or aliased to the expected prefix
    of "__atomic".  Some amount of renaming is required to avoid hiding or
    conflicting with the builtins of the same name, but this additional
    use of hidden symbols (where appropriate) avoids unnecessary PLT entries
    on relevant targets.  */

A proper fix would be to implement libatomic for SPARCv8.

On 2014-07-07 23:21, Joel Sherrill wrote:
>
> Hi
>
> Saw this today in a build log and couldn't find the prototype
> so I am hoping someone else can fix it.
>
> sparc-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I../../..
> -I../../../../cpukit/../../../sis/lib/include   -mcpu=cypress -O2 -g
> -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes
> -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
> libscorecpu_a-sparcv8-atomic.o -MD -MP -MF
> .deps/libscorecpu_a-sparcv8-atomic.Tpo -c -o
> libscorecpu_a-sparcv8-atomic.o `test -f 'sparcv8-atomic.c' || echo
> '../../../../../../../../rtems/c/src/../../cpukit/score/cpu/sparc/'`sparcv8-atomic.c
> mv -f .deps/libscorecpu_a-cpu_asm.Tpo .deps/libscorecpu_a-cpu_asm.Po
> ../../../../../../../../rtems/c/src/../../cpukit/score/cpu/sparc/sparcv8-atomic.c:106:6:
> warning: conflicting types for built-in function
> '__atomic_compare_exchange_4' [enabled by default]
>   bool __atomic_compare_exchange_4(
>


-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list