Skip to content

Commit

Permalink
arch_atomic.c:Provide __sync_synchronize when the compiler does not s…
Browse files Browse the repository at this point in the history
…upport it

Summary:
  Configuration/Tool: zp214xpa/nsh,CONFIG_ARM_TOOLCHAIN_GNU_EABI
2024-09-14 06:11:00
------------------------------------------------------------------------------------
  Cleaning...
  Configuring...
  Disabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
  Enabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
  Building NuttX...
arm-none-eabi-ld: /github/workspace/sources/nuttx/staging/libfs.a(fs_inoderemove.o): in function `inode_remove':
fs_inoderemove.c:(.text.inode_remove+0x94): undefined reference to `__sync_synchronize'
arm-none-eabi-ld: fs_inoderemove.c:(.text.inode_remove+0x9c): undefined reference to `__sync_synchronize'
make[1]: *** [Makefile:212: nuttx] Error 1
make: *** [tools/Unix.mk:548: nuttx] Error 2
make: Target 'all' not remade because of errors.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
  • Loading branch information
crafcat7 committed Sep 14, 2024
1 parent da4ee43 commit acadd16
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libs/libc/machine/arch_atomic.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,6 @@ SYNC_VAL_CMP_SWAP(8, uint64_t)

#endif /* __clang__ */

#ifdef __ghs__

/****************************************************************************
* Name: __sync_synchronize
****************************************************************************/
Expand All @@ -765,5 +763,3 @@ void weak_function __sync_synchronize(void)
{
asm volatile("" ::: "memory");
}

#endif

0 comments on commit acadd16

Please sign in to comment.