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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
__inline __attribute__ ((__always_inline__)) char *
4
strcpy (char *__dest, __const char *__src)
5
{
6
  return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1));
7
}
8
 
9
const char* get_attr(unsigned attr)
10
{
11
    static char tmp[256];
12
 
13
    strcpy(tmp, "");
14
    return tmp;
15
}

powered by: WebSVN 2.1.0

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