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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tls/] [opt-15.c] - Blame information for rev 753

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

Line No. Rev Author Line
1 689 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 } */
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.