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
This commit was manufactured by cvs2svn to create branch
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
i386-pic-1.c
blob
8fa2caf67f7f5cee90b0e7e06659b86594cb8381
1
/* PR target/8340 */
2
/* { dg-do compile { target i?86-*-* } } */
3
/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
4
/* { dg-options "-fPIC" } */
5
6
int
foo
()
7
{
8
static int
a
;
9
10
__asm__
__volatile__
(
/* { dg-error "PIC register" } */
11
"xorl %%ebx, %%ebx
\n
"
12
"movl %%ebx, %0
\n
"
13
:
"=m"
(
a
)
14
:
15
:
"%ebx"
16
);
17
18
return
a
;
19
}