Thanks, Chung-Lin. This fixes the problem for RTEMS. The TLS support works also.

On 16/11/16 10:53, Chung-Lin Tang wrote:
This patch adjusts the initialization of __sync built-in functions:
instead of conditionalizing on TARGET_LINUX_ABI, directly place the
target-hook #define in config/nios2/linux.h.  This appears to be in line
with other similar ports, e.g. m68k.

Sebastian, this should solve your issue of not wanting __sync_* libcalls
generated on RTEMS (which also uses TARGET_LINUX_ABI due to TLS support),
can you verify it works for you?

Chung-Lin

        PR target/78357
        * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
        condition.
        (TARGET_INIT_LIBFUNCS): Delete definition and...
        * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
        comments.

--
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.hu...@embedded-brains.de
PGP     : Public key available on request.

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

Reply via email to