diff options
author | James E Wilson <wilson@specifixinc.com> | 2003-12-20 02:39:43 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2003-12-19 18:39:43 -0800 |
commit | a06f01ba1e9b964c14ed6c63b56102d34ec6c45f (patch) | |
tree | efcdb3a3200c268a6543afc46e842ac9d31ecbed /gcc/flow.c | |
parent | 020036b90ebb42cee83694d332800d98960f9e6b (diff) | |
download | gcc-a06f01ba1e9b964c14ed6c63b56102d34ec6c45f.zip gcc-a06f01ba1e9b964c14ed6c63b56102d34ec6c45f.tar.gz gcc-a06f01ba1e9b964c14ed6c63b56102d34ec6c45f.tar.bz2 |
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.
From-SVN: r74869
Diffstat (limited to 'gcc/flow.c')
-rw-r--r-- | gcc/flow.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; } |