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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pic-1.c
blob
bc11de90b41115cff210328fef0118b810dc3dab
1
/* PR target/8340 */
2
/* { dg-do compile } */
3
/* { dg-require-effective-target ilp32 } */
4
/* { dg-require-effective-target fpic } */
5
/* { dg-options "-fPIC" } */
6
7
int
foo
()
8
{
9
static int
a
;
10
11
__asm__
__volatile__
(
/* { dg-error "PIC register" } */
12
"xorl %%ebx, %%ebx
\n
"
13
"movl %%ebx, %0
\n
"
14
:
"=m"
(
a
)
15
:
16
:
"%ebx"
17
);
18
19
return
a
;
20
}