h8300.h (STACK_POINTER_REGNUM): Use the constant definition from h8300.md.
authorKazu Hirata <kazu@hxi.com>
Mon, 11 Feb 2002 04:31:33 +0000 (04:31 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 11 Feb 2002 04:31:33 +0000 (04:31 +0000)
* 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

gcc/ChangeLog
gcc/config/h8300/h8300.h
gcc/config/h8300/h8300.md

index c70f1dfbc9f27040ac4a8359ac185ec95e5dc44d..d64d0b5ee3ed4335d12df39645c43c3a63c8ba6f 100644 (file)
@@ -1,3 +1,10 @@
+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.
index 1c53c9d1ef208847a79b8987983dafb6294cf533..548338c4fa863180fc239d69f719e74a2d06b973 100644 (file)
@@ -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
index a7f2b421ce4296eef35ac7e6a14ffb8b32c6511b..98cf4ebe3d30eb995e35f9167f975ad6c5e6f102 100644 (file)
@@ -51,7 +51,8 @@
 ;; ----------------------------------------------------------------------
 
 (define_constants
-  [(SP_REG     7)])
+  [(FP_REG     6)
+   (SP_REG     7)])
 
 ;; ----------------------------------------------------------------------
 ;; ATTRIBUTES