This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] correct atomic_compare_exchange_n return type (c++/71675)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]