Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/s390/stack-clash-2.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -march=z900 -fstack-clash-protection" } */ extern void bar (char *); void foo () { char * mem = __builtin_alloca (20000); bar (mem); } /* For alloca a common code routine emits the probes. Make sure the "probe_stack" expander is used in that case. We want to use mem compares instead of stores. */ /* { dg-final { scan-assembler-times "cg\t" 5 { target lp64 } } } */ /* { dg-final { scan-assembler-times "c\t" 5 { target { ! lp64 } } } } */