make register usage match mac toolbox expectations (d0-d2, a0-a1 volatile, a5 fixed)

This commit is contained in:
Wolfgang Thaller 2012-04-15 03:33:23 +02:00
parent 4282f24fb4
commit a79c598392
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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). */ \