Message ID | CAJK_mQ28gbxAC__6pE0LRqBQtZMzsrkg74z7cP0+hG_e+OR1Jg@mail.gmail.com |
---|---|
State | New |
Headers | show |
On 19 March 2014 17:18, Venkataramanan Kumar <venkataramanan.kumar@linaro.org> wrote: > I used the existing dg-require-effective-target check, > "stack_protector" and added it in a separate line. > > ChangeLog. > > 2014-03-19 Venkataramanan Kumar <venkataramanan.kumar@linaro.org> > * g++.dg/fstack-protector-strong.C: Add effetive target check for > stack protection. > * gcc.dg/fstack-protector-strong.c: Likewise. > > These two tests are passing now for aarch64-none-linux-gnu target under QEMU. Venkat, I think this change is reasonable (for stage-1) but I'd like one of the testsuite maintainers to ACK the change. Cheers /Marcus
Index: gcc/testsuite/g++.dg/fstack-protector-strong.C =================================================================== --- gcc/testsuite/g++.dg/fstack-protector-strong.C (revision 208609) +++ gcc/testsuite/g++.dg/fstack-protector-strong.C (working copy) @@ -1,7 +1,8 @@ /* Test that stack protection is done on chosen functions. */ -/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fstack-protector-strong" } */ +/* { dg-require-effective-target fstack_protector } */ class A { Index: gcc/testsuite/gcc.dg/fstack-protector-strong.c =================================================================== --- gcc/testsuite/gcc.dg/fstack-protector-strong.c (revision 208609) +++ gcc/testsuite/gcc.dg/fstack-protector-strong.c (working copy) @@ -1,7 +1,8 @@ /* Test that stack protection is done on chosen functions. */ -/* { dg-do compile { target i?86-*-* x86_64-*-* rs6000-*-* s390x-*-* } } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fstack-protector-strong" } */ +/* { dg-require-effective-target fstack_protector } */ #include<string.h>