diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-16 16:47:44 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-16 16:47:44 +0000 |
commit | 47313d14bf1215921496e089cddf2f60644d0db5 (patch) | |
tree | c80fb01cd80c456cc900a39811f997d71a5473b9 | |
parent | dbaae14a3f80b90149359e8f86f08cccf3a7cd6f (diff) | |
download | gcc-47313d14bf1215921496e089cddf2f60644d0db5.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123878 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.h | 4 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.md | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2cf24a78fd..9a7c3cc85ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -3,6 +3,11 @@ * 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 diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h index 6b3248af527..a872ee9ede1 100644 --- a/gcc/config/m68k/m68k.h +++ b/gcc/config/m68k/m68k.h @@ -430,7 +430,7 @@ Boston, MA 02110-1301, USA. */ /* 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 @@ -933,7 +933,7 @@ do { if (cc_prev_status.flags & CC_IN_68881) \ 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)]) diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index 185f59844cd..bbedab5c445 100644 --- a/gcc/config/m68k/m68k.md +++ b/gcc/config/m68k/m68k.md @@ -129,7 +129,7 @@ (A0_REG 8) (A1_REG 9) (PIC_REG 13) - (FP_REG 14) + (A6_REG 14) (SP_REG 15) (FP0_REG 16) ]) |