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/global.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/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 d19e87e..de765b3 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 |