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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tls/] [emutls-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run { target *-wrs-vxworks } } */
2
/* { dg-require-effective-target tls } */
3
/* { dg-add-options tls } */
4
 
5
/* vxworks' TLS model requires no extra padding on the tls proxy
6
   objects.  */
7
 
8
__thread int i;
9
__thread int j;
10
 
11
extern int __tls__i;
12
extern int __tls__j;
13
 
14
int main ()
15
{
16
  int delta = ((char *)&__tls__j - (char *)&__tls__i);
17
 
18
  if (delta < 0)
19
    delta = -delta;
20
 
21
  return delta != 12;
22
}

powered by: WebSVN 2.1.0

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