mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-06 21:29:40 +00:00
make register usage match mac toolbox expectations (d0-d2, a0-a1 volatile, a5 fixed)
This commit is contained in:
parent
4282f24fb4
commit
a79c598392
|
@ -849,7 +849,7 @@ m68k_initial_elimination_offset (int from, int to)
|
|||
static bool
|
||||
m68k_save_reg (unsigned int regno, bool interrupt_handler)
|
||||
{
|
||||
if (flag_pic && regno == PIC_REG)
|
||||
if (!TARGET_SEP_DATA && flag_pic && regno == PIC_REG)
|
||||
{
|
||||
if (crtl->saves_all_registers)
|
||||
return true;
|
||||
|
|
|
@ -354,7 +354,7 @@ along with GCC; see the file COPYING3. If not see
|
|||
0, 0, 0, 0, 0, 0, 0, 0, \
|
||||
\
|
||||
/* Address registers. */ \
|
||||
0, 0, 0, 0, 0, 0, 0, 1, \
|
||||
0, 0, 0, 0, 0, 1, 0, 1, \
|
||||
\
|
||||
/* Floating point registers \
|
||||
(if available). */ \
|
||||
|
@ -371,10 +371,10 @@ along with GCC; see the file COPYING3. If not see
|
|||
Aside from that, you can include as many other registers as you like. */
|
||||
#define CALL_USED_REGISTERS \
|
||||
{/* Data registers. */ \
|
||||
1, 1, 0, 0, 0, 0, 0, 0, \
|
||||
1, 1, 1, 0, 0, 0, 0, 0, \
|
||||
\
|
||||
/* Address registers. */ \
|
||||
1, 1, 0, 0, 0, 0, 0, 1, \
|
||||
1, 1, 0, 0, 0, 1, 0, 1, \
|
||||
\
|
||||
/* Floating point registers \
|
||||
(if available). */ \
|
||||
|
|
Loading…
Reference in New Issue
Block a user