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] - Rev 689

Compare with Previous | Blame | View Log

/* { dg-do run { target *-wrs-vxworks } } */
/* { dg-require-effective-target tls } */
/* { dg-add-options tls } */
 
/* vxworks' TLS model requires no extra padding on the tls proxy
   objects.  */
 
__thread int i;
__thread int j;
 
extern int __tls__i;
extern int __tls__j;
 
int main ()
{
  int delta = ((char *)&__tls__j - (char *)&__tls__i);
 
  if (delta < 0)
    delta = -delta;
 
  return delta != 12;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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