summaryrefslogtreecommitdiff
path: root/gcc/global.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-20 02:39:43 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-20 02:39:43 +0000
commit72ab13a3121bd2d02461aca32c04049faa85dc1a (patch)
treeefcdb3a3200c268a6543afc46e842ac9d31ecbed /gcc/global.c
parent7f24deda224f1e241b9988b0d93eba6bcfc33e72 (diff)
downloadgcc-72ab13a3121bd2d02461aca32c04049faa85dc1a.tar.gz
Patch for asm clobber of fp.
* flow.c (mark_set_regs, case PARALLEL): Scan loop forwards. Add case for ASM_OPERANDS. * global.c (global_alloc): Set regs_ever_live for regs_asm_clobbered registers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74869 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/global.c')
-rw-r--r--gcc/global.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/global.c b/gcc/global.c
index d19e87e5ed9..de765b36731 100644
--- a/gcc/global.c
+++ b/gcc/global.c
@@ -355,6 +355,8 @@ global_alloc (FILE *file)
else if (cannot_elim)
error ("%s cannot be used in asm here",
reg_names[eliminables[i].from]);
+ else
+ regs_ever_live[eliminables[i].from] = 1;
}
#if FRAME_POINTER_REGNUM != HARD_FRAME_POINTER_REGNUM
if (!regs_asm_clobbered[HARD_FRAME_POINTER_REGNUM])
@@ -366,6 +368,8 @@ global_alloc (FILE *file)
else if (need_fp)
error ("%s cannot be used in asm here",
reg_names[HARD_FRAME_POINTER_REGNUM]);
+ else
+ regs_ever_live[HARD_FRAME_POINTER_REGNUM] = 1;
#endif
#else
@@ -377,6 +381,8 @@ global_alloc (FILE *file)
}
else if (need_fp)
error ("%s cannot be used in asm here", reg_names[FRAME_POINTER_REGNUM]);
+ else
+ regs_ever_live[FRAME_POINTER_REGNUM] = 1;
#endif
/* Track which registers have already been used. Start with registers