Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c

raw
1 /* PR middle-end/23848 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4
5 void bar1 (char *, int);
6 void foo1 (int size)
7 {
8 char temp[size];
9 temp[size-1] = '\0';
10 bar1 (temp, size);
11 }
12
13 void bar2 (char *, char *, char *, char *, int);
14 void foo2 (int size)
15 {
16 char temp[size];
17 temp[size-1] = '\0';
18 {
19 char temp2[size];
20 {
21 char temp3[size];
22 {
23 char temp4[size];
24 bar2 (temp, temp2, temp3, temp4, size);
25 }
26 }
27 }
28 }
29
30 /* { dg-final { scan-tree-dump-not "__builtin_stack_save" "optimized"} } */
31 /* { dg-final { scan-tree-dump-not "__builtin_stack_restore" "optimized"} } */