repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arc
/
pr9001184797.c
blob
e76c6769042f4089473be3a55b96d0ea38ccacc5
1
/* { dg-do compile } */
2
/* { dg-require-effective-target tls } */
3
/* { dg-options "-Os -w -mno-ll64" } */
4
5
/* This test studies the use of anchors and tls symbols. */
6
7
struct
a b
;
8
struct
a
{
9
long
c
;
10
long
d
11
}
e
() {
12
static
__thread
struct
a f
;
13
static
__thread g
;
14
g
=
5
;
15
h
();
16
if
(
f
.
c
)
17
g
=
g
&
5
;
18
f
=
b
;
19
}