This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] correct atomic_compare_exchange_n return type (c++/71675)
- From: Jason Merrill <jason at redhat dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: Renlin Li <renlin dot li at foss dot arm dot com>, Martin Sebor <msebor at gmail dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 25 Jul 2016 14:06:34 -0400
- Subject: Re: [PATCH] correct atomic_compare_exchange_n return type (c++/71675)
- Authentication-results: sourceware.org; auth=none
- References: <57729E11.9030405@gmail.com> <5795F200.7070901@foss.arm.com> <53f5b013-eb53-2f13-66d4-dd3bcd0c90e7@redhat.com>
On Mon, Jul 25, 2016 at 1:56 PM, Jeff Law <law@redhat.com> wrote:
> On 07/25/2016 05:03 AM, Renlin Li wrote:
>>
>> Hi Martin,
>>
>> I observed the following error:
>>
>> ERROR: gcc.dg/atomic/pr71675.c -O2 -flto -fuse-linker-plugin
>> -fno-fat-lto-objects : syntax error in target selector "target c11" for
>> " dg-do 3 compile { target c11 } "
>>
>> It seems we don't have a c11 effective target check available
>> in dejagnu target-supports.exp.
>
> ISTM like we should either add a c11 effective target check, or force the
> compiler into c11 mode via -std=c11.
I think the C testsuite also doesn't run in multiple modes like C++,
so adding -std=c11 is probably the better choice.
Jason