summaryrefslogtreecommitdiff
path: root/gcc/flow.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/flow.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/flow.c')
-rw-r--r--gcc/flow.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 023fb1c8350..c146310cb0a 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -2468,7 +2468,9 @@ mark_set_regs (struct propagate_block_info *pbi, rtx x, rtx insn)
{
int i;
- for (i = XVECLEN (x, 0) - 1; i >= 0; i--)
+ /* We must scan forwards. If we have an asm, we need to set
+ the PROP_ASM_SCAN flag before scanning the clobbers. */
+ for (i = 0; i < XVECLEN (x, 0); i++)
{
rtx sub = XVECEXP (x, 0, i);
switch (code = GET_CODE (sub))
@@ -2495,6 +2497,10 @@ mark_set_regs (struct propagate_block_info *pbi, rtx x, rtx insn)
mark_set_1 (pbi, code, SET_DEST (sub), cond, insn, flags);
break;
+ case ASM_OPERANDS:
+ flags |= PROP_ASM_SCAN;
+ break;
+
default:
break;
}