diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff5462f26a7f9053fc7356cc3e0373f4254172c2..b434a9cd568116a72be69ac833407247306ffcb9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-01-19 DJ Delorie <dj@redhat.com> + + * config/m32c/m32c.h (REG_ALLOC_ORDER): Define. + 2006-01-19 Paul Brook <paul@codesourcery.com> * gcc/config/arm/arm.c (arm_compute_func_type): Treat all functions diff --git a/gcc/config/m32c/m32c.h b/gcc/config/m32c/m32c.h index 98400a0096b07d1c9ce518d838c34fd289da869e..b9eb223092e3f67fa352ca2a2d81ae63dc77637a 100644 --- a/gcc/config/m32c/m32c.h +++ b/gcc/config/m32c/m32c.h @@ -218,6 +218,13 @@ machine_function; #endif #define PC_REGNUM PC_REGNO +/* Order of Allocation of Registers */ + +#define REG_ALLOC_ORDER { \ + 0, 1, 2, 3, 4, 5, /* r0..r3, a0, a1 */ \ + 12, 13, 14, 15, 16, 17, 18, /* mem0..mem7 */ \ + 6, 7, 8, 9, 10, 11 /* sb, fb, sp, pc, flg, ap */ } + /* How Values Fit in Registers */ #define HARD_REGNO_NREGS(R,M) m32c_hard_regno_nregs (R, M)