URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tls/] [pic-1.c] - Rev 404
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-require-effective-target fpic } */ /* { dg-options "-O2 -fpic -ftls-model=global-dynamic" } */ /* { dg-require-effective-target tls } */ extern __thread long e1; extern __thread int e2; static __thread long s1; static __thread int s2; long *ae1 (void) { return &e1; } int *ae2 (void) { return &e2; } long *as1 (void) { return &s1; } int *as2 (void) { return &s2; } long ge1 (void) { return e1; } int ge2 (void) { return e2; } long gs1 (void) { return s1; } int gs2 (void) { return s2; } long ge3 (void) { return e1 + e2; } long gs3 (void) { return s1 + s2; } long ge4 (void) { if (0) return e1; return e2; } long gs4 (void) { if (0) return s1; return s2; }
Go to most recent revision | Compare with Previous | Blame | View Log