mirror of
https://github.com/LIV2/bebbo-gcc.git
synced 2025-12-06 00:23:32 +00:00
refs #243: don't assume d0/d1/a0/a1 are free for interrupt handlers
This commit is contained in:
parent
89bcf7ed10
commit
c46b036845
@ -2475,8 +2475,10 @@ update_insn_infos (std::set<unsigned> & todo)
|
||||
zz.or_def (ii);
|
||||
}
|
||||
|
||||
/* always allow a0/a1, d0/d1. */
|
||||
usable_regs = zz.get_def () | 0x303;
|
||||
usable_regs = zz.get_def ();
|
||||
/* always allow a0/a1, d0/d1 unless it's an interrupt handler */
|
||||
if (m68k_get_function_kind (current_function_decl) != m68k_fk_interrupt_handler)
|
||||
usable_regs |= 0x303;
|
||||
usable_regs &= 0x7fff;
|
||||
|
||||
/* do not use global registers. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user