On Mon, Jul 25, 2016 at 1:56 PM, Jeff Law <l...@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