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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20071207-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR tree-optimization/34371 */
2
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
3
 
4
void centerln (int width, int ch, char *s)
5
{
6
  unsigned int sidebar;
7
  int i;
8
  char linet1[1000];
9
  char linet2[100];
10
  sidebar = (width - __builtin_strlen (s)) / 2;
11
  for (i = 0; i < sidebar; i++)
12
    linet2[i] = ch;
13
  __builtin_strcpy (linet1, linet2);
14
}

powered by: WebSVN 2.1.0

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