diff options
author | Kazu Hirata <kazu@hxi.com> | 2002-02-11 04:31:33 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2002-02-11 04:31:33 +0000 |
commit | 72431aef26e301390634f4d3eff3f2982fcb0bf4 (patch) | |
tree | c8d306dacb2f6ec0bbb24b48f2096ec1f1107088 | |
parent | 87e4ee91932c966ec719c1eea7e4d3064c364940 (diff) | |
download | gcc-72431aef26e301390634f4d3eff3f2982fcb0bf4.zip gcc-72431aef26e301390634f4d3eff3f2982fcb0bf4.tar.gz gcc-72431aef26e301390634f4d3eff3f2982fcb0bf4.tar.bz2 |
h8300.h (STACK_POINTER_REGNUM): Use the constant definition from h8300.md.
* config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
constant definition from h8300.md.
(FRAME_POINTER_REGNUM): Likewise.
* config/h8300/h8300.md (define_constants): Add FP_REG.
From-SVN: r49667
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.h | 4 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.md | 3 |
3 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c70f1df..d64d0b5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2002-02-10 Kazu Hirata <kazu@hxi.com> + * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the + constant definition from h8300.md. + (FRAME_POINTER_REGNUM): Likewise. + * config/h8300/h8300.md (define_constants): Add FP_REG. + +2002-02-10 Kazu Hirata <kazu@hxi.com> + * config/h8300/h8300.c (print_operand): Remove redundant code. 2002-02-10 Kazu Hirata <kazu@hxi.com> diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 1c53c9d..548338c 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -344,10 +344,10 @@ extern int target_flags; /*#define PC_REGNUM 15*/ /* Register to use for pushing function arguments. */ -#define STACK_POINTER_REGNUM 7 +#define STACK_POINTER_REGNUM SP_REG /* Base register for access to local variables of the function. */ -#define FRAME_POINTER_REGNUM 6 +#define FRAME_POINTER_REGNUM FP_REG /* Value should be nonzero if functions must have frame pointers. Zero means the frame pointer need not be set up (and parms diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index a7f2b42..98cf4eb 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -51,7 +51,8 @@ ;; ---------------------------------------------------------------------- (define_constants - [(SP_REG 7)]) + [(FP_REG 6) + (SP_REG 7)]) ;; ---------------------------------------------------------------------- ;; ATTRIBUTES |