This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH v2] [RTEMS] Always use atomic builtins for libstdc++
- From: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- To: Andreas Schwab <schwab at suse dot de>,Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Cc: gcc-patches at gcc dot gnu dot org,libstdc++ at gcc dot gnu dot org,devel at rtems dot org
- Date: Thu, 22 Sep 2016 21:02:43 +0200
- Subject: Re: [PATCH v2] [RTEMS] Always use atomic builtins for libstdc++
- Authentication-results: sourceware.org; auth=none
- References: <1474534063-8867-1-git-send-email-sebastian.huber@embedded-brains.de> <mvm60po5mep.fsf@hawking.suse.de>
On 22 September 2016 11:11:42 CEST, Andreas Schwab <schwab@suse.de> wrote:
>On Sep 22 2016, Sebastian Huber <sebastian.huber@embedded-brains.de>
>wrote:
>
>> diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
>> index 6d897be..d7db435 100644
>> --- a/libstdc++-v3/acinclude.m4
>> +++ b/libstdc++-v3/acinclude.m4
>> @@ -3490,9 +3490,10 @@ EOF
>> AC_LANG_RESTORE
>>
>> # Set atomicity_dir to builtins if all but the long long test
>above passes.
>> - if test "$glibcxx_cv_atomic_bool" = yes \
>> + if { test "$glibcxx_cv_atomic_bool" = yes \
>> && test "$glibcxx_cv_atomic_short" = yes \
>> - && test "$glibcxx_cv_atomic_int" = yes; then
>> + && test "$glibcxx_cv_atomic_int" = yes } \
>
>You need a semicolon (or newline) before }.
Please remind me why you need curly braces at all?
thanks