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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tls/] [alias-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do link } */
2
/* { dg-require-alias "" } */
3
/* { dg-require-visibility "" } */
4
/* { dg-require-effective-target tls } */
5
/* Test that encode_section_info handles the change from externally
6
   defined to locally defined (via hidden).   Extracted from glibc.  */
7
 
8
struct __res_state {
9
        char x[123];
10
};
11
 
12
extern __thread struct __res_state bar
13
  __attribute__ ((tls_model ("initial-exec")));
14
 
15
int main()
16
{
17
  bar.x[0] = 0;
18
  return 0;
19
}
20
 
21
__thread struct __res_state foo;
22
extern __thread struct __res_state bar
23
  __attribute__ ((alias ("foo")))
24
  __attribute__ ((visibility ("hidden")));

powered by: WebSVN 2.1.0

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