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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR rtl-optimization/36998 */
2
/* { dg-do compile } */
3
/* { dg-options "-Os -fasynchronous-unwind-tables" } */
4
/* { dg-options "-Os -mpreferred-stack-boundary=2 -fasynchronous-unwind-tables" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
5
/* { dg-options "-fno-omit-frame-pointer" { target { avr-*-* } } } */
6
 
7
void foo (const char *, ...) __attribute__ ((noreturn));
8
int bar (const char *, ...);
9
extern __SIZE_TYPE__ strlen (const char *);
10
int baz (char *, char *, int, void *);
11
 
12
void
13
test (char *w, int x, char *y, char *z)
14
{
15
  char *p, b[32];
16
  for (p = y; *p; p += strlen (p) + 1)
17
    {
18
      baz (w, p, x, z);
19
      foo ("msg1 %s", b);
20
    }
21
  for (p = y; *p; p += strlen (p) + 1)
22
    bar (" %s", p);
23
  foo ("msg2 %s", b);
24
}

powered by: WebSVN 2.1.0

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