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

Jeff Law law@redhat.com
Mon Jul 25 17:56:00 GMT 2016


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.

Jeff



More information about the Gcc-patches mailing list