OpenCores
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/] [opt-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fPIC" } */
3
/* { dg-options "-O2 -fPIC -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
4
/* { dg-require-effective-target tls_native } */
5
/* { dg-require-effective-target fpic } */
6
 
7
extern __thread int thr;
8
 
9
static int x;
10
 
11
static void
12
bar (void)
13
{
14
  x = 1;
15
}
16
 
17
static void
18
#ifdef __i386__
19
__attribute__ ((regparm (3)))
20
#endif
21
foo (const char *x, void *y, int *z)
22
{
23
  bar ();
24
}
25
 
26
void
27
test (const char *x, void *y)
28
{
29
  foo (x, y, &thr);
30
}

powered by: WebSVN 2.1.0

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