diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-20 02:39:43 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-20 02:39:43 +0000 |
commit | 72ab13a3121bd2d02461aca32c04049faa85dc1a (patch) | |
tree | efcdb3a3200c268a6543afc46e842ac9d31ecbed /gcc/global.c | |
parent | 7f24deda224f1e241b9988b0d93eba6bcfc33e72 (diff) | |
download | gcc-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.c | 6 |
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 |