svn commit: r251784 - head/lib/libcompiler_rt

Ed Schouten ed at FreeBSD.org
Sat Jun 15 09:04:11 UTC 2013


Author: ed
Date: Sat Jun 15 09:04:10 2013
New Revision: 251784
URL: http://svnweb.freebsd.org/changeset/base/251784

Log:
  Let ARM use the custom tailored atomic intrinsics.

Deleted:
  head/lib/libcompiler_rt/__sync_fetch_and_add_4.c
  head/lib/libcompiler_rt/__sync_fetch_and_and_4.c
  head/lib/libcompiler_rt/__sync_fetch_and_op_n.h
  head/lib/libcompiler_rt/__sync_fetch_and_or_4.c
  head/lib/libcompiler_rt/__sync_fetch_and_sub_4.c
  head/lib/libcompiler_rt/__sync_fetch_and_xor_4.c
  head/lib/libcompiler_rt/__sync_lock_test_and_set_4.c
  head/lib/libcompiler_rt/__sync_synchronize.c
  head/lib/libcompiler_rt/__sync_val_compare_and_swap_4.c
  head/lib/libcompiler_rt/__sync_val_compare_and_swap_n.h
Modified:
  head/lib/libcompiler_rt/Makefile

Modified: head/lib/libcompiler_rt/Makefile
==============================================================================
--- head/lib/libcompiler_rt/Makefile	Sat Jun 15 08:23:53 2013	(r251783)
+++ head/lib/libcompiler_rt/Makefile	Sat Jun 15 09:04:10 2013	(r251784)
@@ -158,14 +158,9 @@ SRCF+=	divsi3 \
 
 # FreeBSD-specific atomic intrinsics.
 .if ${MACHINE_CPUARCH} == "arm"
-SRCF+=	__sync_fetch_and_add_4 \
-	__sync_fetch_and_and_4 \
-	__sync_fetch_and_or_4 \
-	__sync_fetch_and_sub_4 \
-	__sync_fetch_and_xor_4 \
-	__sync_lock_test_and_set_4 \
-	__sync_synchronize \
-	__sync_val_compare_and_swap_4
+.PATH: ${.CURDIR}/../../sys/arm/arm
+
+SRCF+=	stdatomic
 .elif ${MACHINE_CPUARCH} == "mips"
 .PATH: ${.CURDIR}/../../sys/mips/mips
 


More information about the svn-src-head mailing list