OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr23848-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* 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"} } */
32
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.