Commit 991eb6ef by Stuart Henderson

2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>

        From Jie Zhang
        *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
        (TARGET_EXTRA_LIVE_ON_ENTRY): Define.

From-SVN: r173366
parent 420ccc84
2011-05-04 Stuart Henderson <shenders@gcc.gnu.org> 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
From Jie Zhang
*config/bfin/bfin.c (bfin_extra_live_on_entry): New.
(TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
From Bernd Schmidt From Bernd Schmidt
* config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
account and save/restore RETS. account and save/restore RETS.
......
...@@ -1445,6 +1445,14 @@ bfin_hard_regno_rename_ok (unsigned int old_reg ATTRIBUTE_UNUSED, ...@@ -1445,6 +1445,14 @@ bfin_hard_regno_rename_ok (unsigned int old_reg ATTRIBUTE_UNUSED,
return 1; return 1;
} }
/* Implement TARGET_EXTRA_LIVE_ON_ENTRY. */
static void
bfin_extra_live_on_entry (bitmap regs)
{
if (TARGET_FDPIC)
bitmap_set_bit (regs, FDPIC_REGNO);
}
/* Return the value of the return address for the frame COUNT steps up /* Return the value of the return address for the frame COUNT steps up
from the current frame, after the prologue. from the current frame, after the prologue.
We punt for everything but the current frame by returning const0_rtx. */ We punt for everything but the current frame by returning const0_rtx. */
...@@ -6732,4 +6740,7 @@ bfin_conditional_register_usage (void) ...@@ -6732,4 +6740,7 @@ bfin_conditional_register_usage (void)
#undef TARGET_TRAMPOLINE_INIT #undef TARGET_TRAMPOLINE_INIT
#define TARGET_TRAMPOLINE_INIT bfin_trampoline_init #define TARGET_TRAMPOLINE_INIT bfin_trampoline_init
#undef TARGET_EXTRA_LIVE_ON_ENTRY
#define TARGET_EXTRA_LIVE_ON_ENTRY bfin_extra_live_on_entry
struct gcc_target targetm = TARGET_INITIALIZER; struct gcc_target targetm = TARGET_INITIALIZER;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment