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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr41762.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR target/41762 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -ftracer -fsched2-use-superblocks" } */
4
/* { dg-options "-O2 -ftracer -fsched2-use-superblocks -fpic" { target fpic } } */
5
 
6
extern __SIZE_TYPE__ strlen (const char *);
7
extern int f1 (void *);
8
extern char *f2 (void);
9
extern void f3 (int, int);
10
static char *a;
11
char *b, *c, *d, *e;
12
 
13
void
14
foo (void)
15
{
16
  int f, g, h;
17
  f = (a ? strlen (a) : strlen ("abcde"));
18
  f += (b ? strlen (b) : 0);
19
  f += (c ? strlen (c) : 0);
20
  f += (d ? strlen (d) : 0);
21
  f += (e ? strlen (e) : 0);
22
  h = f1 (strlen);
23
  g = strlen (a);
24
  f3 (g, f);
25
}
26
 
27
void
28
bar (void)
29
{
30
  a = f2 ();
31
}

powered by: WebSVN 2.1.0

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