summaryrefslogtreecommitdiff
path: root/bcc/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'bcc/table.c')
-rw-r--r--bcc/table.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bcc/table.c b/bcc/table.c
index 79dcf62..fc7d3a1 100644
--- a/bcc/table.c
+++ b/bcc/table.c
@@ -400,6 +400,13 @@ PUBLIC void dumplocs()
register struct symstruct *symptr;
int i;
+#ifdef ASM_USES_CALLEE_REGS
+ if (framep && optimise && !callersaves) {
+ regfuse |= callee1mask;
+ outnstr("! Assuming #asm uses all callee saves registers");
+ }
+#endif
+
for (i = 0; i < HASHTABSIZE; ++i)
for (symptr = hashtab[i]; symptr != NULL; symptr = symptr->next)
if (symptr->storage == LOCAL)