projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2810cf2
)
Correct asm_test4.c, it only worked by pure chance on gcc.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 21 Aug 2008 13:41:34 +0000
(13:41 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 21 Aug 2008 13:41:34 +0000
(13:41 +0000)
[r21317]
ir/be/test/asm_test4.c
patch
|
blob
|
history
diff --git
a/ir/be/test/asm_test4.c
b/ir/be/test/asm_test4.c
index
7fe8c43
..
d93f1c0
100644
(file)
--- a/
ir/be/test/asm_test4.c
+++ b/
ir/be/test/asm_test4.c
@@
-1,7
+1,8
@@
-
unsigned long get_sp(void)
{
unsigned long get_sp(void)
{
- __asm__(" movl %esp,%eax ");
+ unsigned long esp;
+ __asm__("movl %%esp, %0" : "=mr" (esp));
+ return esp;
}
int main(void) {
}
int main(void) {