Back to index

glibc  2.9
Defines | Functions
tst-tlsmod17a.c File Reference
#include <stdio.h>

Go to the source code of this file.

Defines

#define N   0
#define CONCAT1(s, n)   s##n
#define CONCAT(s, n)   CONCAT1(s, n)

Functions

__thread int CONCAT (v, N)
int CONCAT (tlsmod17a, N)

Define Documentation

#define CONCAT (   s,
  n 
)    CONCAT1(s, n)

Definition at line 7 of file tst-tlsmod17a.c.

#define CONCAT1 (   s,
  n 
)    s##n

Definition at line 6 of file tst-tlsmod17a.c.

#define N   0

Definition at line 4 of file tst-tlsmod17a.c.


Function Documentation

__thread int CONCAT ( ,
N   
)
int CONCAT ( tlsmod17a  ,
N   
)

Definition at line 12 of file tst-tlsmod17a.c.

{
  int *p = &CONCAT (v, N);
  /* GCC assumes &var is never NULL, add optimization barrier.  */
  asm volatile ("" : "+r" (p));
  if (p == NULL || *p != 4)
    {
      printf ("fail %d %p\n", N, p);
      return 1;
    }
  return 0;
}

Here is the call graph for this function: