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/] [tls/] [opt-15.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR target/42564 */
2
/* This used to ICE on the SPARC because of an unrecognized TLS pattern.  */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "-O -fPIC" } */
6
/* { dg-require-effective-target tls_native } */
7
/* { dg-require-effective-target fpic } */
8
 
9
extern void *memset(void *s, int c, __SIZE_TYPE__ n);
10
 
11
struct S1 { int i; };
12
 
13
struct S2
14
{
15
  int ver;
16
  struct S1 s;
17
};
18
 
19
static __thread struct S2 m;
20
 
21
void init(void)
22
{
23
  memset(&m.s, 0, sizeof(m.s));
24
}

powered by: WebSVN 2.1.0

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