From: Segher Boessenkool Date: Wed, 18 Jan 2017 01:05:50 +0000 (+0100) Subject: Check in gcc/testsuite/gcc.target/powerpc/ssp-[12].c (I forgot "svn add" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4cc0208ac8f44e826c983ec89c6ffbc4f4facc7a;p=gcc.git Check in gcc/testsuite/gcc.target/powerpc/ssp-[12].c (I forgot "svn add" once again). From-SVN: r244562 --- diff --git a/gcc/testsuite/gcc.target/powerpc/ssp-1.c b/gcc/testsuite/gcc.target/powerpc/ssp-1.c new file mode 100644 index 00000000000..018f6902836 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/ssp-1.c @@ -0,0 +1,6 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fstack-protector-all -mstack-protector-guard=global" } */ + +/* { dg-final { scan-assembler "__stack_chk_guard" } } */ + +void f(void) { } diff --git a/gcc/testsuite/gcc.target/powerpc/ssp-2.c b/gcc/testsuite/gcc.target/powerpc/ssp-2.c new file mode 100644 index 00000000000..6fa91f69a37 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/ssp-2.c @@ -0,0 +1,6 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fstack-protector-all -mstack-protector-guard=tls -mstack-protector-guard-reg=r18 -mstack-protector-guard-offset=0x3038" } */ + +/* { dg-final { scan-assembler {\m12344\(r?18\)} } } */ + +void f(void) { }