* config/m68k/m68k.c (m68k_libcall_value,
m68k_function_value): Use macros for register names more.
+ * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
+ instead.
+ (M68K_REGNAME): Use A6_REG.
+ * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
+
2007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
PR middle-end/28071
/* Most m68k targets use %a6 as a frame pointer. The AmigaOS
ABI uses %a6 for shared library calls, therefore the frame
pointer is shifted to %a5 on this target. */
-#define FRAME_POINTER_REGNUM FP_REG
+#define FRAME_POINTER_REGNUM A6_REG
#define FRAME_POINTER_REQUIRED 0
We don't replace %fp for targets that don't map it to %a6
since it may confuse GAS. */
#define M68K_REGNAME(r) ( \
- ((FRAME_POINTER_REGNUM == 14) \
+ ((FRAME_POINTER_REGNUM == A6_REG) \
&& ((r) == FRAME_POINTER_REGNUM) \
&& frame_pointer_needed) ? \
M68K_FP_REG_NAME : reg_names[(r)])