This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [cxx-mem-model 2/2] arm: Install __sync libfuncs for Linux.
On 23/11/11 23:37, Richard Henderson wrote:
> Ping 2.
>
> r~
>
> On 11/03/2011 04:24 PM, Richard Henderson wrote:
>> Cc: Richard Earnshaw <richard.earnshaw@arm.com>
>> ---
>> gcc/config/arm/arm.c | 4 ++++
>> 1 files changed, 4 insertions(+), 0 deletions(-)
>>
>> diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
>> index 5f0d562..9963faa 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 (8);
>> +
>> /* There are no special library functions unless we are using the
>> ARM BPABI. */
>> if (!TARGET_BPABI)
>
>
What's the '8' for? If it's the size of an object, then shouldn't this
really be something like GET_MODE_SIZE (DImode)?
Otherwise OK.
R.