projects
/
uebersetzerbau-ss10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gesamt: bugfix bei mehreren methodenaufrufen in einer Expr
[uebersetzerbau-ss10.git]
/
gesamt
/
chelper.c
diff --git
a/gesamt/chelper.c
b/gesamt/chelper.c
index 448b07b2d47e76cf5c8bd85a5fdf9f809cc94568..25362ddd00c331acfc075091fbc388a021ce2291 100644
(file)
--- a/
gesamt/chelper.c
+++ b/
gesamt/chelper.c
@@
-25,8
+25,8
@@
void func_header(char *s, int vars, int parms, int call)
need_stack = (vars || parms) && call;
if(need_stack) {
printf("\tpushq %%rbp\n"
- "\tmovq %%rsp, %%rbp\n"
,
- "\tsubq $%d, %%rsp\n", 8*(vars+parms));
+ "\tmovq %%rsp, %%rbp\n"
+ "\tsubq $%d, %%rsp\n", 8*(vars+parms
+2 /* fuer rax und r10*/
));
}
}