From: Richard Henderson Date: Sun, 27 Nov 2011 00:20:48 +0000 (-0800) Subject: arm: Install __sync libfuncs for Linux. X-Git-Tag: releases/gcc-4.7.0~1935 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=380af8096daaabbdfc0d112f02f62814a670e524;p=thirdparty%2Fgcc.git arm: Install __sync libfuncs for Linux. * config/arm/arm.c (arm_init_libfuncs): Call init_sync_libfuncs for Linux. From-SVN: r181755 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c16f1d8db583..5a6b5d33733e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-11-26 Richard Henderson + + * config/arm/arm.c (arm_init_libfuncs): Call init_sync_libfuncs + for Linux. + 2011-11-26 Richard Henderson * optabs.c (expand_atomic_fetch_op): Always return result. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index e3b0b883ec81..ee26c51b0a0c 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -1096,6 +1096,10 @@ arm_set_fixed_conv_libfunc (convert_optab optable, enum machine_mode to, static void arm_init_libfuncs (void) { + /* For Linux, we have access to kernel support for atomic operations. */ + if (arm_abi == ARM_ABI_AAPCS_LINUX) + init_sync_libfuncs (2 * UNITS_PER_WORD); + /* There are no special library functions unless we are using the ARM BPABI. */ if (!TARGET_BPABI)