URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tls/] [opt-15.c] - Rev 826
Compare with Previous | Blame | View Log
/* PR target/42564 */ /* This used to ICE on the SPARC because of an unrecognized TLS pattern. */ /* { dg-do compile } */ /* { dg-options "-O -fPIC" } */ /* { dg-require-effective-target tls_native } */ /* { dg-require-effective-target fpic } */ extern void *memset(void *s, int c, __SIZE_TYPE__ n); struct S1 { int i; }; struct S2 { int ver; struct S1 s; }; static __thread struct S2 m; void init(void) { memset(&m.s, 0, sizeof(m.s)); }